Submitting concurrent request through oa framework page
want to submit a concurrent request through oa framework page and i wrote this code in controller
try
OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
OADBTransaction transaction = am.getOADBTransaction();
Connection conn = transaction.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(conn);
cr.setDeferred();
Vector param = new Vector();
param.add("21092008");
int reqId = cr.submitRequest("XXC", "XXC_DATE_VALIDATION_TEST_1", "XXC DATE VALIDATION TEST 1", null, false, param);
transaction.commit();
System.out.println("Request ID >>> "+reqId);
String id = "" + reqId + "";
HashMap parameters = new HashMap();
String url = "OA.jsp?akRegionCode=FNDCPREQUESTVIEWREGION&akRegionApplicationId=0";
//parameters.put("akRegionApplicationId", "0");
// parameters.put("akRegionCode", "FNDCPREQUESTVIEWPAGE");
//parameters.put("akRegionCode", "FNDCPPROGRAMPAGE");
parameters.put("requestMode", "DEFERRED");
parameters.put("requestId", id);
pageContext.setForwardURL(url,
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
parameters,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
catch (SetDeferredException e)
throw new OAException("Munish SetDeferredException " + e.getMessage(),OAException.ERROR);
catch (RequestSubmissionException e)
throw new OAException("Munish RequestSubmissionException " + e.getMessage(),OAException.ERROR);
catch (Exception e)
throw new OAException("Munish Exception " + e.getMessage(),OAException.ERROR);
but i dont know whether it is submitted or not
when i find my request using request id through e bussiness suite i can see ant thing regarding this id
and i m getting this error
java.lang.NullPointerException
at oracle.apps.fnd.cp.viewreq.webui.ViewRequestsPageCO.processRequest(ViewRequestsPageCO.java:213)
could anyone help me please
Thanks
Check the "Adding Request Monitoring to Your Product" section from dev guide.
--Shiv
Similar Messages
-
Submitting Concurrent Request from Standard OAF Page
Hi,
I'm a new comer to both Java and OA Framework.. I'm working in oracle apps from a long time but my experience is with forms and reports based world so excuse me if i'm asking a dumb question.. My requirement is to add a button to a standard page.. When the button is pressed, i should kick off a concurrent request and after that re-direct to the view output page to view the output..
I added the button to the screen via personalization.. I want to extend the controller of that page and execute the submitRequest.. I'm getting this error which i'm not able to figure it out.. I will appreciate if you can let me know what is the cause..
Thanks for your help!!
Shree
=======================================================
"Error(73,27): method submitRequest(java.lang.String, java.lang.String, java.lang.String, null, boolean, com.sun.java.util.collections.Vector) not found in class oracle.apps.fnd.cp.request.ConcurrentRequest"
========================================================
Here is my code
=======================================================
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.cp.request.ConcurrentRequest;
import oracle.apps.fnd.cp.request.RequestSubmissionException;
import oracle.apps.fnd.cp.request.SetDeferredRequestException;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import com.sun.java.util.collections.HashMap;
import com.sun.java.util.collections.Vector;
import oracle.apps.fnd.cp.request.SetDeferredException;
import java.sql.Connection;
import oracle.apps.fnd.framework.OAException;
if (pageContext.getParameter("Report") != null)
try
OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
OADBTransaction transaction = am.getOADBTransaction();
Connection conn = transaction.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(conn);
cr.setDeferred();
Vector param = new Vector();
int reqId = cr.submitRequest("XXXAP", "XXAPTRLB", "AP Trial Balance",null, true, param);
transaction.commit();
System.out.println("Request ID >>>"+reqId);
HashMap parameters = new HashMap();
String url = "OA.jsp";
parameters.put("akRegionApplicationId", "0");
parameters.put("akRegionCode", "FNDCPREQUESTVIEWPAGE");
String id = "" + reqId + "";
parameters.put("requestMode", "DEFERRED");
parameters.put("requestId", id);
pageContext.setForwardURL(url,
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
parameters,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
catch (SetDeferredException e)
throw new OAException("Set Deferred=" + e.getMessage(),OAException.ERROR);
========================================================Updated the original thread Re: Submitting Concurrent Request
--Shiv -
Hi,
I'm a new comer to both Java and OA Framework.. I'm working in oracle apps from a long time but my experiance is with forms and reports based world so excuse me if i'm asking a dumb question.. My requirement is to add a button to a standard page.. When the button is pressed, i should kick off a concurrent request and after that re-direct to the view output page to view the output..
I added the button to the screen via personalization.. I want to extend the controller of that page and execute the submitRequest.. I'm getting this error which i'm not able to figure it out.. I will appreciate if you can let me know what is the cause..
Thanks for your help!!
Shree
=======================================================
"Error(73,27): method submitRequest(java.lang.String, java.lang.String, java.lang.String, null, boolean, com.sun.java.util.collections.Vector) not found in class oracle.apps.fnd.cp.request.ConcurrentRequest"
========================================================
Here is my code
=======================================================
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.cp.request.ConcurrentRequest;
import oracle.apps.fnd.cp.request.RequestSubmissionException;
import oracle.apps.fnd.cp.request.SetDeferredRequestException;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import com.sun.java.util.collections.HashMap;
import com.sun.java.util.collections.Vector;
import oracle.apps.fnd.cp.request.SetDeferredException;
import java.sql.Connection;
import oracle.apps.fnd.framework.OAException;
if (pageContext.getParameter("Report") != null)
try
OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
OADBTransaction transaction = am.getOADBTransaction();
Connection conn = transaction.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(conn);
cr.setDeferred();
Vector param = new Vector();
int reqId = cr.submitRequest("XXXAP", "XXAPTRLB", "AP Trial Balance",null, true, param);
transaction.commit();
System.out.println("Request ID >>>"+reqId);
HashMap parameters = new HashMap();
String url = "OA.jsp";
parameters.put("akRegionApplicationId", "0");
parameters.put("akRegionCode", "FNDCPREQUESTVIEWPAGE");
String id = "" + reqId + "";
parameters.put("requestMode", "DEFERRED");
parameters.put("requestId", id);
pageContext.setForwardURL(url,
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
parameters,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
catch (SetDeferredException e)
throw new OAException("Set Deferred=" + e.getMessage(),OAException.ERROR);
========================================================Shree,
Don't put duplicate threads. Lets follow it on other Submitting Concurrent Request from Standard OAF Page
--Shiv -
How to find which user submitted concurrent request
Dear all,
How to find out which user has submitted concurrent request with concurrent id. There is once column called requested by in fnd concurrent requests table, is it the user id who submitted that request ?
Regards,
CharanHow to find out which user has submitted concurrent request with concurrent id. https://forums.oracle.com/forums/search.jspa?threadID=&q=fnd_concurrent_requests+AND+fnd_user&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
There is once column called requested by in fnd concurrent requests table, is it the user id who submitted that request ?Yes.
http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_REQUESTS&c_owner=APPLSYS&c_type=TABLE
http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_USER&c_owner=APPLSYS&c_type=TABLE
Thanks,
Hussein -
How do I submit an Oracle concurrent request from inside a page within Apex
Hi all,
Have an app that basically loads an interface table.I want to call a concurrent job from the page within my apex app that will submit the concurrent job in Oracle when I press the submit button. The only parameter is group id and typically end user enters 101010.
I am unsure of the syntax.....
the dba gave me this as an example but I believe its incomplete and not sure how to complete it or call it. I tried just creating a process to execute after submit but it errors out as in_user_id, in_resp_id and in_appl_id must be declared. Logic tells me I have to provide those somehow but I dont see how it fits into the submit request function.....
BEGIN
fnd_global.apps_initialize (in_user_id, in_resp_id, in_appl_id);
x_request_id := fnd_request.submit_request ('XXBG'
,'XXBGBURSTPAY'
,NULL
,NULL
,FALSE
,in_outfile
,'XXBG_TOP'
,'xxbg_pydepadv_ctl.xml'
COMMIT;
Edited by: DSULLIVAN on Apr 13, 2010 10:33 AMThis is really not an APEX issue, but a fundamental EBS one.
You need to find out which respsonsibility and request group your concurrent program is in, and the user who is submitting the request. You can look in FND_USER for the USER_ID, FND_APPLICATION for teh RESP_APPL_ID and FND_RESPONSIBILITY for the RESP_ID. This call sets up the global security context, so if you are calling it from outside of an authenticated EBS session, it doesn't know who you are.
Then you just call those - you can store them as application variables or jsut hardcode them.
So here is a sample call:
begin
fnd_global.apps_initialize(1, 50000, 275);
end;So just hardcode it for now - later you can get fancier. -
Error while submitting concurrent request
Hi All,
I am getting error while submitting this concurrent request (To handle deliver, RTR, RTV transactions)
Error : app-fnd-00874: Routine FDFBDF found no rows in table FND_DESCRIPTIVE_FLEXS. Please contact your system administrator or support
representative
what is this error and how can i slove this problem?
Thanks
V.ArumugamHi,
We had same problem in GL while upgradation.
Some flexfields were missing in the fnd descriptive flexfield.
We could resolve later with help of metalink.
Plz refer metalink note : Note:363117.1 and Note:290411.1
Rgds,
Arumugam S. -
Submitting concurrent request from back end.
Hi guys,
I am submitting the concurrent request using fnd_request.submit_request ,passing start time as Sysdate.
When i submit the program in scheduling section of concurrent program,the Requested start date defaults to current date but hours and minutes are 00:00:00.Can we make it to run AS soon as Possible?
Thanks
Edited by: 954506 on May 27, 2013 10:02 PMHi,
either you use fnd_request or concsub
skip the parameter start time to submit the request immediately
Regards,
Haafiz -
Error in submitting concurrent request
Hi All,
I am getting error while submitting this concurrent request (To handle deliver, RTR, RTV transactions)
Error : app-fnd-00874: Routine FDFBDF found no rows in table FND_DESCRIPTIVE_FLEXS. Please contact your system administrator or support
representative
what is this error and how can i slove this problem?
Thanks
V.Arundid you check note
APP-FND-00874 FDFBDF Found No Rows In FND_DESCRIPTIVE_FLEXS
Note:342918.1
fadi -
STRANGE Issue in submitting Concurrent Request - 11.5.10.2
Hello Gurus,
I am facing a weird issue in submitting an Oracle EBS report(.rdf file).
Below is the problem description.
[1] - When I submit the report, it goes into running mode.
[2] - It stays in running mode forever.
[3] - When we run the same report in non Production environments, report complete instantly.
[4] - Even the same report runs perfectly well from report designer.
[5] - All tuning considerations are well cleared. The same report is fetching data instantly everywhere in prod.
[6] - The STRANGE thing that we have noticed that, when we submit the concurrent request, the ORACLE_PROCESS_ID in FND_CONCURRENT_REQUEST does not get populated. It is NULL. For all other request, there is process ID.
[7] - We even recreated Concurred program but still no luck.
[8] - Bounced Database, Middle Tier but still no luck.
[9] - Redefined a new conc mgr but still no luck.I believe #6 from above is a critical lead towards the problem. Having run out of all options, I am posting it here on the forum. All Tuning aspects are well taken care. It is rock solid and tuned to death. Without taking care of Tuning, I would not have posted this.
Thanks,
R
Edited by: Rich V on Jul 21, 2010 12:20 PMHussein,
You must be a one man show here :) 34,295 POSTS!!!!!!!!!! WOOOOOOOOOW.
Anyways, The link you have given, finally concludes with following
Hi All,
Got solution for this problem
I have raised SR for this
SR Analyst also told the same as (MCHARCHU)
I have added SRW.USER_EXIT('FND SRWINIT'); in before report trigger
and SRW.USER_EXIT('FND SRWEXIT'); in after report trigger
and also a parameter P_CONC_REQUEST_ID in User PARAMETERS
Thanks to all of you guys......
Thanks,
Bhanu Chander.In my report, All of above settings are already covered but still the issue is persistent.
Thanks,
R -
Submitting Concurrent request from PL/SQL
Hi
I am currently attempting to submit a concurrent program from a pl/sql block that itself is being run as a concurrent program. However the call to submit_request would only returned zero.
I inserted a call to FND_GLOBAL.INITIALIZE as suggested on another forum and am now getting .. ORA-00942: table or view does not exist has been detected in FND_GLOBAL.INITIALIZE.
Surely if a table or view did not exist the package fnd_global would not compile (it does compile)
Any suggestions in terms of
Do i need a call to fnd_global.initialize
Without it would to submit_request return zero
..etc
The parent conc prog code is as follows:
v_action := 'run file download stage'||utl_tcp.crlf;
-- Write to concurrent log.
apps.fnd_file.put_line(apps.fnd_file.log,'v_action: '||v_action);
apps.fnd_profile.get('USER_ID', v_user_id);
apps.fnd_profile.get('RESP_ID', v_resp_id);
apps.fnd_profile.get('RESP_APPL_ID', v_resp_appl_id);
apps.fnd_file.put_line(apps.fnd_file.log, v_user_id);
apps.fnd_file.put_line(apps.fnd_file.log, v_resp_id);
apps.fnd_file.put_line(apps.fnd_file.log, v_resp_appl_id);
apps.fnd_global.apps_initialize(v_user_id,v_resp_id,v_resp_appl_id);
v_req_id := apps.fnd_request.submit_request
(application => 'GPMS_CUST',
program => 'GPMS_EXCH_RATES',
description => 'GPMS Exchange Rate Download - FTP stage',
start_time => NULL,
sub_request => FALSE
COMMIT;
apps.fnd_file.put_line(apps.fnd_file.log,'apps.fnd_message.GET: '||apps.fnd_message.GET);
apps.fnd_file.put_line(apps.fnd_file.log,'0.5 v_req_id: '||v_req_id);
IF v_req_id != 0
THEN
apps.fnd_file.put_line(apps.fnd_file.log,'1.0 '||v_req_id);
IF apps.fnd_concurrent.wait_for_request
(request_id => v_req_id,
interval => v_interval,
phase => v_req_phase,
status => v_req_status,
dev_phase => v_req_dev_phase,
dev_status => v_req_dev_status,
message => v_req_message)
THEN
apps.fnd_file.put_line(apps.fnd_file.log,'1.1: '||v_req_dev_phase||' '||v_req_dev_status );
IF v_req_dev_phase !='COMPLETE' OR v_req_dev_status != 'NORMAL'
THEN
apps.fnd_file.put_line(apps.fnd_file.log,'1.3');
RETCODE :=2;
errbuf := 'errbuf contents here***';
ELSE
RETCODE := 0;
END IF;
END IF;
else
apps.fnd_file.put_line(apps.fnd_file.log,'1.4: sqlerrm:'|| sqlerrm);
END IF;
However as mentioned this returns the following in the concurrent log..
**Ends**28-DEC-2006 16:24:49
Start of log messages from FND_FILE
v_action: run file download stage
11170
20420
1
exception: ORA-20001: Oracle error -942: ORA-00942: table or view does not exist has been detected in FND_GLOBAL.INITIALIZE.
End of log messages from FND_FILE
Thanks for any Help
willOk
Done some more reading and looks like i may not need the call to
fnd_global.apps_initialize
as i am running this from an apps session using a parent concurrent prog.
I have commented the above call out, however get the following in the concurrent log..
Start of log messages from FND_FILE
v_action: run file download stage
11170
20420
1
apps.fnd_message.GET: ORACLE error -2289 in SUBMIT: others
Cause: SUBMIT: others failed due to ORA-02289: sequence does not exist.
The SQL statement being executed at the time of the error was: &SQLSTMT and was executed from the file &ERRFILE.
0.5 v_req_id: 0
1.4: sqlerrm:ORA-0000: normal, successful completion
End of log messages from FND_FILE
There seems to be a missing sequence being called from fnd_request.submit, however if this was the case the package would not compile.. correct?
Any help would be appreciated..
Will -
ORA-01555 with ORA-02063 when submitted Concurrent Requests
Hello,
My development team has reported some CM Requests got failed with some errors.When i checked the request log file i saw :java.sql.SQLException: ORA-01555: snapshot too old: rollback segment number with name "" too small ORA-02063: preceding line from EIHFDM .Could you please help me out this to solve this issue.
We are on Oracle Database 10g Release 10.2.0.5.0 - 64bit
Application 11.5.10
I have checked the UNDO Parameter values
ACTUAL UNDO SIZE (MEGS) UNDO RETENTION (Secs) OPTIMAL UNDO RETENTION (Secs)
304849 40000 4860
Thanks,
Prabhat.Hi Asif,
This is a customized program.
I have checked the UNDO Parameter values
SQL> show parameter undo
NAME TYPE VALUE
_in_memory_undo boolean TRUE
_undo_debug_usage integer 2
undo_management string AUTO
undo_retention integer 40000
undo_tablespace string APPS_UNDOTS
SQL>
ACTUAL UNDO SIZE (MEGS) UNDO RETENTION (Secs) OPTIMAL UNDO RETENTION (Secs)
304849 40000 4860 -
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 -
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 -
How to Submit a Concurrent Request Set Using a Self-Service Page
Hi all,
I would like to know how to Run/Submit a Concurrent Request Set Using a Self-Service Page
Thanks.
BenchHi all,
I would like to know how to Run/Submit a Concurrent Request Set Using a Self-Service Page
Thanks.
Bench -
Submitting XML Publisher Concurrent Program through PL/SQL
Hi,
I am trying to submit a XML Publisher concurrent program through PL/SQL API fnd_request.submit_request.
The request gets fired and completes successfully but it doesn't pick up the default template attached to it. Its output is plain XML but expected output is PDF report.
However when I submit this report from SRS, it picks up the default template and gives output in PDF.
Please let me know what could be going wrong?
Regards,
NitinCheck out the FND_REQUEST.ADD_LAYOUT API. You need to call it before you submit your report.
Cheers,
Dave
Maybe you are looking for
-
Text messages stored as numbers instead of names
I just got the new 4s iPhone. When I text with people with the new 4s iPhone (through iMessage), the phone shows their number in the text message area, instead of their name, even though they are stored in my contacts. I tried adding the iPhone num
-
File Content Conversion File-File scenario
Dear experts, I have been tweaking with file to file scenario where a simple file goes in source as text delimited and comes out in target as xml. I know ,i finally get my scenario get working with these settings : ROOT.fieldSeparator , ROOT.fieldNam
-
Can't register APP together with MacbookAir
I bought the APP for Macbook Air and about to register it together with Thunderbolt Display which I bought the same time with Macbook Air. I can't pass the verification step of entering serial number for Thunderbolt Display. It keeps telling me that
-
Asha 501 - Something went wrong
My nokia asha 501 warns '' something went wrong '' when i start games, this started after updating it to 14.0.4 software, help plz Moderator's note: We have provided a subject-related title to help other forum users easily view and respond to this po
-
Leopard 10.5.2 hard crashes - getting nervous
I've had 3 hard crashes today after installing 10.5.2. Two were tonight. One of those was with about 6 other apps up and the machine being used most the day (MacBook Pro 17, 2.33GHz Intel Core 2 Duo, 2GB RAM, 10.5.2 with ALL updates). The other was s