100% found this document useful (1 vote)
238 views3 pages

FND APIs

This document describes several APIs related to concurrent programs and requests in Oracle Applications. It provides details on APIs for: - Checking the status of a concurrent request and retrieving details like phase, status and completion message (FND_CONCURRENT.GET_REQUEST_STATUS) - Waiting for a concurrent request to complete and returning the final status and details (FND_CONCURRENT.WAIT_FOR_REQUEST) - Setting the completion status of a request from within a concurrent program (FND_CONCURRENT.SET_COMPLETION_STATUS) - Retrieving print options for a request (FND_CONCURRENT.GET_REQUEST_PRINT_OPTIONS) It also lists some additional useful APIs for getting

Uploaded by

hisham_476
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
238 views3 pages

FND APIs

This document describes several APIs related to concurrent programs and requests in Oracle Applications. It provides details on APIs for: - Checking the status of a concurrent request and retrieving details like phase, status and completion message (FND_CONCURRENT.GET_REQUEST_STATUS) - Waiting for a concurrent request to complete and returning the final status and details (FND_CONCURRENT.WAIT_FOR_REQUEST) - Setting the completion status of a request from within a concurrent program (FND_CONCURRENT.SET_COMPLETION_STATUS) - Retrieving print options for a request (FND_CONCURRENT.GET_REQUEST_PRINT_OPTIONS) It also lists some additional useful APIs for getting

Uploaded by

hisham_476
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

FND API's

===========
FND_PROGRAM.EXECUTABLE
--> Create Concurrent Executable
FND_PROGRAM.EXECUTABLE_EXISTS
--> returns true if the concurrent progr
am executable exists
FND_PROGRAM.REGISTER
--> Register Concurret Program
FND_PROGRAM.PROGRAM_EXISTS
--> returns true if the concurre
nt program exists else returns false
FND_PROGRAM.INCOMPATIBILITY_EXISTS
-->
FND_PROGRAM.PARAMETER
-->
creates parameters for t
he concurrent program.
FND_PROGRAM.PARAMETER_EXISTS
--> returns true if the concurrent progr
am parameter exists
FND_PROGRAM.INCOMPATIBILITY
--> defines incompatibilities fo
r the concurrent program
FND_PROGRAM.INCOMPATIBILITY_EXISTS
-->
returns true if the incompatibil
ity exists for the concurrent program
FND_PROGRAM.ADD_TO_GROUP
--> add the concurrent program t
o request grou
FND_PROGRAM.DELETE_PROGRAM
--> Delete a concurrent program.
Uses 2 params.. Conc Program Short Name & Application
FND_PROGRAM.DELETE_EXECUTABLE
--> Delete a concurrent program Executab
le. Uses 2 params.. EXECUTABLE Short Name & Application
FND_REQUEST.SUBMIT_REQUEST
--> Submits a concurrent request
. If the request completes successfully, this function returns the concurrent re
quest ID; otherwise, it returns 0.
FND_REQUEST.SET_PRINT_OPTIONS
--> call before submitting a concurrent
request to set print options. Returns TRUE on successful completion, and FALSE o
therwise.
FND_REQUEST.SET_MODE
--> Call this function before ca
lling FND_REQUEST.SUBMIT_REQUEST from a database trigger.
FND_CONCURRENT.GET_REQUEST_STATUS
--> Returns the Status of a concurrent r
equest.
FND_CONCURRENT.WAIT_FOR_REQUEST
--> waits for the request completion, th
en returns the request phase/status and completion message to the caller.
FND_SUBMIT_SET.REQUEST_SET
FND_SUBMIT.SET_PRINT_OPTIONS
FND_SUBMIT.ADD_NOTIFICATION
FND_SUBMIT.SUBMIT_PROGRAM
--> Call this function for each
program (report) in the request set.
FND_SUBMIT.SUBMIT_SET
--> Call this function to submit
the request set which is set by using the SET_REQUEST_SET. If the request set s
ubmission is successful, this function returns the concurrent request ID; otherw
ise; it returns 0.
FND_USER_PKG.CREATEUSER
FND_USER_PKG.UPDATEUSER
FND_USER_PKG.ADDRESP
r
FND_USER_PKG.DELRESP
ser
FND_FILE
I/O API
FND_FILE.PUT
FND_FILE.PUT_LINE

--> Create Oracle FND User


--> Update Oracle FND User
--> Adding responsibility to use
--> End Date responsibility to u
--> PL/SQL File
-->
--> Use this procedure t

o write a line of text to a file. Use fnd_file.LOG as first param to write to CP


