0% found this document useful (0 votes)
48 views2 pages

Item Creation Interface by KR

The document describes an item creation interface that imports data from legacy systems or clients into staging tables for validation. It then uses a custom interface or published process to insert validated data into base tables using an item import program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views2 pages

Item Creation Interface by KR

The document describes an item creation interface that imports data from legacy systems or clients into staging tables for validation. It then uses a custom interface or published process to insert validated data into base tables using an item import program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Item Creation Interface

Data From Lagacy


System / Client as a
flat file. Written ctl file
loaded data

Importing data into staging table/


temp tables to validate and
maintain the data

Develop custom
Interface or use pub
process

Run Item Import Program to insert data


into base tables.

Data file

Control file
CREATE OR REPLACE PROCEDURE item_imp_test
IS
-- Variables declaration
v_msg VARCHAR2(50);
v_count NUMBER;

-- Declare a cursor
CURSOR temp_rec IS SELECT * FROM item_imp_stg WHERE process_flag is null;
BEGIN

FOR rec IN temp_rec LOOP


-- Item validation
SELECT count(*) INTO v_count FROM mtl_system_items_b WHERE segment1 =
rec.segment1;
IF v_count = 0 THEN
insert into mtl_system_items_interface
(ORGANIZATION_ID
,ORGANIZATION_CODE
, PROCESS_FLAG
, DESCRIPTION
, SEGMENT1
, TRANSACTION_TYPE
, PRIMARY_UOM_CODE
, LAST_UPDATE_DATE
, LAST_UPDATED_BY
, CREATION_DATE
, CREATED_BY)
values
(1
,'MST'
,1
, rec.description
, rec.segment1
, 'CREATE'
, rec.uom
, SYSDATE
,0
, SYSDATE
, 0);
END IF;
--dbms_output.put_line(v_count);
BEGIN
UPDATE item_imp_stg SET process_flag = 'N' WHERE segment1 = rec.segment1;
END;
END LOOP;
COMMIT;
dbms_output.put_line('Procedure executed successfully');
END;
/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy