0% found this document useful (0 votes)
450 views9 pages

Inbound & Outbound Interface

The document discusses an outbound interface in Oracle EBS that extracts data from Oracle database tables into flat files. It uses the UTL_FILE package to open, write, and close files. The process involves developing a PL/SQL program with a cursor to retrieve data, opening and writing to a file, closing the cursor and file. The document provides an example program that uses these steps to extract inventory item data to an external file.

Uploaded by

Keerthan Shetty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
450 views9 pages

Inbound & Outbound Interface

The document discusses an outbound interface in Oracle EBS that extracts data from Oracle database tables into flat files. It uses the UTL_FILE package to open, write, and close files. The process involves developing a PL/SQL program with a cursor to retrieve data, opening and writing to a file, closing the cursor and file. The document provides an example program that uses these steps to extract inventory item data to an external file.

Uploaded by

Keerthan Shetty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

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