Below is the example to create a requisition.
We just need to insert data into Interface table and then we need to call standard oracle import program.
In below example, i have created a Internal Requisition.
************************************************************************************************
DECLARE
l_request_id NUMBER;
BEGIN
INSERT INTO PO_REQUISITIONS_INTERFACE_ALL (interface_source_code,
source_type_code,
requisition_type,
destination_type_code,
item_id,
item_description,
quantity,
authorization_status,
preparer_id,
autosource_flag,
uom_code,
destination_organization_id,
deliver_to_location_id,
deliver_to_requestor_id,
need_by_date,
gl_date,
charge_account_id,
org_id,
suggested_vendor_id,
suggested_vendor_site_id,
unit_price,
creation_date,
created_by,
last_update_date,
last_updated_by,
batch_id
)
VALUES ('INV',
'INVENTORY',
'INTERNAL',
'INVENTORY',
1831768,
'leadsets',
50,
'APPROVED',
48880,
'P',
'EA',
2609,
75018,
48880,
SYSDATE,
SYSDATE,
237125,
2592,
1058,
607,
150,
SYSDATE,
59944,
SYSDATE,
59944,
454
);
COMMIT;
l_request_id :=
fnd_request.submit_request (application => 'PO',
program => 'REQIMPORT',
argument1 => 'INV',
argument2 => '454',
argument3 => 'ALL',
argument4 => '',
argument5 => '',
argument6 => 'N');
COMMIT;
DBMS_OUTPUT.put_line ('request_id - ' || l_request_id);
END;
/
Ur's
AmarAlam
We just need to insert data into Interface table and then we need to call standard oracle import program.
In below example, i have created a Internal Requisition.
************************************************************************************************
DECLARE
l_request_id NUMBER;
BEGIN
INSERT INTO PO_REQUISITIONS_INTERFACE_ALL (interface_source_code,
source_type_code,
requisition_type,
destination_type_code,
item_id,
item_description,
quantity,
authorization_status,
preparer_id,
autosource_flag,
uom_code,
destination_organization_id,
deliver_to_location_id,
deliver_to_requestor_id,
need_by_date,
gl_date,
charge_account_id,
org_id,
suggested_vendor_id,
suggested_vendor_site_id,
unit_price,
creation_date,
created_by,
last_update_date,
last_updated_by,
batch_id
)
VALUES ('INV',
'INVENTORY',
'INTERNAL',
'INVENTORY',
1831768,
'leadsets',
50,
'APPROVED',
48880,
'P',
'EA',
2609,
75018,
48880,
SYSDATE,
SYSDATE,
237125,
2592,
1058,
607,
150,
SYSDATE,
59944,
SYSDATE,
59944,
454
);
COMMIT;
l_request_id :=
fnd_request.submit_request (application => 'PO',
program => 'REQIMPORT',
argument1 => 'INV',
argument2 => '454',
argument3 => 'ALL',
argument4 => '',
argument5 => '',
argument6 => 'N');
COMMIT;
DBMS_OUTPUT.put_line ('request_id - ' || l_request_id);
END;
/
Ur's
AmarAlam
0 comments:
Post a Comment