Oracle Applications - API
Oracle Applications - API
DECLARE
l_msg_count NUMBER;
l_msg_data VARCHAR2 (2000);
l_return_status VARCHAR2 (1);
l_out_pa_task_id NUMBER;
l_out_pm_task_reference VARCHAR2 (2000);
l_output VARCHAR2 (2000);
l_msg_dummy VARCHAR2 (2000);
n NUMBER := 0;
l_pm_product_code VARCHAR2 (10):= 'GMS';
l_pa_project_id NUMBER := 3432;
l_task_id NUMBER := 23432;
BEGIN
> SET GLOBAL INFO
SELECT user_id,
responsibility_id
INTO l_user_id,
l_responsibility_id
FROM pa_user_resp_v
WHERE 1=1
and user_name = 'OPERATIONS'
and RESPONSIBILITY_name = 'Project Billing Super User'
;
>>=============================================================================================
PA_PROJECT_PUB.UPDATE_TASK
(
p_api_version_number => '1.0',
p_commit => 'F',
p_init_msg_list => 'T',
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_pm_product_code => l_pm_product_code,
p_pa_project_id => l_pa_project_id,
p_pa_task_id => l_task_id,
p_tasks_dff => 'Y',
p_attribute3 => TO_DATE (SYSDATE, 'YYYY/MM/DD HH24:MI:SS'),
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 1/17
2/11/2016 Oracle Applications: API
p_attribute4 => TO_DATE (SYSDATE, 'YYYY/MM/DD HH24:MI:SS'),
p_out_pa_task_id => l_out_pa_task_id,
p_out_pm_task_reference => l_out_pm_task_reference
);
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line ('Other Error in Project: ' || SQLERRM);
END;
Data Migration is the process of transferring data between one system to another system. Data migration is required when organizations or individuals change
computer systems or upgrade to new systems, or when systems merge (such as when the organizations that use them undergo a merger/takeover).
Data conversion is a bit different from data migration in the sense that in data conversion we convert data form one format to another format in the different version
of the same system. Example: When we upgrade from Oracle 11i to Oracle R12 we do a data conversion from 11i to R12
Interface is similar to both the data migration and conversion in the sense it involves the movement of data from one system to another system but its requirement
business is completely different. Interfaces are written to transfer data on a regular basis whereas most of the data migration and conversion job are one time activity.
Following examples distinguishes all the above three process
Importing customer / supplier / item information from legacy – Data Migration
Moving customer / supplier / item information from 11i to R12 – Data Conversion
Importing/Exporting PO/SO/WIP information from one system to oracle on a daily basis – Interface Job
Important APIs/Open Interfaces
Customer APIs
hz_party_v2pub.create_organization
Org Contact Role Hz_party_contact_v2pub.Create_Org_Contact_Role
Relationships HZ_CUST_ACCOUNT_V2PUB.CREATE_CUST_ACCT_RELATE
Customer Profile HZ_CUSTOMER_PROFILE_V2PUB. Create_customer_profile
Customer Profile Amount HZ_CUSTOMER_PROFILE_V2PUB. create_cust_profile_amt
Customer Credit Rating HZ_PARTY_INFO_V2PUB.create_credit_rating
Sales Person JTF_RS_SALESREPS_PUB.CREATE_SALESREP
Sales reps Territories JTF_RS_SRP_TERRITORIES_PUB.CREATE_RS_SRP_TERRITORIES
Customer contacts HZ_CUST_ACCOUNT_ROLE_V2PUB.CREATE_CUST_ACCOUNT_ROLE
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 2/17
2/11/2016 Oracle Applications: API
Customer Contact Role HZ_CUST_ACCOUNT_ROLE_V2PUB.create_role_responsibility
Vendor APIs
Procedure: AP_PO_VENDORS_APIS_PKG.INSERT_NEW_VENDOR
Procedure=> AP_PO_VENDORS_APIS_PKG.INSERT_NEW_VENDOR_SITE
Procedure=> AP_PO_VENDORS_APIS_PKG.INSERT_NEW_VENDOR_CONTACT
Item Import
You must import items into the Item Master organization before you import items into additional organizations. You can accomplish this by specifying only your
Item Master organization on a first pass run of the Item Interface. Once this has completed, you can run the Item Interface again, this time specifying an additional or
all organizations.
Populate these tables first..
MTL_SYSTEM_ITEM_INTERFACE
MTL_ITEMS_REVISIONS_INTERFACE
MTL_ITEM_CATEGORIES_INTERFACE
Always set the TRANSACTION_TYPE column to CREATE, to create an item record (true when both importing a new item and assigning an already existing item
to another organization). This is the only value currently supported by the Item Interface. Set the PROCESS_FLAG to 1 (Pending), so that the Item Interface can
pick up the row and process it. The program sets the PROCESS_FLAG to 7 (Import succeeded) or 4 (Import failed) or 3 (validation failed). A row is inserted into
the MTL_INTERFACE_ERRORS table for all failed rows. When the Item Interface imports an item, it also assigns the item to the mandatory category sets based on
the item defining attributes. The default category for each category set is used. The Item Interface also allows you to assign items to other category sets and
categories, when there is data for item category assignments in the MTL_ITEM_CATEGORIES_INTERFACE table.
Run Import Items Report:
Indicate whether to run the interface for all organizations in the item interface table. If you choose No, the interface runs only for the current organization and
interface table rows for other organizations are ignored. Parameter Create or Update Items..
1 Create new items.
2 Update existing items.
The sets of data required by Oracle Applications can be broadly classified in to 4 categories
Master Data: Item, Customer, Vendor, Bank Accounts, etc.
Opening Balances: OnHand Quantity of Items, GL Balances, etc.
Open Transactions: Open Purchase Orders, Open Sales Order, Open Invoice etc.
Setup Data : Item Categories, Stock Locators
Similar source of data can be classified as
Existing Applications: DB2, Tally, SMS, etc.
Electronic Data: Comming through EDI in formats of Excel, Word, etc.
Hard Copy Data : In Registers
Non Existent : Equipment Master, Collect and then migrate
The above diagram depicts the high level Data Migration approach from Legacy to ORACLE.
At a minimum, the data migration from Legacy to ORACLE consists of these tasks:
Extracting the data from Legacy data base.
Loading the extracted data into staging area.
Mapping and transformation of source data.
Migrating source data from staging area into target data base.
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 3/17
2/11/2016 Oracle Applications: API
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.
Identification:
(SEGMENT1.MTL_SYSTEM_ITEMS_INTERFACE ORGANIZATION_ID.
MTL_SYSTEM_ITEMS_INTERFACE)
Process Flag:
1 Picking
2 Assign complete
3 Validation 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).
For example, if we import the items Validate Items: Yes, Process Items: Yes then after validation success it will change to 4 and insert into base tables. If insertion
is successful then PROCESS_FLAG will be set to 7. In this case we can see the PROCESS_FLAG with 7 instead of 4.
Validations:
Organization_Name : Organization_name.ORG_ORGANIZATION_DEFINITIONS
Master_Organization_id : Organization_id.MTL_PARAMETERS
Standard Program:
Parameters:
All Organizations:
No : Run the Interface only for the organization that you are currently in (Front end)
Yes, No : Validate the data but won’t import the data into Base tables.
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 4/17
2/11/2016 Oracle Applications: API
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:
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,
LAST_UPDATED_BY,
CREATION_DATE,
CREATED_BY)
VALUES (204,
42,
1751,
'Stores',
'Ea',
100,
12945,
123,
1234,
12345,
1,
3,
SYSDATE,
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 5/17
2/11/2016 Oracle Applications: API
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.
Identification:
Transaction Mode:
2 Concurrent
3 Background
Concurrent: Transaction Manager will pick the records and assign to Transaction Worker.
Unless Transaction Manager is running it won’t pick these records. Status of Material Transaction should be Active.
Background: We can launch the Transaction Worker Manually. The Transaction Manager won’t pick these records.
Validations:
Organization_Name : Organization_name.ORG_ORGANIZATION_DEFINITIONS
Transaction_Type : Transaction_type_name.MTL_TRANSACTION_TYPES
Subinventory_code : Secondary_inventory_name.MTL_SECONDARY_INVENTORIES
Transaction_Uom : Unit_of_Measure.MTL_UNITS_OF_MEASURE_TL
Distribution_account : Segment1…5.GL_CODE_COMBINATIONS
Standard Program:
Run this program again this will call the program ‘Inventory transaction 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,
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 6/17
2/11/2016 Oracle Applications: API
'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
Identification:
(INVOICE_NUM.AP_INVOICES_INTERFACE)
Validations:
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
Code_combinations : Segment1…5.GL_CODE_COMBINATIONS
Standard Program:
Parameters:
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐PURCHASE ORDERS‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Single Insert:
INTERFACE_HEADER_ID,
DOCUMENT_TYPE_CODE,
DOCUMENT_NUM,
ORG_ID,
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 7/17
2/11/2016 Oracle Applications: API
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,
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,
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 8/17
2/11/2016 Oracle Applications: API
QUANTITY_ORDERED,
CHARGE_ACCOUNT_ID)
VALUES (123,
1234,
12345,
1,
10,
13401)
PROCESS_CODE.PO_HEADERS_INTERFACE is REJECTED
Identification:
(DOCUMENT_NUM.PO_HEADERS_INTERFACE)
Validations:
Document_type : Document_sub_type.PO_DOCUMENT_TYPES
Org_name : Name.HR_OPERATING_UNITS
Vendor_name : Vendor_name.PO_VENDORS
Vendor_site : Vendor_site_code.PO_VENDOR_SITES_ALL
Ship_to_location_name : Location_code.HR_LOCATIONS
Bill_to_location_name : Location_code.HR_LOCATIONS
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
Ship_to_organization_name : Organization_name.ORG_ORGANIZATION_DEFINITIONS
Ship_to_location_name : Location_code.HR_LOCATIONS
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,
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 9/17
2/11/2016 Oracle Applications: API
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’,
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
Identification:
(INTERFACE_SOURCE_CODE.PO_REQUISITIONS_INTERFACE_ALL)
Validations:
Requisition_type : Document_sub_type.PO_DOCUMENT_TYPE
Preparer_name : Agent_name.PO_AGENTS_V
Requestor_name : Agent_name.PO_AGENTS_V
Line_type : Line_type.PO_LINE_TYPES_TL
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 10/17
2/11/2016 Oracle Applications: API
Unit_of_measure : Unit_of_Measure.MTL_UNITS_OF_MEASURE_TL
Destination_organization_name : Organization_name.ORG_ORGANIZATION_DEFINITIONS
Deliver_to_location : Location_code.HR_LOCATIONS
Charge_account_code : Segment1…5.GL_CODE_COMBINATIONS
Standard Program:
Parameters:
Multiple Distributions:
No : Only one distribution will be created for one line based on the CHARGE_ACCOUNT_ID given n the PO_REQUISITIONS_INTERFACE_ALL (Line)
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐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’,
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 11/17
2/11/2016 Oracle Applications: API
‘N’,
1007932,
SYSDATE,
1007932,
SYSDATE)
ORIG_SYS_DOCUMENT_REF,
ORIG_SYS_LINE_REF,
LINE_NUMBER,
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,
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 12/17
2/11/2016 Oracle Applications: API
‘N’,
1000)
Booked flag: The order will be in ‘entered’ status if it is ‘N’ (CLOSED_FLAG should be ‘N’)
Error Table : No Error Table. Output or log file will display the errors.
Identification:
(ORIG_SYS_DOCUMENT_REF.OE_HEADERS_IFACE_ALL)
Validations:
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
Transactional_curr_code : Currency.FND_CURRENCIES
Salesrep_name : Name.RA_SALESREPS_ALL
Sold_to_organization : Cust_account_id.HZ_CUST_ACCOUNTS
Ship_from_organization : SHIP_FROM_ORG_ID should exists in ORG_ORGANIZATION_DEFINITIONS ood, MTL_PARAMETERS MTL tables. This should be under
Ship_to_organization : Site_use_id.HZ_CUST_SITE_USES_ALL
Invoice_to_organization : 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 Operations Orders, Returns Import OrdersOrder 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 operations requested by the user.
Error: The API was not able to perform all the operations or some of the operations requested by the user.
Unexpected Errors: The API has encountered an error condition 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.
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 13/17
2/11/2016 Oracle Applications: API
P_VALIDATE:
When set to ‘False’ (Default Value), the procedure does all the validations. If operation 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) and INOUT parameters are all set with specific values.
When set to ‘True’, API checks only whether operation 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/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 14/17
2/11/2016 Oracle Applications: API
COMMIT;
END;
Identification:
Validations:
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐EMPLOYEE ADDRESS‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
DECLARE
v_validate BOOLEAN;
v_effective_date DATE;
v_date_from DATE;
v_address_id NUMBER;
v_object_version_number NUMBER;
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 15/17
2/11/2016 Oracle Applications: API
v__person_id NUMBER;
v_user_id NUMBER;
v_resp_id NUMBER;
v_resp_appl_id NUMBER;
BEGIN
v_validate := FALSE;
v_address_line2 := '12345';
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 (
DBMS_OUTPUT.put_line (
COMMIT;
END;
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 16/17
2/11/2016 Oracle Applications: API
Identification:
Validations:
State : State_name.PAY_US_STATES
Code_end.PAY_CA_POSTAL_CODES_V
Labels: AP, API, CONVERSIONS, HRMS, INTERFACES, OM, PO, QOH, SCRIPTS
Email : [email protected]. Picture Window template. Template images by konradlew. Powered by Blogger.
http://oracleapps88.blogspot.com/search/label/API?updatedmax=20150220T02:49:00%2B05:30&maxresults=20&start=11&bydate=false 17/17