file.
FND_FILE.NEW_LINE
--> procedure to write l
ine terminators
FND_FILE.PUT_NAMES
--> Sets the temporary l
og and out filenames and the temp directory to the user-specified values. DIR mu
st be a directory to which the database can write.
FND_FILE.CLOSE
Following are the FND_PROFILE values that can be used in the PL/SQL code:
FND_PROFILE.VALUE('PROFILEOPTION');
FND_PROFILE.VALUE('MFG_ORGANIZATION_ID');
FND_PROFILE.VALUE('ORG_ID');
FND_PROFILE.VALUE('LOGIN_ID');
FND_PROFILE.VALUE('USER_ID');
FND_PROFILE.VALUE('USERNAME');
FND_PROFILE.VALUE('CONCURRENT_REQUEST_ID');
FND_PROFILE.VALUE('GL_SET_OF_BKS_ID');
FND_PROFILE.VALUE('SO_ORGANIZATION_ID');
FND_PROFILE.VALUE('APPL_SHRT_NAME');
FND_PROFILE.VALUE('RESP_NAME');
FND_PROFILE.VALUE('RESP_ID');
Following are the FND_GLOBAL values that can be used in the PL/SQL code:
FND_GLOBAL.USER_ID;
FND_GLOBAL.APPS_INTIALIZE;
FND_GLOBAL.LOGIN_ID;
FND_GLOBAL.CONC_LOGIN_ID;
FND_GLOBAL.PROG_APPL_ID;
FND_GLOBAL.CONC_PROGRAM_ID;
FND_GLOBAL.CONC_REQUEST_ID;
For example, I almost always use the following global variable assignments in my
package specification to use throughout the entire package body:
g_user_id
g_login_id
g_conc_req_id
g_org_id
g_sob_id

PLS_INTEGER
PLS_INTEGER
PLS_INTEGER
PLS_INTEGER
PLS_INTEGER

:=
:=
:=
:=
:=

FND_GLOBAL.USER_ID;
FND_GLOBAL.LOGIN_ID;
FND_GLOBAL.CONC_REQUEST_ID;
FND_PROFILE.VALUE('ORG_ID');
FND_PROFILE.VALUE('GL_SET_OF_BKS_ID');

And initialize the application environment as follows:


v_resp_appl_id := FND_GLOBAL.RESP_APPL_ID;
v_resp_id
:= FND_GLOBAL.RESP_ID;
v_user_id
:= FND_GLOBAL.USER_ID;
FND_GLOBAL.APPS_INITIALIZE(v_user_id,v_resp_id, v_resp_appl_id);
================================================================================
=======================================================
FND_CONCURRENT.GET_REQUEST_STATUS
This API Returns the Status of a concurrent request. It also returns the complet
ion text if the request is already completed. The return type is Boolean (Return
s TRUE on successful retrieval of the information, FALSE otherwise).
function get_request_status(request_id
IN OUT NOCOPY number,
appl_shortname IN varchar2 default NULL,

program
phase
status
dev_phase
dev_status
message

OUT
OUT
OUT
OUT
OUT

IN varchar2 default NULL,


NOCOPY varchar2,
NOCOPY varchar2,
NOCOPY varchar2,
NOCOPY varchar2,
NOCOPY varchar2) return boolean;

The parameters are:


REQUEST_ID: Request ID of the program to be checked.
APPL_SHORTNAME: Short name of the application associated with the program. The d
efault is NULL.
PROGRAM: Short name of the concurrent program. The default is NULL.
PHASE: Request phase.
STATUS: Request status.
DEV_PHASE: Request phase as a string constant.
DEV_STATUS: Request status as a string constant.
MESSAGE: Request completion message.
FND_CONCURRENT.WAIT_FOR_REQUEST
This API waits for the request completion, then returns the request phase/status
and completion message to the caller. It goes to sleep between checks for the r
equest completion. The return type is Boolean (Returns TRUE on successful retrie
val of the information, FALSE otherwise).
function wait_for_request(request_id IN number default NULL,
interval IN number default 60,
max_wait IN number default 0,
phase
OUT NOCOPY varchar2,
status
OUT NOCOPY varchar2,
dev_phase OUT NOCOPY varchar2,
dev_status OUT NOCOPY varchar2,
message
OUT NOCOPY varchar2) return boolean;
The parameters are:
REQUEST_ID: Request ID of the request to wait on. The default is NULL.
INTERVAL: Number of seconds to wait between checks. The default is 60 seconds.
MAX_WAIT: Maximum number of seconds to wait for the request completion. The defa
ult is 00 seconds.
PHASE: User-friendly Request phase.
STATUS: User-friendly Request status.
DEV_PHASE: Request phase as a constant string.
DEV_STATUS: Request status as a constant string.
MESSAGE: Request completion message.
There are few other useful apis too.
FND_CONCURRENT.SET_COMPLETION_STATUS: Called from a concurrent request to set it
s completion status and message.
FND_CONCURRENT.GET_REQUEST_PRINT_OPTIONS: Returns the print options for a concur
rent request.
FND_CONCURRENT.GET_SUB_REQUESTS: Get all sub-requests for a given request id. Fo
r each sub-request it provides request_id, phase,status, developer phase , devel
oper status and completion text.
FND_CONCURRENT.Cancel_Request: It cancels a given Concurrent Request.
================================================================================
=======================================================

You might also like