Concurrent Program Registration Scripts


The scripts in this article can be used to:
1) Register the executable and Program
2) Attach Concurrent program to a Request Group
3) Submit Concurrent program

1) Registering the Executable from back end

Usually we create executable in the front-end, but this can be done from the database tier i.e. back-end too.
Below is the PL/SQL code to create an executable from back-end.

Query in the front-end to see whether your executable is created or not.

2) Registering the Concurrent program from back end

Usually we create Concurrent program in the front-end, but this can be done from the database tier too.
Below is the program to create a Concurrent program from back-end.

Query in the front-end to see whether your Concurrent program is created or not.

Attaching the concurrent program to the request group

Usually we Attach Concurrent program to the request group in the front-end, but this can be done from database tier too.
Below is the program to Attach Concurrent program to the request group from back-end.

Query in the front-end to see whether your Concurrent program is Attached to Request Group or not.

Submitting Concurrent Program from Back-end

We first need to initialize oracle applications session using
fnd_global.apps_initialize(user_id,responsibility_id,application_responsibility_id) and then run fnd_request.submit_request

To get the resp_id and resp_appl_id use the below queries.

Once the concurrent program is submitted from back-end, status of the concurrent program can be checked using below query.