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 PM
Hi,
either you use fnd_request or concsub
skip the parameter start time to submit the request immediately
Regards,
Haafiz
Similar Messages
-
How to know the status of concurrent program from back-end in oracle apps
Hi,
Can you please explain me step by step how to know the status of the concurrent program from back end in oracle apps.
Thanks,
RajWhen a record is being updated by a form, if you create a Pre-Update trigger on the block, the trigger will run for each record being updated.
Same thing happens with a Pre-Insert and Pre-Delete trigger. -
Issue when submitting XML report from back end.
Hi All,
I have a customized XXPrinted Purchase Order Report where I am submitting it from back end as below.
l_var := fnd_request.add_layout (template_appl_name =>'XX Custom',
template_code =>'XX_PRINTED_PO',
template_language =>'English',
template_territory =>null,
output_format =>'PDF');
l_request_id :=fnd_request.submit_request
(application => 'XX',
program => 'XX_PRINTED_PO',
When I am executing this block in PO approval workflow with the customized function XXPO_COMMUNICATION_PVT.fax_po
It is submitting the report but output is showing in xml data (not in pdf)
Please let me know if I am missing anything.
Thanks in advance.Please post the details of the application release, database version and OS.
Can you post the concurrent request log file here?
Can you find any errors in the OPP log file ($APPLCSF/$APPLLOG/FNDOPP*)?
How to Use FND_REQUEST.ADD_LAYOUT When Submitting a Concurrent Request Via a PL/SQL Procedure [ID 308658.1]
Thanks,
Hussein -
How to terminate all Concurrent Programs from back end
Hi,
Can any one tell me how to terminate all Running Concurrent Programs from back endpost this in the EB forum;
also, investigate the built-in package fnd_concuurent
begin
for r in (select Request_ID from fnd_Concurrent_Requests
where Phase_Code != 'C') loop -- exclude requests that have successfully completed (R = Running P = Pending)
fnd_concurrent.cancel_request(r.Request_ID);
commit; -- you must perform a commit after each call
end loop;
end;
/ -
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 -
Calling a concurrent program from back end in Apps
How to call a Java stored procedure from back end? Can it be called using FND_REQUEST.SUBMIT_REQUEST?
Yes - as long as it is defined as a concurrent executable and program, FND_REQUEST.SUBMIT_REQUEST can be used.
MOS Doc 221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
HTH
Srini -
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 -
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 can i schedule concurrent program for every one hour from back end
Hi ,
I want to schedule concurrent program for every one hour from back end .
Example
1) xyz is the concurrent program that should run for every one hour with a parameter 111 and the SAME concurrent program that
should run every 2 hours with a different parameter like 222.
I mean Conc prog should run for different parametrs with a different scheduling..
Please guide me to solve the issue.
Thanks in advance...
Regards
Narender BHi ,
I have used following code for scheduling the concurrent program from backend.
declare
l_request_id NUMBER;
l_return_code boolean := FALSE;
BEGIN
fnd_global.apps_initialize(62991,54477,20003);
l_return_code := FND_REQUEST.SET_OPTIONS ('YES');
l_return_code :=fnd_request.set_repeat_options('16:36:00','','DAYS','START','','Y');
l_request_id:=fnd_request.submit_request(application => 'xbol',
program => 'NAPP_START_GENERATE_CHART_DATA',
description => 'Processing chart ',
start_time => SYSDATE,
sub_request => FALSE,
argument1 =>4000130957231588,
argument2 => null
COMMIT;
dbms_output.put_line('Program has been submited and request id is '||l_request_id);
END;
Here the issue was concurrent program is completing with a warning like
Resubmission of request 75588551 has been cancelled.
FND_RESUB_PRIVATE.PROCESS_INCREMENT EXCEPTION: ORA-01403: no data found
Resubmission of request 75588551 has been cancelled.
FND_RESUB_PRIVATE.PROCESS_INCREMENT EXCEPTION: ORA-01403: no data found
so i could not find the solution for this issue,please anybody guide me to solve this issue.
Regards
Narender B -
XML Layout to be attached to a SRS Report called from back end.
Hi,
I have got a set of reports which I will have to call from the back end using FND_REQUEST.SUBMIT_REQUEST packaged function.
In that, some are having a XML layout. When being submitted these requests do not get the XML layout called; hence, the display fails with error 'Unable to find published output for this request'.
Kindly help me on how to refer the XML layout during the calling of the backend function.
Thanks,
L. MukunthanHi,
Sorry for the delay.
Answers to your Q's as below:
1. how is your concurrent report defined ? is the concurrent program output format XML ?
YES
2. In the report itself (rdf), under report properties - XML setting section, is the XML Prolog value set ?
XML Prolog value set: <?xml version="1.0"?>
3. Have you validated that the report query(ies) is(are) working in SQL*PLS/Toad/SQL Developer ?
This is a report registered and working fine, when run manually. Only submission from back end omits the layout. Hence, being unable to publish the output.
4. If the report query is working and everything is correctly setup, have you look on the server if XML is generated ?
Yes. Output is getting generated. Only issue is the attachment of the layout template.
Please advise.
Thanks,
L. Mukunthan -
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 -
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 -
File download from back end syetem to the user system
Hi,
This is very urgent requirement for me, can anybody help me regarding this:
I have back end on one system and the front end on a different system. The use has login from third system.
There is file on the back end system. User want to download that file using FTP to the local system. The Ftp download class is available at the back end system. Can anybody help me in sending the request from JSP to the back end to download the file from back end to the user's local system. FYI, I have to use core JSP/Servlet - support jre 1.4.2
Thanks and Regards,
brajhi,
i tested this for you and the following code works fine. tested it on my 10.1.2 instance.
declare
l_new_item_master_id number;
l_caid number := 33;
l_folder_id number := 34373;
begin
portal.wwctx_api.SET_CONTEXT('portal','manager1','');
portal.wwctx_api.set_nls_language(P_NLS_LANGUAGE => 'e');
l_new_item_master_id := wwsbr_api.add_item(
p_caid => l_caid,
p_folder_id => l_folder_id,
p_display_name => 'portal.doc',
p_type_id => wwsbr_api.ITEM_TYPE_FILE,
p_type_caid => wwsbr_api.SHARED_OBJECTS,
p_description => 'This is the text of the review.',
p_file_filename => '/home/oracle/test/portal.doc');
wwpro_api_invalidation.execute_cache_invalidation;
end;
regards,
christian -
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 -
Refresh table and display the records after insertion of data from back end
Hi Experts,
JDEV 11.1.2.1
I have a useacase which needs data to be inserted from oracle back end procedure and displayed in a ADF Table Component, when a button is pressed.
is this possible?..if yes , how?
Is view object will automatically refreshed and fetches newly created(from back end) rows?
thankz in advance
PMSHi user707,
thankz for ur reply....
i think after executing a procedure you want to call commit operation. better you can perform this.getDbtransaction().commit In Application Module;yes i want to commit transaction after executing back end procedure using preparedStatement.Procedure is for inserting data into same table , which used for creating VO and Read only ADF Table.Procedure is executed fine, but newly created records are not getting into ADF table.Once i did commit opeartion inside back end procedure, whole records are getting into ADF Table.
Is there any way to get whole records without doing Commit operation inside Back end procedure?
PMS
Maybe you are looking for
-
Receiving duplicate messages on iPhones and an iPad, all with different tele#'s but under same Apple ID# ever since upgrade to 7.0.4. Went under SETTINGS>MESSAGES>SEND & RECEIVE and unchecked all but that particular iPhone tele# and Email address.
-
How to install itune under Windows XP 64-bit professional with SP2?
I have iPhone 3GS for over a year and I have set it up at my work computer (Windows XP professional) with latest iTune and it work great. Recently our IT has upgraded our system and all of our new machines has Windows XP 64-bit OS. I can't figure out
-
Namespace in XML Payload for HTTP Sender
Hello, I have just configured my snychronous HTTP <--> RFC Scenario. When I want to test it with some XML payload in the HTTP testing tool I get a mapping runtime exception. After some investigation using the test tab in the message mapping I realize
-
Problem with auditioning samples in Ultrabeat?
Im having some trouble with auditioning drum hits in Ultrabeat. When I go to listen a sample, the sample plays but all i can hear is a high pitched squeak instead of the drum hit I want to audition. Can anyone explain this?
-
How to make a simple sound component
Hi I'm creating component that takes this parameter: - Source: (the linkage name of the sound file imported into the library) Of Type String, and the variable name is V_Source. (the value is S1(Linkage name of the Sound)). - Button: (the button name