http://bharatoracleappstechnical.blogspot.com/2013/09/requisition-import-and-poaoutocreation.

html

SELECT frt.responsibility_name, frg.request_group_name,
frgu.request_unit_type,frgu.request_unit_id,
fcpt.user_concurrent_program_name
FROM fnd_Responsibility fr, fnd_responsibility_tl frt,
fnd_request_groups frg, fnd_request_group_units frgu,
fnd_concurrent_programs_tl fcpt
WHERE frt.responsibility_id = fr.responsibility_id
AND frg.request_group_id = fr.request_group_id
AND frgu.request_group_id = frg.request_group_id
AND fcpt.concurrent_program_id = frgu.request_unit_id
AND frt.LANGUAGE = USERENV('LANG')
AND fcpt.LANGUAGE = USERENV('LANG')
AND fcpt.user_concurrent_program_name = :conc_prg_name
ORDER BY 1,2,3,4

121- operating unit
181 org id
--------------------------------------------------------------------------INSERT INTO PO_REQUISITIONS_INTERFACE_ALL
(batch_id
,TRANSACTION_ID
,interface_source_code
,source_type_code
,requisition_type
,destination_type_code
,item_id
,item_description
,quantity
,authorization_status
,preparer_id
,category_id
,uom_code
,destination_organization_id
,destination_subinventory
,deliver_to_location_id
,deliver_to_requestor_id
,charge_account_id
,need_by_date
,org_id
,unit_price
,autosource_flag
,suggested_vendor_id
,suggested_vendor_site_id
,gl_date
)
values
(100
--batch_id
,PO_REQUISITIONS_INTERFACE_S.nextval --TRANSACTION_ID

sysdate --gl_date ).7351 --suggested_vendor_site_id .item_id .'VENDOR' --source_type_code .null --item_id .181 --destination_organization_id .'PURCHASE' --requisition_type .null --destination_subinventory .3128 --category_id .11007 --charge_account_id .requisition_type .242 --deliver_to_location_id .uom_code .interface_source_code .7410 --suggested_vendor_id ..84 --preparer_id .source_type_code .category_id .'EA' --uom_code .destination_subinventory .preparer_id .sysdate --need_by_date .authorization_status .destination_type_code .'INCOMPLETE' --authorization_status .TRANSACTION_ID .121 --org_id . select * from po_interface_errors where trunc(last_update_date)=trunc(sysdate) delete po_interface_errors where interface_type='REQIMPORT' select * from PO_REQUISITIONS_INTERFACE_ALL delete PO_REQUISITIONS_INTERFACE_ALL where transaction_id=5 ======================================================== INSERT INTO PO_REQUISITIONS_INTERFACE_ALL (batch_id .'Test Import Req R12' --item_description .100 --unit_price .'EXPENSE' --destination_type_code .NULL --autosource_flag .quantity .'FUTURE' --interface_source_code .84 --deliver_to_requestor_id .destination_organization_id .item_description .10 --quantity .

84 .84 --preparer_id .null --gl_date (Business trip approve date) select * from po_interface_errors where trunc(last_update_date)=trunc(sysdate) delete po_interface_errors where interface_type='REQIMPORT' select * from PO_REQUISITIONS_INTERFACE_ALL delete PO_REQUISITIONS_INTERFACE_ALL where transaction_id=2004 select * from po_requisition_headers_all . --deliver_to_requestor_id (employee_name) --charge_account_id --need_by_date --org_id fix --unit_price = 0 --autosource_flag --suggested_vendor_id .null .need_by_date .charge_account_id .11007 .'Test WF FYI Trigger Ben and shoaib' --item_description .deliver_to_requestor_id .sysdate ).unit_price .suggested_vendor_id .sysdate ..null --suggested_vendor_site_id .'FUTURE' --interface_source_code .suggested_vendor_site_id .181 --destination_organization_id fix(Check for live ) .Inv locati on) .121 .autosource_flag .7351 .'PURCHASE' --requisition_type .gl_date ) values (100 --batch_id .3128 --category_id .NULL .org_id .deliver_to_location_id .PO_REQUISITIONS_INTERFACE_S.'EXPENSE' --destination_type_code .nextval --TRANSACTION_ID .242 --destination_subinventory --deliver_to_location_id (department.7410 .'EA' --uom_code .'VENDOR' --source_type_code .'APPROVED' --authorization_status .null --item_id .100 .10 --quantity(1) .

authorization_status = 'APPROVED' and new.ename).empno. :new. --(:new.request_id is not null) declare PRAGMA AUTONOMOUS_TRANSACTION.xxreq_fyi_trg create or replace trigger xxreq_fyi_trg after insert on PO.po_requisition_headers_all --REFERENCING NEW AS NEW OLD AS OLD for each row when (new. end. .order by 1 desc drop trigger apps. begin XXsgrf_WF_NOTIF_REQFYI.