DECLARE
l_emp_num varchar2(20);
l_person_id number;
l_assignment_id number;
l_asg_object_version_number number;
l_effective_start_date date;
l_effective_end_date date;
l_full_name varchar2(240);
l_per_comment_id number;
l_assignment_sequence number;
l_assignment_number per_all_assignments_f.assignment_number%TYPE;
l_name_combination_warning boolean;
l_assign_payroll_warning boolean;
l_orig_hire_warning boolean;
l_per_object_version_number number;
l_asgobject_version_number number;
l_comment_id number(5);
CURSOR CUR_TP IS
SELECT tp.hire_date
,tp.business_group_id
,tp.last_name
,tp.sex
FROM TEMP_PERSON tp ;
BEGIN
for ap in CUR_TP loop
l_emp_num:=null;
begin
HR_EMPLOYEE_API.CREATE_EMPLOYEE
(
p_hire_date => ap.hire_date
,p_business_group_id => ap.business_group_id
,p_last_name => ap.last_name
,p_sex => ap.sex
,p_employee_number => l_emp_num
,p_person_id => l_person_id
,p_assignment_id => l_assignment_id
,p_per_object_version_number => l_per_object_version_number
,p_asg_object_version_number => l_asgobject_version_number
,p_per_effective_start_date => l_effective_start_date
,p_per_effective_end_date => l_effective_end_date
,p_full_name => l_full_name
,p_per_comment_id => l_comment_id
,p_assignment_sequence => l_assignment_sequence
,p_assignment_number => l_assignment_number
,p_name_combination_warning => l_name_combination_warning
,p_assign_payroll_warning => l_assign_payroll_warning
,p_orig_hire_warning => l_orig_hire_warning
);
end;
END LOOP;
COMMIT;
END;
/
hr_utility.set_message(801, 'HR_7208_API_BUS_GRP_INVALID');
hr_utility.raise_error;
Showing posts with label Apps APIs. Show all posts
Showing posts with label Apps APIs. Show all posts
Nov 10, 2010
Apr 19, 2010
API
What is an API?
The Application Programmatic Interface or API is a PL/SQL packaged procedure that can be
used as an alternative to Application online forms for Application data entry and
manipulation.
The advantage of using an API to update application data is that users can maintain HRMS
information without using manual entry in Oracle application forms.
APIs insure the integrity of the interrelationship of Oracle Applications tables. You can
modify application information without detailed knowledge of the database structure, because
the API updates all the interrelated tables.
APIs help protect customer-specific data from database structural changes. As Oracle changes
table structures, the APIs are modified correspondingly, so that data can continue to be
modified without error or code updates.
How do I use an API to upload data?
The API package usually contains multiple procedures to insert, update, or delete application
data; the API procedures are executed when they are called by other PL/SQL modules, by a
direct SQL*Plus call, or through a front end such as the Data Pump.
The APIs do not issue commits. When a user-defined procedure or script calls the API
procedure, the calling module must manage transaction commit statements. The calling
module should also address exception handling and logging to delivered exception tables.
The API package should never be modified. Oracle cannot support modified APIs nor
systems that have used modified APIs, because HRMS data integrity could be compromised.
APIs can be used as building blocks called within an extensive customer-defined package.
Unique functionality can be addressed with API User Hooks or other user code, providing
that Oracle HRMS data is modified only through the call to the delivered API.
Different API's Present in Oracle Applications :
FND_PROGRAM.EXECUTABLE ( )
FND_PROGRAM.DELETE_EXECUTABLE( )
FND_PROGRAM.REGISTER( )
FND_PROGRAM.DELETE_PROGRAM( )
FND_PROGRAM.PARAMETER( )
FND_PROGRAM.DELETE_PARAMETER( )
FND_PROGRAM.INCOMPATIBILITY( )
FND_PROGRAM.DELETE_INCOMPATIBILITY( )
FND_PROGRAM.REQUEST_GROUP( )
FND_PROGRAM.DELETE_GROUP( )
FND_PROGRAM.ADD_TO_GROUP( )
FND_PROGRAM.REMOVE_FROM_GROUP( )
FND_REQUEST.SUBMIT_REQUEST( )
FND_CONCURRENT.WAIT_FOR_REQUEST( )
FND_REQUEST.SET_PRINT_OPTIONS ( )
FND_GLOBAL.USER_IDFND_GLOBAL.APPS_INITIALIZE(user_id in number,resp_id in number,resp_appl_id in number);
FND_GLOBAL.LOGIN_ID
FND_GLOBAL.CONC_LOGIN_ID
FND_GLOBAL.PROG_APPL_ID
FND_GLOBAL.CONC_PROGRAM_ID
FND_GLOBAL.CONC_REQUEST_ID
FND_PROFILE.PUT(name,value)
FND_PROFILE.GET(name IN varchar2,value out varchar2)
API’S IN APPS
PO
PO_CUSTOM_PRICE_PUB
PO_DOCUMENT_CONTROL_PUB
PO_DOC_MANAGER_PUB
PO_WFDS_PUB
AP
AP_NOTES_PUB
AP_WEB_AUDIT_LIST_PUB
INV
INV_COST_GROUP_PUB
INV_ITEM_CATALOG_ELEM_PUB
INV_ITEM_CATEGORY_PUB
INV_ITEM_PUB
INV_ITEM_REVISION_PUB
INV_ITEM_STATUS_PUB
INV_LOT_API_PUB
INV_MATERIAL_STATUS_PUB
INV_MOVEMENT_STATISTICS_PUB
INV_MOVE_ORDER_PUB
INV_PICK_RELEASE_PUB
INV_PICK_WAVE_PICK_CONFIRM_PUB
INV_RESERVATION_PUB
INV_SERIAL_NUMBER_PUB
INV_SHIPPING_TRANSACTION_PUB
The Application Programmatic Interface or API is a PL/SQL packaged procedure that can be
used as an alternative to Application online forms for Application data entry and
manipulation.
The advantage of using an API to update application data is that users can maintain HRMS
information without using manual entry in Oracle application forms.
APIs insure the integrity of the interrelationship of Oracle Applications tables. You can
modify application information without detailed knowledge of the database structure, because
the API updates all the interrelated tables.
APIs help protect customer-specific data from database structural changes. As Oracle changes
table structures, the APIs are modified correspondingly, so that data can continue to be
modified without error or code updates.
How do I use an API to upload data?
The API package usually contains multiple procedures to insert, update, or delete application
data; the API procedures are executed when they are called by other PL/SQL modules, by a
direct SQL*Plus call, or through a front end such as the Data Pump.
The APIs do not issue commits. When a user-defined procedure or script calls the API
procedure, the calling module must manage transaction commit statements. The calling
module should also address exception handling and logging to delivered exception tables.
The API package should never be modified. Oracle cannot support modified APIs nor
systems that have used modified APIs, because HRMS data integrity could be compromised.
APIs can be used as building blocks called within an extensive customer-defined package.
Unique functionality can be addressed with API User Hooks or other user code, providing
that Oracle HRMS data is modified only through the call to the delivered API.
Different API's Present in Oracle Applications :
FND_PROGRAM.EXECUTABLE ( )
FND_PROGRAM.DELETE_EXECUTABLE( )
FND_PROGRAM.REGISTER( )
FND_PROGRAM.DELETE_PROGRAM( )
FND_PROGRAM.PARAMETER( )
FND_PROGRAM.DELETE_PARAMETER( )
FND_PROGRAM.INCOMPATIBILITY( )
FND_PROGRAM.DELETE_INCOMPATIBILITY( )
FND_PROGRAM.REQUEST_GROUP( )
FND_PROGRAM.DELETE_GROUP( )
FND_PROGRAM.ADD_TO_GROUP( )
FND_PROGRAM.REMOVE_FROM_GROUP( )
FND_REQUEST.SUBMIT_REQUEST( )
FND_CONCURRENT.WAIT_FOR_REQUEST( )
FND_REQUEST.SET_PRINT_OPTIONS ( )
FND_GLOBAL.USER_IDFND_GLOBAL.APPS_INITIALIZE(user_id in number,resp_id in number,resp_appl_id in number);
FND_GLOBAL.LOGIN_ID
FND_GLOBAL.CONC_LOGIN_ID
FND_GLOBAL.PROG_APPL_ID
FND_GLOBAL.CONC_PROGRAM_ID
FND_GLOBAL.CONC_REQUEST_ID
FND_PROFILE.PUT(name,value)
FND_PROFILE.GET(name IN varchar2,value out varchar2)
API’S IN APPS
PO
PO_CUSTOM_PRICE_PUB
PO_DOCUMENT_CONTROL_PUB
PO_DOC_MANAGER_PUB
PO_WFDS_PUB
AP
AP_NOTES_PUB
AP_WEB_AUDIT_LIST_PUB
INV
INV_COST_GROUP_PUB
INV_ITEM_CATALOG_ELEM_PUB
INV_ITEM_CATEGORY_PUB
INV_ITEM_PUB
INV_ITEM_REVISION_PUB
INV_ITEM_STATUS_PUB
INV_LOT_API_PUB
INV_MATERIAL_STATUS_PUB
INV_MOVEMENT_STATISTICS_PUB
INV_MOVE_ORDER_PUB
INV_PICK_RELEASE_PUB
INV_PICK_WAVE_PICK_CONFIRM_PUB
INV_RESERVATION_PUB
INV_SERIAL_NUMBER_PUB
INV_SHIPPING_TRANSACTION_PUB
Mar 26, 2010
Project Accounting APIs...
APIs Packages
Internal Name: PA_AGREEMENT_PUB
Description: This package contains the public AMG APIs for agreement and Funding procedures that will be used by the external system
APIs (Functions and Procedures):
Name | Internal Name | Description |
CLEAR_AGREEMENT | This API clears the globals that were set up during initialization In order to execute this API the following list of API's should be executed in the order of sequence. | |
EXECUTE_CREATE_AGREEMENT | This API creates an agreement with the funding using the data stored in the global tables during the load phase In order to execute this API the following list of API's should be executed in the order of sequence. | |
INIT_AGREEMENT | This API sets the global tables used by load-execute-fetch procedures that create a new agreement or update an existing agreement In order to execute this API the following list of API's should be executed in the order of sequence. | |
LOAD_AGREEMENT | This API loads an agreement to a PL/SQL record In order to execute this API the following list of API's should be executed in the order of sequence. | |
FETCH_FUNDING | This API gets the return status that was returned during creation of funds and stored in a global PL/SQL table In order to execute this API the following list of API's should be executed in the order of sequence. | |
LOAD_FUNDING | This API loads funding to a PL/SQL table In order to execute this API the following list of API's should be executed in the order of sequence. | |
CREATE_AGREEMENT | This API creates an agreement with associated funds from an external system | |
ADD_FUNDING | This API adds funding to an agreement | |
DELETE_AGREEMENT | This API deletes an agreement with associated funds from an external system | |
DELETE_FUNDING | This API deletes a fund from an agreement | |
EXECUTE_UPDATE_AGREEMENT | This API updates an agreement with the funding using the data stored in the global tables during the load phase In order to execute this API the following list of API's should be executed in the order of sequence. | |
UPDATE_AGREEMENT | This API updates an agreement and associated funds | |
UPDATE_FUNDING | This API updates a fund for an agreement | |
CHECK_DELETE_AGREEMENT_OK | This API checks whether an agreement can be deleted. | |
CHECK_ADD_FUNDING_OK | This API checks whether a fund can be added. | |
CHECK_DELETE_FUNDING_OK | This API checks whether a fund can be deleted | |
CHECK_UPDATE_FUNDING_OK | This API checks whether a fund can be added. |
Internal Name: PA_BUDGET_PUB
Description: This package contains the public AMG APIs for Budgets that will be used by the external system for preparing budget and use the API's to interface the budget and budget line into Oracle Projects.
APIs (Functions and Procedures):
Name | Internal Name | Description |
Create Budget Line | ADD_BUDGET_LINE | This API is used to add a budget line to a working budget in Oracle Projects for a given project and budget type. |
Create Draft Budget | CREATE_DRAFT_BUDGET | This API is used to create a draft budget and its budget lines in Oracle Projects for a given project, using a selected budget type and budget entry method. |
Create Multiple Budgets- Load Budget Line | LOAD_BUDGET_LINE | This API is used to load a budget line to a global PL/SQL table. |
Create Multiple Budgets-Clear | CLEAR_BUDGET | This API is used clear the global data structures set up during the Initialize step. |
Create Multiple Budgets-Create Draft Budget | EXECUTE_CREATE_DRAFT_BUDGET | This API is used to create a budget and its budget lines using the data stored in the global tables during the Load process. |
Create Multiple Budgets-Execute Calculate Amounts | EXECUTE_CALCULATE_AMOUNTS | This API is used to calculate the raw cost, burdened cost, and revenue amounts using existing budget lines for a given project and budget type In order to execute this API, the following list of API's should be executed in order of sequence. |
Create Multiple Budgets-Fetch Calculate Amounts | FETCH_CALCULATE_AMOUNTS | This API is used to get the raw cost, burdened cost, and revenue amounts by budget line from global records updated by the API In order to execute this API, the following list of API's should be executed in order of sequence. |
Create Multiple Budgets-Initialize | INIT_BUDGET | This API is used to set up the global data structures that other Load Execute Fetch procedures use to create a new or update an existing draft budget in Oracle Projects In order to execute this API, the following list of API's should be |
Create Multiple Budgets-Initialize Calculate Amounts | INIT_CALCULATE_AMOUNTS | This API issued to set up the global data structures used by the Load Execute Fetch API CALCULATE_AMOUNTS In order to execute this API, the following list of API's should be executed in order of sequence. |
Create Multiple Budgets-Load Fetch Line | FETCH_BUDGET_LINE | This API is used to retrieve the return status returned during the creation of a budget line from a global PL/SQL table. |
Delete Budget Line | DELETE_BUDGET_LINE | This API is used to delete a budget line from a working budget in Oracle Projects for a given project and budget type. |
Delete Draft Budget | DELETE_DRAFT_BUDGET | This API is used to delete a working budget in Oracle Projects for a given project and budget type. |
Fetch Calculate Amounts | FETCH_CALCULATE_AMOUNTS | This API is used to get the raw cost, burdened cost, and revenue amounts by budget line from global records updated by the API |
Get Budget Amounts | CALCULATE_AMOUNTS | Using the PA_CLIENT_EXTN_BUDGET extension, you can use the public API CALCULATE_AMOUNTS to recalculate raw cost, burdened cost, and revenue amounts for existing budget lines. |
Update Budget | UPDATE_BUDGET | This API is used to update the working budget with its budget lines in Oracle Projects for a given project. |
Update Budget Line | UPDATE_BUDGET_LINE | This API is used to update an existing budget line of a working budget in Oracle Projects for a given project and budget type. |
Update Multiple Budgets | EXECUTE_UPDATE_BUDGET | |
Verify Budget Amounts | BASELINE_BUDGET | This API is used to baseline an existing budget in Oracle Projects for a given project and budget type |
Package Name:
Internal Name: PA_RESOURCE_PUB
Description: This package contains the public AMG APIs that will be used to export the resource lists and the resources they include to the Oracle Projects. Oracle Projects updates its resource information accordingly.
APIs (Functions and Procedures):
Name | Internal Name | Description |
Create Multiple Resource Lists-Clear | CLEAR_CREATE_RESOURCE_LIST | This API is used to clear the global data structures set up during the Initialize step. |
Create Multiple Resource Lists-Execute Create | EXEC_CREATE_RESOURCE_LIST | This API is used to execute the composite API CREATE_RESOURCE_LIST In order to execute this API the following list of API's should be executed in the order of sequence. |
Create Multiple Resource Lists-Fetch | FETCH_RESOURCE_LIST | This API is used to fetch one resource list identifier at a time from the global output structure for resource lists. |
Create Multiple Resource Lists-Initialize | INIT_CREATE_RESOURCE_LIST | This API is used to set up the global data structures used by other Load Execute Fetch procedures. |
Create Multiple Resource Lists-Load | LOAD_RESOURCE_LIST | This API is used to load the resource list global input structure. |
Create Resource List | CREATE_RESOURCE_LIST | This API creates a resource list and optionally creates the resource list members. |
Create Resource List Member | ADD_RESOURCE_LIST_MEMBER | This API adds a resource member to an existing resource list |
Delete Resource List | DELETE_RESOURCE_LIST | This API Deletes a resource member from an existing resource list |
Delete Resource List Member | DELETE_RESOURCE_LIST_MEMBER | This API deletes a given resource list member |
Update Multiple Members-Load | LOAD_MEMBERS | This API is procedure used to load the resource list member global input structure. |
Update Multiple Members-Clear | CLEAR_UPDATE_MEMBERS | This API is used to clear the global data structures that were set up during the Initialize step for the Load Execute Fetch update APIs. |
Update Multiple Members-Fetch | FETCH_MEMBERS | This API is used to fetch resource members from the global output structure for resource list members. |
Update Multiple Members-Initialize | INIT_UPDATE_MEMBERS | This API is used to set up the global data structures used by other Load Execute Fetch procedures. |
Update Multiple Members-Sort | SORT_RESOURCE_LIST_MEMBERS | This API updates the sort order for resource members in a given resource list |
Update Multiple Resource Lists | EXEC_UPDATE_RESOURCE_LIST | This API is used to execute the composite API UPDATE_RESOURCE_LIST. |
Update Resource List | UPDATE_RESOURCE_LIST | This API is used to update an existing resource list, including updating existing or adding new resource list members. |
Update Resource List Member | UPDATE_RESOURCE_LIST_MEMBER | This API updates the alias and enables or disables the resource list members. |
Package Name: Project Pub
Internal Name: PA_PROJECT_PUB
Description: This package contains the public AMG APIs for project and task information
APIs (Functions and Procedures):
Name | Internal Name | Description |
Create Multiple Projects-Clear Project | CLEAR_PROJECT | This API procedure is used to clear the global structures setup during the load process In order to execute this API the following list of API's should be executed in the order of sequence. |
Create Multiple Projects-Execute Create Project | EXECUTE_CREATE_PROJECT | This Load Execute Fetch API is used to create a project and its tasks using the data stored in the global tables during the Load process In order to execute this API the following list of API's should be executed in the order of sequence. |
Create Multiple Projects-Execute Update Project | EXECUTE_UPDATE_PROJECT | This API procedure is used to update an existing project, including changing or adding project data, adding new tasks, and updating existing tasks. |
Create Multiple Projects-Init Project | INIT_PROJECT | This API procedure is used to the global data structures. Other Load-Execute-Fetch use the structures to create a new project in Oracle Projects In order to execute this API the following list of API's should be executed in the order of sequence. |
Create Multiple Projects-Load Class Category | LOAD_CLASS_CATEGORY | This Load Execute Fetch API is used to load class categories to a global PL/SQL table. |
Create Multiple Projects-Load Key Member | LOAD_KEY_MEMBER | This Load Execute Fetch API is used to use to load key members to a global PL/SQL table. |
Create Multiple Projects-Load Project | LOAD_PROJECT | This API is used to use to load a project to a global PL/SQL record. |
Create Multiple Tasks-Fetch | FETCH_TASK | This Load Execute Fetch API is used to fetch output parameters related to tasks. |
Create Multiple Tasks-Load | LOAD_TASK | This API is used to load a task to a global PL/SQL table. |
Create Project | CREATE_PROJECT | This API creates a project in the Oracle Projects using a Template or existing project. |
Create Task | ADD_TASK | This API is used to add new subtasks to a task of a project in Oracle Projects. |
Delete Project | DELETE_PROJECT | This API procedure is used to delete a project and its tasks from Oracle Projects |
Delete Task | DELETE_TASK | This API is used to delete tasks of a project in Oracle Projects |
Update Task | UPDATE_TASK | This API is used to update existing tasks of a project in Oracle Projects. |
Update project | UPDATE_PROJECT | This API procedure pushes project and task information from your external system to Oracle Projects to reflect any changes you have made in the external system |
Validate Project Deletion | CHECK_DELETE_PROJECT_OK | This API is used to determine if you can delete a project. |
Validate Project Organization Change | CHECK_CHANGE_PROJECT_ORG_OK | This API is used to determine if you can change the CARRYING_OUT_ORGANIZATION_ID field for a particular project or task. |
Verify Parent Change | CHECK_CHANGE_PARENT_OK | |
Verify Project Reference Uniqueness | CHECK_UNIQUE_PROJECT_REFERENCE | |
Verify Subtask Addition | CHECK_ADD_SUBTASK_OK | |
Verify Task Deletion | CHECK_DELETE_TASK_OK | |
Verify Task Number Change | CHECK_TASK_NUMBER_CHANGE_OK | |
Verify Task Number Uniqueness | CHECK_UNIQUE_TASK_NUMBER | |
Verify Task Reference Uniqueness | CHECK_UNIQUE_TASK_REFERENCE | This API is used to determine if a new or changed task reference (PM_TASK_REFERENCE) is unique. |
Package Name: Project Billing Events
Internal Name: PA_EVENT_PUB
Description: This package contains the public AMG APIs which provide an open interface for external systems to insert, update and delete events.
APIs (Functions and Procedures):
Name | Internal Name | Description |
Create Billing Event | CREATE_EVENT | This API creates an event or a set of events. |
Create Multiple Billing Events – Clear | CLEAR_EVENT | This API clears the globals that were set up during initialization. |
Create Multiple Billing Events - Execute Create | EXECUTE_CREATE_EVENT | This API creates an event using the data which is stored in the global tables during the Load phase In order to execute this API the following list of API's should be executed in the order of sequence. |
Create Multiple Billing Events – Fetch | FETCH_EVENT | This API gets the return_status that was returned during creation of an event and stored in a global PL/SQL table. |
Create Multiple Billing Events – Load | LOAD_EVENT | This API loads an event to a PL/SQL record. |
Create Multiple Billing Events-Initialize | INIT_EVENT | This API sets the global tables used by the Load Execute Fetch procedures that create a new event or update an existing event. |
Delete Billing Event | DELETE_EVENT | This API deletes an event. |
Update Billing Event | UPDATE_EVENT | This API updates an event or set of events. |
Update Multiple Billing Events-Update | EXECUTE_UPDATE_EVENT | This API updates event data using the information stored in the global tables during the Load phase. |
Validate Billing Event Deletion | CHECK_DELETE_EVENT_OK | This API checks whether an event can be deleted. |
Open Interfaces
Script To find Oracle API's for any module
Following script and get all the packages related to API in Oracle applications, from which you can select APIs that pertain to AP. You can change the name like to PA or AR and can check for different modules
select substr(a.OWNER,1,20)
, substr(a.NAME,1,30)
, substr(a.TYPE,1,20)
, substr(u.status,1,10) Stat
, u.last_ddl_time
, substr(text,1,80) Description
from dba_source a, dba_objects u
WHERE 2=2
and u.object_name = a.name
and a.text like '%Header%'
and a.type = u.object_type
and a.name like 'PA_%API%'
order by
a.owner, a.name;
Oracle Database 11g The Complete Reference (Osborne ORACLE Press Series)
select substr(a.OWNER,1,20)
, substr(a.NAME,1,30)
, substr(a.TYPE,1,20)
, substr(u.status,1,10) Stat
, u.last_ddl_time
, substr(text,1,80) Description
from dba_source a, dba_objects u
WHERE 2=2
and u.object_name = a.name
and a.text like '%Header%'
and a.type = u.object_type
and a.name like 'PA_%API%'
order by
a.owner, a.name;
Oracle Database 11g The Complete Reference (Osborne ORACLE Press Series)
Subscribe to:
Posts (Atom)
OraApps Search
Custom Search