Professional Documents
Culture Documents
INTERFACES
------------------------------------------ITEMS-------------------------------------------
Single Insert:
DESCRIPTION,
ORGANIZATION_ID,
TRANSACTION_TYPE,
PROCESS_FLAG)
VALUES (‘ELDITEMTEST3’,
‘ELDchange’,
204,
‘CREATE’,
1);
If Record is successfully inserted into base tables PROCESS_FLAG will be set to 7. If Record is error out then PROCESS_FLAG will be set to 3 in the interface table.
(SEGMENT1.MTL_SYSTEM_ITEMS_INTERFACE ORGANIZATION_ID.
MTL_SYSTEM_ITEMS_INTERFACE)
Process Flag:
1 Picking
2 Assign complete
3 Valida on Failed
7 Successfully imported
Program will pick the records with PROCESS_FLAG=1 and it will change the PROCESS_FLAG to 2 to validate the records. So we can’t see this one (2).
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 1/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
For example, if we import the items Validate Items: Yes, Process Items: Yes then a er valida on success it will change to 4 and insert into base tables. If inser on is
successful then PROCESS_FLAG will be set to 7. In this case we can see the PROCESS_FLAG with 7 instead of 4.
Valida ons:
Standard Program:
Parameters:
No : Run the Interface only for the organiza on that you are currently in (Front end)
Yes, No : Validate the data but won’t import the data into Base tables.
No, Yes : Don’t validate the data but import the data into Base tables.
If we already validated the data (PROCESS_FLAG=4), then it won’t validate the data but Process the data.
*Directly if we insert the record with PROCESS_FLAG=4, it won’t process the record. We need to validate the record through the Program only
Yes : Delete the successfully Processed Records from the Interface tables.
Process set:
Enter the number similar to SET_PROCESS_ID to pick the par cular records
TRANSACTION_DATE,
TRANSACTION_TYPE_ID,
INVENTORY_ITEM_ID,
SUBINVENTORY_CODE,
TRANSACTION_UOM,
TRANSACTION_QUANTITY,
DISTRIBUTION_ACCOUNT_ID,
SOURCE_CODE,
SOURCE_LINE_ID,
SOURCE_HEADER_ID,
PROCESS_FLAG,
TRANSACTION_MODE,
LAST_UPDATE_DATE,
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 2/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
LAST_UPDATED_BY,
CREATION_DATE,
CREATED_BY)
VALUES (204,
42,
1751,
'Stores',
'Ea',
100,
12945,
123,
1234,
12345,
1,
3,
SYSDATE,
1011883,
SYSDATE,
1011883);
If Record is successfully inserted into base tables then record will be deleted from interface tables. If Record is error out then PROCESS_FLAG will be set to 3 in the
interface table.
Transac on Mode:
2 Concurrent
3 Background
Concurrent: Transac on Manager will pick the records and assign to Transac on Worker.
Unless Transac on Manager is running it won’t pick these records. Status of Material Transac on should be Ac ve.
Background: We can launch the Transac on Worker Manually. The Transac on Manager won’t pick these records.
Valida ons:
Subinventory_code : Secondary_inventory_name.MTL_SECONDARY_INVENTORIES
Standard Program:
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 3/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
Run this program again this will call the program ‘Inventory transac on worker’
------------------------------------------INVOICES-------------------------------------------
Single Insert:
INVOICE_NUM,
INVOICE_TYPE_LOOKUP_CODE,
VENDOR_ID,
VENDOR_SITE_ID,
INVOICE_AMOUNT,
INVOICE_CURRENCY_CODE,
SOURCE,
GROUP_ID,
TERMS_ID)
VALUES (88888,
'INV - 8888',
'STANDARD',
24935,
5044,
1000,
'USD',
'INTERCOMPANY',
'TESTCASE1',
10234);
INVOICE_LINE_ID,
LINE_NUMBER,
LINE_TYPE_LOOKUP_CODE,
AMOUNT,
DIST_CODE_COMBINATION_ID)
VALUES (88888,
99999,
1,
'ITEM',
1000,
13805);
STATUS.AP_INVOICES_INTERFACE is REJECTED
(INVOICE_NUM.AP_INVOICES_INTERFACE)
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 4/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
Valida ons:
Invoice_type_lookup_code : Lookup_code.AP_LOOKUP_CODES
(lookup_type = ’invoice_type’)
Vendor_name : Vendor_name.PO_VENDORS
Vendor_site_code : Vendor_site_code.PO_VENDOR_SITES_ALL
Invoice_currency_code : Currency_code.FND_CURRENCIES
Terms_name : Name.AP_TERMS_TL
Line_type_lookup_code : Lookup_code.AP_LOOKUP_CODES
Standard Program:
Parameters:
-----------------------------------------PURCHASE ORDERS-----------------------------------------
Single Insert:
INTERFACE_HEADER_ID,
DOCUMENT_TYPE_CODE,
DOCUMENT_NUM,
ORG_ID,
VENDOR_ID,
VENDOR_SITE_ID,
VENDOR_CONTACT_ID,
SHIP_TO_LOCATION_ID,
BILL_TO_LOCATION_ID,
CURRENCY_CODE,
AGENT_ID)
VALUES ('ORIGINAL',
123,
'STANDARD',
7777,
204,
600,
1414,
952,
2005,
204,
'USD',
25)
INTERFACE_LINE_ID,
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 5/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
LINE_NUM,
LINE_TYPE_ID,
ITEM_ID,
ITEM_DESCRIPTION,
UNIT_OF_MEASURE,
UNIT_PRICE,
SHIPMENT_NUM,
SHIP_TO_ORGANIZATION_ID,
SHIP_TO_LOCATION_ID,
QUANTITY)
VALUES (123,
1234,
1,
1,
11747,
'Each',
1000,
1,
204,
2490,
10)
INTERFACE_LINE_ID,
INTERFACE_DISTRIBUTION_ID,
DISTRIBUTION_NUM,
QUANTITY_ORDERED,
CHARGE_ACCOUNT_ID)
VALUES (123,
1234,
12345,
1,
10,
13401)
PROCESS_CODE.PO_HEADERS_INTERFACE is REJECTED
(DOCUMENT_NUM.PO_HEADERS_INTERFACE)
Valida ons:
Document_type : Document_sub_type.PO_DOCUMENT_TYPES
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 6/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
Org_name : Name.HR_OPERATING_UNITS
Vendor_name : Vendor_name.PO_VENDORS
Vendor_site : Vendor_site_code.PO_VENDOR_SITES_ALL
Currency_code : Currency_code.FND_CURRENCIES
Agent_name : Agent_name.PO_AGENTS_V
Line_type : Line_type.PO_LINE_TYPES_TL
Unit_of_measure : Unit_of_Measure.MTL_UNITS_OF_MEASURE_TL
Charge_account_code : Segment1…5.GL_CODE_COMBINATIONS
Standard Program:
------------------------------------------REQUISITIONS-------------------------------------------
Single Insert:
ORG_ID,
REQUISITION_TYPE,
PREPARER_ID,
LINE_TYPE_ID,
ITEM_ID,
ITEM_DESCRIPTION,
UNIT_OF_MEASURE,
QUANTITY,
UNIT_PRICE,
NEED_BY_DATE,
DESTINATION_TYPE_CODE,
AUTHORIZATION_STATUS,
SOURCE_TYPE_CODE,
DESTINATION_ORGANIZATION_ID,
DELIVER_TO_LOCATION_ID,
DELIVER_TO_REQUESTOR_ID,
CHARGE_ACCOUNT_ID)
VALUES (123,
204,
‘PURCHASE’,
25,
1,
6068,
‘PrinterMechanism’,
‘Each’,
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 7/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
10,
100,
SYSDATE + 2,
‘INVENTORY’,
‘INCOMPLETE’,
‘VENDOR’,
204,
204,
25,
13401)
DISTRIBUTION_NUMBER,
QUANTITY,
CHARGE_ACCOUNT_ID)
VALUES (123,
1,
10,
13401)
PROCESS_CODE.PO_REQUISITIONS_INTERFACE_ALL is ERROR
(INTERFACE_SOURCE_CODE.PO_REQUISITIONS_INTERFACE_ALL)
Valida ons:
Preparer_name : Agent_name.PO_AGENTS_V
Requestor_name : Agent_name.PO_AGENTS_V
Line_type : Line_type.PO_LINE_TYPES_TL
Unit_of_measure : Unit_of_Measure.MTL_UNITS_OF_MEASURE_TL
Charge_account_code : Segment1…5.GL_CODE_COMBINATIONS
Standard Program:
Parameters:
Yes : We can give mul ple distribu ons for one line
No : Only one distribu on will be created for one line based on the CHARGE_ACCOUNT_ID given n the PO_REQUISITIONS_INTERFACE_ALL (Line)
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 8/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
------------------------------------------SALES ORDERS-------------------------------------------
Single Insert:
ORIG_SYS_DOCUMENT_REF,
ORG_ID,
ORDERED_DATE,
ORDER_TYPE_ID,
PRICE_LIST_ID,
TRANSACTIONAL_CURR_CODE,
SALESREP_ID,
SOLD_TO_ORG_ID,
SHIP_FROM_ORG_ID,
SHIP_TO_ORG_ID,
INVOICE_TO_ORG_ID,
CLOSED_FLAG,
BOOKED_FLAG,
CREATED_BY,
CREATION_DATE,
LAST_UPDATED_BY,
LAST_UPDATE_DATE)
VALUES (0,
‘5 - H’,
204,
SYSDATE,
1437,
1000,
‘USD’,
-3,
1290,
204,
1425,
1424,
‘N’,
‘N’,
1007932,
SYSDATE,
1007932,
SYSDATE)
ORIG_SYS_DOCUMENT_REF,
ORIG_SYS_LINE_REF,
LINE_NUMBER,
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 9/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
ORG_ID,
INVENTORY_ITEM_ID,
ORDERED_QUANTITY,
ORDER_QUANTITY_UOM,
SHIP_FROM_ORG_ID,
SOLD_TO_ORG_ID,
INVOICE_TO_ORG_ID,
SHIP_TO_ORG_ID,
SALESREP_ID,
UNIT_LIST_PRICE,
UNIT_SELLING_PRICE,
CREATED_BY,
CREATION_DATE,
LAST_UPDATED_BY,
LAST_UPDATE_DATE,
LINE_TYPE_ID,
CLOSED_FLAG,
PRICE_LIST_ID)
VALUES (0,
‘5 - H’,
‘5 - L’,
1,
204,
149,
2,
‘Ea’,
204,
1290,
1424,
1425,
3,
1599,
1599,
1007902,
SYSDATE,
1007902,
SYSDATE,
1427,
‘N’,
1000)
Booked flag: The order will be in ‘entered’ status if it is ‘N’ (CLOSED_FLAG should be ‘N’)
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 10/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
Error Table : No Error Table. Output or log file will display the errors.
(ORIG_SYS_DOCUMENT_REF.OE_HEADERS_IFACE_ALL)
Valida ons:
Order_source : Name.OE_ORDER_SOURCES
Org_name : Name.HR_OPERATING_UNITS
Order_type : Name.OE_TRANSACTION_TYPES_TL
Price_list : Name.QP_LIST_HEADERS
Salesrep_name : Name.RA_SALESREPS_ALL
Sold_to_organiza on : Cust_account_id.HZ_CUST_ACCOUNTS
Ship_from_organiza on : SHIP_FROM_ORG_ID should exists in ORG_ORGANIZATION_DEFINITIONS ood, MTL_PARAMETERS MTL tables. This should be under the
Ship_to_organiza on : Site_use_id.HZ_CUST_SITE_USES_ALL
Invoice_to_organiza on : Site_use_id.HZ_CUST_SITE_USES_ALL
Line_type : Name.OE_TRANSACTION_TYPES_TL
Unit_of_Measure : Unit_of_Measure.MTL_UNITS_OF_MEASURE_TL
Standard Program:
Order Management, Vision Opera onsà Orders, Returnsà Import OrdersàOrder Import Requestà ‘Order Import’ program
Above program will call ‘Order Import Child Req1 (Order Import)’ another child program.
Return Status:
Success: The API was able to perform all the opera ons requested by the user.
Error: The API was not able to perform all the opera ons or some of the opera ons requested by the user.
Unexpected Errors: The API has encountered an error condi on which it didn’t expect.
In Most of the cases Developers can’t correct Unexpected Errors. System Administrators can handle these errors.
Messages:
The API put messages into message list. Programs calling these APIs can then retrieve the messages for display purpose or loading into the tables. In order to store
Parameters:
P_API_VERSION: Used to compare version numbers of user given and current version number.
P_VALIDATE:
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 11/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
When set to ‘False’ (Default Value), the procedure does all the valida ons. If opera on is valid, the rows in the corresponding table will be inserted or deleted or
updated depends upon the requirement. Any non warning OUT parameters (Ex: P_PERSON_ID), Warning OUT parameters (Ex: I_NAME_COMBINATION_WARNING)
When set to ‘True’, API checks only whether opera on is valid or not. It does so by issuing a savepoint at the start of the procedure and rolling back to that
savepoint at the end. We can’t access these internal savepoints. If the procedure is successful without any errors, non warning OUT parameters (Ex: P_PERSON_ID)
are set to null, warning OUT parameters (Ex: I_NAME_COMBINATION_WARNING) are set to null and INOUT parameters are set with IN values.
Every row in the table is assigned to an Object Version Number. When a new row is inserted, API assign the number ‘1’ (one) to this. Whenever row is updated in
------------------------------------------EMPLOYEE-------------------------------------------
DECLARE
I_person_id NUMBER;
I_assignment_id NUMBER;
I_per_object_version_number NUMBER;
I_asg_object_version_number NUMBER;
I_per_effective_start_date DATE;
I_per_effective_end_date DATE;
I_per_comment_id NUMBER;
I_assignment_sequence NUMBER;
I_name_combination_warning BOOLEAN;
I_assign_payroll_warning BOOLEAN;
I_orig_hire_warning BOOLEAN;
v_user_id NUMBER;
v_resp_id NUMBER;
v_resp_appl_id NUMBER;
BEGIN
v_user_id := fnd_global.user_id;
v_resp_id := fnd_global.resp_id;
v_resp_appl_id := fnd_global.resp_appl_id;
HR_EMPLOYEE_API.CREATE_EMPLOYEE (
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 12/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
COMMIT;
END;
Valida ons:
----------------------------------------EMPLOYEE ADDRESS-----------------------------------------
DECLARE
v_validate BOOLEAN;
v_effective_date DATE;
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 13/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
v_date_from DATE;
v_address_id NUMBER;
v_object_version_number NUMBER;
v__person_id NUMBER;
v_user_id NUMBER;
v_resp_id NUMBER;
v_resp_appl_id NUMBER;
BEGIN
v_validate := FALSE;
v_address_line2 := '1-234-5';
v_region_2 := 'TX';
v_postal_code := 77840;
v_region_1 := 'Brazos';
v_country := 'US';
v_primary_flag := 'N';
v_style := 'US';
v_person_id := 31488;
--v_user_id := fnd_global.user_id;
--v_resp_id := fnd_global.resp_id;
--v_resp_appl_id := fnd_global.resp_appl_id;
HR_PERSON_ADDRESS_API.CREATE_PERSON_ADDRESS (
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 14/15
4/2/2018 Oracle Applications: Oracle Interfaces(ITEMS,QOH,PO,PO REQ,AP,SO) and APIs(HRMS)
DBMS_OUTPUT.put_line (
COMMIT;
END;
Valida ons:
State : State_name.PAY_US_STATES
Code_end.PAY_CA_POSTAL_CODES_V
Labels: AP, API, CONVERSIONS, HRMS, INTERFACES, OM, PO, QOH, SCRIPTS
No comments:
Post a Comment
Email : OracleApps88@Yahoo.Com. Picture Window theme. Theme images by konradlew. Powered by Blogger.
http://oracleapps88.blogspot.com/2014/10/oracle-interfacesitemsqohpopo-reqapso.html 15/15