You are on page 1of 18

TAD CONSULTANCY PVT.

LTD

SALES ORDER FLOWS


- INTERFACE

CLIENT - JAYA KUMAR , DILLI, LEELA

PREPARED BY - Mr. MADAN RAJ GUNASEKARAN


INTERFACE:
• Interfaces are used in Oracle Applications to integrate external systems and Data
Conversion.
•The interfaces are mainly used to either transfer data from Oracle Applications to a flat file
or data from legacy system to Oracle Applications.
•Used extensively at the time of Data Conversion from legacy/ old systems to a fresh
implementation of Oracle Applications.

There are two major types of Interfaces:

•Inbound Interface : These interfaces are used to transfer data from external systems to
Oracle Applications.
•Outbound Interface : These interfaces are used to transfer data from Oracle Applications
to external systems.
INTERFACE OVER VIEW

SQL
LOADER
DATA FILE : need to be get from the client in – (.csv , .DAT, )

CREATE STAGING TABLE : based on client data file create stg table with mandatory columns
PUT DATA FILE IN CUSTOM TOP -----12.0.0/mesg/
CREATE EXCECUATBLE ----- method as SQL*LOADER
DEFINE THE CONCURRENT PROGRAM
ATTACH TO REQUEST GROUP
CREATE CONTROL FILE : Control file helps to feed
the data file into the staging table and save it in “.CTL “

RUN your registered Concurrent program from SRS Window at respect responsibility

It will interface the data into STAGING TABLE


NOW THE RECORD HAS BEEN TRANSFERRED TO THE STAGING TABLE

SELECT * FROM MD_ITEM_I_FACE_STG_S; ----- If you query the statement you can find
all data will be moved into staging table

There will be 3 files generated Automatically =>LOG file,BAD file, DISCARD file
TO move the data from STAGING table to INTERFACE table we need the validation PROCEDURE in PL/SQL
CREATE OR REPLACE PROCEDURE MD_ITEM_PROCEDURE_V
AS
CURSOR C2 IS SELECT * FROM MD_ITEM_I_FACE_STG_S where validation_flag='pend';
v_org number(10);
v_item varchar(25);
v_count number(3);
BEGIN
FOR C1 IN C2
LOOP
begin
dbms_output.put_line(c1.item_name);
select count(organization_id) into v_count from org_organization_definitions where
organization_id=c1.mas_org_id;
if v_count=1 then
v_org:=c1.mas_org_id;
else
raise no_data_found;
end if;
exception
when no_data_found then
update MD_ITEM_I_FACE_STG_S set validation_flag='E' , validation_errors='incorrect org_id';
dbms_output.put_line(v_org||'ORG ERROR’);
end loop;
After creating the validation procedure in PL/SQL then
we need to excecute the procedure in SQL window
to transfer the data from STAGING table to INTERFACE table

EXEC MD_ITEM_PROCEDURE_V; ---- in SQL

Now if you Query and check the interface table all the validated records will be moved to interface table
and error records will be still in staging table with Validation_flag = ‘E’ error .

Eg : for ITEM INTERFACE query

SELECT * FROM MTL_SYSTEM_ITEMS_INTERFACE;


THEN once we call the ITEM IMPORT CONCURRENT PROGRAM (API)
all validated data from INTERFACE table will be moved into the BASE table.

SELECT * FROM MTL_SYSTEM_ITEMS_B;


ANY DOUBTS ?........

You might also like