Calling Concurrent Request in JSP
Hi -
I need to call a concurrent program from my JSP.
The JSP has all the required parameters that are to be passed to the concurrent program. Is there a standard was of doing so.
Regard,
Siddharth
Hi Siddharth...
Did you get any response for this. I am also looking for info on this.
Appreciate if you can help me. My personal email is [email protected]
thanks
Mateen
Similar Messages
-
Problem in calling concurrent request from oracle forms
Hi,
I am using the following code to call the above concurrent request to transfer the data from AR interface table to the base table.
req_id := FND_REQUEST.SUBMIT_REQUEST('AR','RAXMTR','','',FALSE,
'1', '1023', 'CONTRA', '2009/10/30 00:00:00' ,'','','','','',''
,'','','','','Y','','103','','',''
if app_form.quietcommit then
MESSAGE(req_id);
MESSAGE(req_id);
end if;
The request gets completed with error. The diagnostic shows the following error
"*This request finished with an error and produced the following completion message: Usage: program oracleid request_id Y*
*The processing began on 30-OCT-2009 17:53:13 and ended on 30-OCT-2009 17:53:14. You may find more information on the cause of the error in the request log or the concurrent manager log*."
I have used similar method to execute AP interface import program and it worked. The above request is a spawned request. Any help would be appreciated.
Regards
DeepakPl see if these MOS Docs can help
170729.1 - Autoinvoice Master Program fails with USAGE: PROGRAM ORACLEID REQUEST_ID Y
460048.1 - AutoInvoice Master Log Shows "Usage: Program Oracleid Request_id Y"
217054.1 - Autoinvoice Errors USAGE: PROGRAM ORACLEID REQUEST_ID Y
HTH
Srini -
Calling Concurrent Program From OAF in R12
Hi All,
I have called concurrent request from OAf page..When i click the submit button the page forwarded to Request page..
In that i have three buttons only Submit Request,search,Refresh but i need, What are all the options present in Requests > Submit window (not from OAF)"Hold Request,Cancel Request,Diagnostics,View Log"..
Also in my OAF Page if i click Submit Request-->Radio Button "New Request"--> if i clock LOV it doesn't shows any values...
Kindly help me to resolve this issue..
Thanks in advance for your valuable suggestion..
Regards,
RKOHi Hussein,
Here I've shown the details of log file
Purchasing: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXCON module: XXCON
Current system time is 29-DEC-2010 11:37:23
+-----------------------------*
*| Starting concurrent program execution...*
+-----------------------------*
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.AL32UTF8
Enter Password:
Report Builder: Release 10.1.2.3.0 - Production on Wed Dec 29 11:37:29 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Executing request completion options...
------------- 1) PRINT -------------*
Printing output file.
Request ID : 5865903
Number of copies : 0
Printer : noprint
Finished executing request completion options.
Concurrent request completed successfully
Current system time is 29-DEC-2010 11:37:33
Regards,
Saro -
Calling a concurrent request from within the trigger
Oracle apps r12.
Calling a concurrent request from within the trigger.
Does it requre apps initilization.
Thanks,
LavanHi,
Whether apps initialization needed or not will depend on followings
1. Trigger is written on which table seeded or custom. In case of seeded tables, there is no need for apps initialization (although oracle does not recommend writing trigger on seeded tables).
2. Triggering Table Update/Insert/Delete event processing is done from apps front end or Backend. In case of front end apps initialization is not required.
Regards,
Saurabh -
Problem with concurrent request set api call
Hi,
Scenario...
I have a concurrent request set that is called as follows from a plsql script....
** Note : I removed the cursor definition for simplicity.
VARIABLE exit_status number
DECLARE
ln_request_id NUMBER := 0;
ln_user_id apps.fnd_user.user_id%TYPE;
ln_resp_id apps.fnd_responsibility.responsibility_id%TYPE;
ln_app_id apps.fnd_responsibility.application_id%TYPE;
ln_resource_id apps.jtf_rs_resources_vl.resource_id%TYPE;
ex_errors EXCEPTION;
lb_chk BOOLEAN;
BEGIN
:exit_status := 0;
OPEN cur_appsinit;
FETCH cur_appsinit
INTO ln_user_id,
-- ln_resource_id,
ln_resp_id,
ln_app_id;
CLOSE cur_appsinit;
fnd_global.apps_initialize(ln_user_id,
ln_resp_id,
ln_app_id);
lb_chk := fnd_submit.set_request_set('BPSI', 'FNDRSSU1890');
IF lb_chk = TRUE THEN
ln_request_id := fnd_submit.submit_set(NULL, FALSE);
IF ln_request_id = 0 THEN
:exit_status := 1;
fnd_file.put_line
(fnd_file.LOG,
TO_CHAR(SYSDATE, 'hh24:mi:ss')
|| ' : ERROR : There are Errors in the execution of the Request Set. Check the Logs of the respective Concurent Programs in the Request Set.');
END IF;
END IF;
EXCEPTION
WHEN ex_errors THEN
:exit_status := 1;
END;
EXIT :exit_status
This is script i am calling from another concurrent request.
The concurrent request set is attached to a request group RG1 which is attached to the Resp1.
The concurrent program which calls the above script is attached to request group RG2 and which is assigned to Resp2.
** Note - The apps initialize is also done to Resp1 (responsibility)
I did all the above from system administrator responsibility.
For execution of the above script... i changed my responsibility to Resp2 and tried to execute the concurrent program (which calls the script submitting the concurrent request set)....
The concurrent program is completing with Completed Status....but the concurrent request set is being submitted. And the reason being the the fnd_submit.set_request_set is returning false and so not going ahead.
To verfiy the above i checked the following query in toad....
SELECT rs.application_id,
rs.request_set_id,
allow_constraints_flag,
rs.print_together_flag,
rs.owner,
rs.printer,
rs.print_style,
cp.concurrent_program_name,
rs.user_request_set_name
FROM fnd_request_sets_vl rs,
fnd_application a,
fnd_concurrent_programs cp
WHERE rs.application_id = a.application_id
AND rs.request_set_name = 'FNDRSSUB1890'
AND a.application_short_name = UPPER('BPSI')
AND rs.start_date_active <= SYSDATE
AND NVL(rs.end_date_active, SYSDATE) >= SYSDATE
AND rs.concurrent_program_id = cp.concurrent_program_id(+)
AND rs.application_id = cp.application_id(+)
the above query is returning one row... it means the concurrent request set exists... but not able to execute it....
Any help is highly appreciated....
KiranHi,
Scenario...
I have a concurrent request set that is called as follows from a plsql script....
** Note : I removed the cursor definition for simplicity.
VARIABLE exit_status number
DECLARE
ln_request_id NUMBER := 0;
ln_user_id apps.fnd_user.user_id%TYPE;
ln_resp_id apps.fnd_responsibility.responsibility_id%TYPE;
ln_app_id apps.fnd_responsibility.application_id%TYPE;
ln_resource_id apps.jtf_rs_resources_vl.resource_id%TYPE;
ex_errors EXCEPTION;
lb_chk BOOLEAN;
BEGIN
:exit_status := 0;
OPEN cur_appsinit;
FETCH cur_appsinit
INTO ln_user_id,
-- ln_resource_id,
ln_resp_id,
ln_app_id;
CLOSE cur_appsinit;
fnd_global.apps_initialize(ln_user_id,
ln_resp_id,
ln_app_id);
lb_chk := fnd_submit.set_request_set('BPSI', 'FNDRSSU1890');
IF lb_chk = TRUE THEN
ln_request_id := fnd_submit.submit_set(NULL, FALSE);
IF ln_request_id = 0 THEN
:exit_status := 1;
fnd_file.put_line
(fnd_file.LOG,
TO_CHAR(SYSDATE, 'hh24:mi:ss')
|| ' : ERROR : There are Errors in the execution of the Request Set. Check the Logs of the respective Concurent Programs in the Request Set.');
END IF;
END IF;
EXCEPTION
WHEN ex_errors THEN
:exit_status := 1;
END;
EXIT :exit_status
This is script i am calling from another concurrent request.
The concurrent request set is attached to a request group RG1 which is attached to the Resp1.
The concurrent program which calls the above script is attached to request group RG2 and which is assigned to Resp2.
** Note - The apps initialize is also done to Resp1 (responsibility)
I did all the above from system administrator responsibility.
For execution of the above script... i changed my responsibility to Resp2 and tried to execute the concurrent program (which calls the script submitting the concurrent request set)....
The concurrent program is completing with Completed Status....but the concurrent request set is being submitted. And the reason being the the fnd_submit.set_request_set is returning false and so not going ahead.
To verfiy the above i checked the following query in toad....
SELECT rs.application_id,
rs.request_set_id,
allow_constraints_flag,
rs.print_together_flag,
rs.owner,
rs.printer,
rs.print_style,
cp.concurrent_program_name,
rs.user_request_set_name
FROM fnd_request_sets_vl rs,
fnd_application a,
fnd_concurrent_programs cp
WHERE rs.application_id = a.application_id
AND rs.request_set_name = 'FNDRSSUB1890'
AND a.application_short_name = UPPER('BPSI')
AND rs.start_date_active <= SYSDATE
AND NVL(rs.end_date_active, SYSDATE) >= SYSDATE
AND rs.concurrent_program_id = cp.concurrent_program_id(+)
AND rs.application_id = cp.application_id(+)
the above query is returning one row... it means the concurrent request set exists... but not able to execute it....
Any help is highly appreciated....
Kiran -
Calling a request set from a concurrent program
Hi,
I am trying to call a request set( say RS1) from a concurrent program ( say CP1). I have used fnd_submit.set_request_set and related APIs, and I am able to submit the request set. But the problem is that I have to either hard code the request set parameters in the concurrent program CP1( which I am currently doing), or define the parameters in the concurrent program CP1 and pass the parameters while calling the request set requests. The second method does not work because the request set has around 30 requests, and it is not possible to accept the parameters for all those requests from CP1.
What I would like to do is to define a parameter in CP1 which accepts the request set name( or short name), and then pop-up a window which shows the sub-requests in the request set so that I can enter the parameters of each request within the request set. ( something similar to $FLEX$)
Have anyone done such a thing? Does anyone know if it is possible?
Any suggestions are welcome!Hi,
Sharing parameters will not work because my request set has many requests and none of them have any common parameters. I am looking for a solution which will show me all the programs in the request set with the default values so that I can change the parameter values if required.
Thanks,
Sridhar -
Is it possible to Call ODI Scenario from eBS Concurrent request
Hi Experts
We have a concurrent request running on oracle eBS system. Is it possible to Invoke the ODI Scenario (on a different server) by submitting a concurrent request. Mostly the concurrent program will be a PL/SQL
Thanks in advance.hey,
yeah its possible..
Check this.
/people/vanita.thareja2/blog/2006/05/23/bpm-sending-message-asynchronously-and-getting-the-response-from-synchronous-system-using-abap-proxies
These replies too..
Proxy in BPM
BPM file to ABAP proxy
Thanks,
Vijaya.
Edited by: Vijaya Lakshmi Palla on Jun 4, 2008 5:32 AM -
How do I submit a concurrent request from HTML?
I want to call the request from html or jsp how to ?
can anybody help me?HI,
I have developed a pl/sql program and registered it as concurrent program and i can run this concurrent program using forms.
But our requirement is to run this report even in HTML based application in oracle apps
for eg in Quoting HTML Sales Agent.
But i don't know how to run the concurrent program or to run report registered as concurrent program in HTML Based apllication in oracle apps
please provide some inputs.
Regards,
Mithun -
How to submit a concurrent request from Discoverer report.
I would like to know If any one has tried submitting a concurrent request from Discoverer Report?_
This is no stupid question, but our team here finally decided with a solution to our long pending issues with few of the discoverer report. To Proceed further, we would like to know, how to submit a concurrent request from Discoverer report?
We are looking for calling a package from the Disco admin by passing the parameters from the disco to the 6i report.
All help us in this regards are much appreciated.
Kindly help us in the same!
Thanks
ArunThanks Rod for confirming the same.
I will be trying the same today and will let you know if I succeed in doing it.
If I can share the actual requirement with you, it goes like this.
"I will be triggering the Oracle 6i standard AP Trail balance report through the Disco report. The standard report will be inserting the required data to one of my custom table. Once the concurrent program completes normal, my custom table will be having the required data to create the workbook specific to the current run of the concurrent program.
The one problem which I think could happen is, How can I make my disco report to wait till the standard program to complete in normal so that my disco report can be generated with the data from custom table.
Will the above requirement is possible If I follow the way you mention in the PDF or Could you suggest a better way for achieving the same.
In short, my requirement is: The custom table(say XX_TABLE) will be populated with data when the standard 6i report is run and the disco admin will be making of the custom table (XX_TABLE) to generate the report.
Please advice.
Thanks
Arun -
Concurrent Request 를 처리하는 File과 Tables
제품 : AOL
작성날짜 : 2003-12-02
Concurrent Request 를 처리하는 File과 Tables
=================================================
PURPOSE
이 Note는 Concurrent Reqeust output & Log 의 저장위치와 DB내 저장되는
Object들에 대한 설명입니다. Purge Concurrent Request and Output을 실행할때 다음 table들의 해당 record들이 삭제됩니다.
Explanations
- FND_CONCURRENT_REQUESTS
This table contains a complete history of all concurrent requests and
stores information about all submitted jobs(requested directly or by a
report set) within applications.
There's one request_id for each requested job in this tables.
- FND_RUN_REQUESTS
When a user submits a report set, this table stores information about the
reports in the report set and the parameter values for each report.
Stores information about all request sets submittted within applications.
Columns parent_request_id and request_id reflect the job# for the
report-set and the jobs it calls to.
- FND_CONC_REQUEST_ARGUMENTS
This table records arguments passed by the concurrent manager to each program
it starts running.
FND_DUAL
This table records when requests do not update database tables.
FND_CONCURRENT_PROCESSES
This table records information about Oracle Applications and operating system
processes.
FND_CONC_STAT_LIST
This table collects runtime performance statistics for concurrent requests.
FND_CONC_STAT_SUMMARY
This table contains the concurrent program performance statistics generated by
the Purge Concurrent Request and/or Manager Data program.
The Purge Concurrent Request and/or Manager Data program uses the data in
FND_CONC_STAT_LIST to compute these statistics.
FND_CONC_PP_ACTIONS
Stores the post request processing actions(e.g., print, notify) for each
submitted request. There's a concurrent_request_id here for each request_id
in the FND_CONCURRENT_REQUESTS.
FND_RUN_REQ_PP_ACTIONS
Stores the post request processing actions(e.g., print, notify) for
submitted request set programs that are stored in FND_RUN_REQUESTS.
Reference Documents
Note 132823.1 -
Concurrent Request default Parameters from OAF page
Hi,
I calling a concurrent request from OAF page using the below command.
requestId = cr.submitRequest(applnName, cpName, "", "", false, cpParameters);
The display parameters are only 4 and the remaining parameters are having default values in the concurrent program definition. When I call the concurrent request with the above call, the values are not getting populated. Should I add them manually to cpParameters? Please let me know.
Thanks,
HPGood Job :)
Closed the thread and paste the resolution you that other can also refer to it.
Thanks
--Anil
http://oracleanil.blogspot.com -
What is the best way to submit a Concurrent Request over a DB Link?
Hi,
We have a requirement to submit a Concurrent Request over a DB Link. What is the best way to do this?
What I've done so far is I've created a function in the EBS instance that executes FND_GLOBAl.APPS_INITIALIZE and submits the Concurrent Request. I then call this function remotely from our NON-EBS database. It seems to work fine but I found out from metalink article id 466800.1 that this is not recommended.
Why are Concurrent Programs Calling FND_GLOBAL.APPS_INITIALIZE Using DBLinks Failing? [ID 466800.1]
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=11129815723825&type=DOCUMENT&id=466800.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=17dodl8lyp_108
Can anyone suggest a better approach?
Thanks,
AllenWhat I've done so far is I've created a function in the EBS instance that executes FND_GLOBAl.APPS_INITIALIZE and submits the Concurrent Request. I then call this function remotely from our NON-EBS database. It seems to work fine but I found out from metalink article id 466800.1 that this is not recommended.
Why are Concurrent Programs Calling FND_GLOBAL.APPS_INITIALIZE Using DBLinks Failing? [ID 466800.1]
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=11129815723825&type=DOCUMENT&id=466800.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=17dodl8lyp_108
Can anyone suggest a better approach?Please log a SR and ask Oracle support for any better (alternative) approach. You can mention in the SR that your approach works properly and ask what would be the implications of using it (even though it is not recommended).
Thanks,
Hussein -
How To Schedule a Concurrent Request on completion of a Spawned Request
As soon as the concurrent request submitted through Oracle Form(Consolidation Transfer)is completed we need to schedule another Concurrent Request which had to be kicked off automatically on completion of the First concurrent request. Since, the First concurrent request of Consolidation Transfer is a Spawned Program, the request set could not be created, to kick off the second concurrent program.
I would Appreciate if anyone can advise any solution to achieve this objective.Hi Harish,
Doesn't matter what you need to do all you need is the hook!
a) Nice. Force the request to print and use print driver to call CONCSUB to submit your new "child" request
-- Since the Consolidation Trasnfer concurrent request could only be submitted through Consolidation Trasnfer Form only, I am not sure how we can do Force Print for this request.
GR: Set printer and style on concurrent program definition. Set profile option "Concurrent:Report Copies" to 1 (even by Forms Personalization if you want to). Sorted. Still think this is the best option.
c) Abstraction. Replace the C executable with a shell script that takes arguments and calls the C program and then submits new "child" request via CONCSUB
-- Appreciate, if you can elaborate this option. I think we can try this, with the help of your detailed input.
GR: Change the executable on the concurrent program to a host shell script under your mods application. Initially just get the shell script to capture program call and arguments. Run the program to get arguments. Next iteration, change shell script to call the C program from your shell script with correct arguments. Verify okay. Next iteration do the same plus call CONCSUB to submit request / set.
d) Nasty. Trigger on fnd_concurrent_requests to call new "child" request via fnd_request.submit_request - NB: very unsupported! Make sure trigger doesn't raise an exception.
-- On completion of the Consolidation Transfer concurrent request, we tried to submit the request set using the Trigger on Consolidation History table and/or fnd_concurrent_requests table. But it is entering into infinite loop.
GR: Need to use trigger condition to capture update of status_code to C (Completed) and other codes e.g. Warning. Personally I'd avoid this option because you have others! Although once I did use this method when I wanted absolute transparency :-)
Update: Changed "Print: Copies" to "Concurrent:Report Copies"
Regards,
Gareth
Edited by: gareth.roberts on Dec 8, 2008 4:55 PM -
How to submit a Concurrent Request Set from OAF
All,
I understand we can submit a concurrent program from OAF using
oracle.apps.fnd.cp.request.ConcurrentRequest.submitRequest( String pApplication,
String pProgram,
String pDescription,
String pStartTime,
boolean pSubRequest,
Vector pArgArray) method,
But the class ConcurrentRequest don't have any method to submit a concurrent request set. The workaround is directly call the pl/sql package FND_SUBMIT.submit_program.
Is there any other oracle.apps.fnd.cp.request.* class have method to call a concurrent request set?
Thanks.
With Regards,
Kali.
OSSI.Sorry for my typo.....! I meant use the pl/sql way, there is no standard solution for this in OAF.
didn't get what you mean by,
You mean i need to use FND_SUBMIT.submit_program? or you want me to check in OAF itself?
>>Kali, You can use [b]fnd_submit.submit_set , this is explained "Application Developer User Guide"!
Even i tried to use that PL/SQL FND_SUBMIT.submit_program, that is returning BOOLEAN so i am facing the problem which you have discussed in the forum
>>Use the work around i suggested in the thread u mentioned in ur reply.
--Mukul -
How to submit a concurrent request from a button in Selfservice
Hi,
I hope this is the forum where to start.
I want to submit a concurrent request when a button is pushed in selfservice.
I've implementend the event for button in java and its woring fine, but how to submit a conurrent request in java?
Can anyone help me or tell me if this is not the correct forum?
Thank you!
Best regards
Gjermund Lunder
Developer/DBAhi,
This question suppose to be in framework forum.
you can try:
OA Framework provides the ConcurrentRequest class to call the concurrent program from the page. The submitRequest() method in the ConcurrentRequest class takes 6 parameters and returns request id of the submitted concurrent request:
public int submitRequest(
String ProgramApplication ,
String ProgramName ,
String ProgramDescription ,
String StartTime,
boolean SubRequest,
Vector Parameters ) throws RequestSubmissionException
ProgramApplication -Application Short name of application under which the program is registered.
ProgramName - Concurrent Program Name for which the request has to be submitted
ProgramDescription - Concurrent Program Description
StartTime - Time at which the request has to start running.
SubRequest - Set to TRUE if the request is submitted from another running request and has to be treated as a sub request.
Parameters - Parameters of the concurrent Request
Here is the example for calling a concurrent program from a OA framework page.
import oracle.apps.fnd.cp.request.ConcurrentRequest;
import oracle.apps.fnd.framework.server.OADBTransaction;
public int submitCPRequest(Number headerId) {
try {
OADBTransaction tx = (OADBTransaction)getDBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName = "PO"; //Application that contains the concurrent program
String cpName = "POXXXX"; //Concurrent program name
String cpDesc = "Concurrent Program Description"; // concurrent Program description
// Pass the Arguments using vector
// Here i have added my parameter headerId to the vector and passed the vector to the concurrent program
Vector cpArgs = new Vector();
cpArgs.addElement(headerId.stringValue());
// Calling the Concurrent Program
int requestId = cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
tx.commit();
return requestId;
} catch (RequestSubmissionException e) {
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
I got it from http://prasanna-adf.blogspot.com/2008/11/call-concurrent-program-from-oa.html
Maybe you are looking for
-
When I connect my ipod nano to my laptop it shows the icons on it and in the upper right hand corner it has a charging symbol on the battery symbol but my ipod still doesn't appear in my computer or itunes ... is there anything i can do to fix it ...
-
How do I open a folder marked exec?
I am not very good at computer skills, being self taught, and a senior citizen. I created lists of family dates etc. in Pages. Now on cover flow several of these are grey with exec in the top right hand corner. I have tried to open these without suc
-
I can view files I don't have permission to view!
OK so here is the setup: Mac Mini Server with a Drobo connected. 4 folders on the root of the Drobo all shared. Permissions on 3 of the folders are set to me as owner and everyone else as no access. the 4th folder is set up as me as owner and group a
-
DisplayLin​k Fails After System Restore
I recently posted that my WIFI failed and after much frustration did a system recovery via the hidden partion. WIFI is all good now, yeah! But, my Kensington Displaylink (K33926US) fails to function, although it did previously. Kensington support h
-
Question on getting win mails instead of PDF
We have two indentiacl imacs one ofr my wife one for me. Someone can send the same email to us with PDFs and on my computer the PDFs show up as winmails. When I googled this problem most solutions seemed to be on the senders end. But since on eof ou