Professional Documents
Culture Documents
LTD
•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
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
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 .