Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

OUTBOUND INTERFACE

EBS R12
OUTBOUND INTERFACE
• Outbound Interface will be used to extract the data from oracle Database tables into the flat
files.
• This is One of the PL/SQL Package which will be used to transfer the data from table to files
from files to tables
WE WILL USE FOLLOWING THREE FUNCTIONS TO GENERATE THE FILE.

UTL_FILE Package:

1)Utl_File.fopen     = To open (or) Create the file


2)Utl_File.Put_line  = To Transfer the data into the File.
3)Utl_File.fclose    = To close the File after Data transfer.
OUTBOUND INTERFACE
PROCESS:
• Develop the PL/SQL program (Either procedure or package).
• Write the cursor to retrieve the data from database tables.
• Create file or Open the file by using UTL_File.fopen().
• Open the cursor.
• If any validations are there write the validations.
• Transfer the data into file by using UTL_File.Put_Line().
• Close the cursor.
• Close the file by using UTL_File.fclose().
TO FIND  UTL PATH:
SELECT * FROM V$PARAMETER
WHERE UPPER(name) LIKE '%UTL%';
OUT BOUND INTERFACE
PROGRAM:
CREATE OR REPLACE PROCEDURE xxetb_inv_outbound(ERRBUF OUT VARCHAR2,RETCODE OUT VARCHAR2)
IS
QTY UTL_FILE.FILE_TYPE;
PATH VARCHAR2(200);
FORMAT VARCHAR2(200);
CURSOR cinv IS SELECT inventory_item_id,
organization_id,
description,
segment1
FROM mtl_system_items_b
WHERE organization_id = 204
AND segment1 LIKE '0001%';
BEGIN
FORMAT := 'inv_n_report.txt';
PATH := '/tmp/EBSDB';
QTY := UTL_FILE.FOPEN(PATH,FORMAT,'W');
FOR i IN cinv LOOP
UTL_FILE.PUT_LINE(QTY,i.inventory_item_id||' '||i.organization_id||' '||i.description||' '||i.segment1);
END LOOP;
UTL_FILE.FCLOSE(QTY);
END;
CONCLUSION
• In conclusion, an outbound interface in Oracle EBS refers to a mechanism or process that
allows data to be transmitted from the Oracle EBS system to an external system or
application. Outbound interfaces play a crucial role in integrating Oracle EBS with other
systems.

You might also like