I want to submit a concurrent program from pl/sql. Please help me.
Dear all,
I want to submit a concurrent program from pl/sql. But I failed. Please help me.
Detail:
I create a concurrent program in 'Cash Management, Vision Operations (USA)' responsibility. <strong>And it be submitted success in EBS</strong>.
Then
I create a test script in pl/sql. And use 'FND_GLOBAL.APPS_INITIALIZE' to initialize ebs, then use 'FND_REQUEST.SUBMIT_REQUEST' to submit
the consurrent program, But the procedure aways return <strong>0</strong>.
I cannot found the reason. Please help me.Thanks.
<em>Attached informations may describe the problem:
1.The concurrenct submitted success in EBS.</em>
request_id = 4750655 (Sorry, I dont know how to add pictures.)
<em>2.The initialize informations which from SQL</em>.
SELECT FCR.REQUESTED_BY USER_ID
,FCR.RESPONSIBILITY_ID
,FCR.RESPONSIBILITY_APPLICATION_ID
,FA.APPLICATION_SHORT_NAME
,FCP.CONCURRENT_PROGRAM_NAME
FROM FND_CONCURRENT_REQUESTS FCR
,FND_APPLICATION FA
,FND_CONCURRENT_PROGRAMS FCP
WHERE FCR.PROGRAM_APPLICATION_ID = FA.APPLICATION_ID
AND FCR.CONCURRENT_PROGRAM_ID = FCP.CONCURRENT_PROGRAM_ID
AND FCR.REQUEST_ID = 4750655;
Result: user_id = 1318;
responsibility_id = 50579;
application_id = 260;
application_short_name = 'CE';
program_short_name = 'CALLK009';
<em>3.The test script code.</em>
<p>
-- Created on 2008/10/22 by ERIC
declare
-- Local variables here
Wv_conc_req_id VARCHAR2(10) DEFAULT NULL;
BEGIN
FND_GLOBAL.APPS_INITIALIZE(
1318
,50579
,260
Wv_conc_req_id := FND_REQUEST.SUBMIT_REQUEST(
'CE'
,'CALLK009'
,NULL
,SYSDATE
,FALSE
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
, CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
DBMS_OUTPUT.PUT_LINE(Wv_conc_req_id);
COMMIT;
end;
<em>4.The concurrent program code.</em>
create or replace package body CALLTEST is
PROCEDURE T1(PvO_errbuf OUT VARCHAR2
,PvO_retcode OUT VARCHAR2)
IS
BEGIN
FND_FILE.PUT_LINE(fnd_file.log, 'TEST');
END;
end CALLTEST;
</p>
Can you check from which schema you are executing FND_REQUEST? You can try as follows;
Connect to your required schema, create a synonym on apps.fnd_request, connect from apps and finally execute grant all on apps.fnd_request to all.
You can check for relevance from Doc ID: Note:147495.1
Please do keep in the mind the soultion above should be applied to a test/dev EBS instance first.
I hope this would be of help.
Saad
Similar Messages
-
How to submit a concurrent program from a custom form.
I'm use Forms [32 Bit] Version 6.0.8.26.0 (Production) and Oracle Applications : 11.5.10.2.
I need execute a concurrent program from a custom form.
In the custom form I have a button and when that button is clicked I want to submit this cocurrent program. I am using the below code.
fnd_profile.get('USER_ID', v_user_id);
fnd_profile.get('RESP_ID', v_resp_id);
fnd_profile.get('RESP_APPL_ID', v_resp_appl_id);
fnd_global.apps_initialize(v_user_id,v_resp_id,v_resp_appl_id);
vn_request_id := apps.fnd_request.submit_request (
'XBOL',
'CSUV_GL_STATEMENT_EXPORT'
,NULL
,NULL
,FALSE
commit;
But the concurrent program finished in error:
"ORACLE error 6550 in FDPSTP
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'MAIN'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
The SQL statement being execute"
The executable of the concurrent program is the next:
PACKAGE CSUV_GL_STATEMENT_EXPORT_PK
IS
PROCEDURE Main (
pouc_errbuf OUT VARCHAR2,
poun_retcode OUT NUMBER,
pinc_OWNER in varchar2,
pinc_VESSEL in varchar2,
pind_GL_DATE in varchar2,
pinc_STATE_NUM in varchar2,
pind_STATE_DATE in varchar2,
pinc_EXCEL_LAYOUT in varchar2
END CSUV_GL_STATEMENT_EXPORT_PK;
And de value set of the all my concurrent program parameters is "240 Characters".
I dont't understand why the concurrent program finished wrong.Hi,
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'MAIN'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredPlease refer to "Oracle Applications Developer's Guide" manual for the correct syntax and the number of arguments you need to pass to this API.
Oracle Applications Developer's Guide
http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115devg.pdf
Thanks,
Hussein -
Invoke Java Concurrent program from PL/ SQL
Hi Experts,
I 've a requirement to invoke a Java Concurrent program form PL/ SQL. I 've defined default values for some of the parameters in the Java Concurrent program definition and some parameters do not have a default value. I would like to provide only the mandatory attributes that do not have a default value set from my PL/ SQL code. Can you please suggest how this can be achieved?
I tried giving null for those attributes. But, the java program takes a "" value instead of the default values. Any inputs here will be immensely helpful.
Thanks,
GanapathiUpdating the correct format to be used for reference:
The correct format is:
fnd_request.submit_request(
application => 'PDT_CODE',
program => 'PGM_NAME', --program IN varchar2 default NULL,
start_time=> SYSDATE, --start_time IN varchar2 default NULL,
sub_request => FALSE, --sub_request IN boolean default FALSE
argument1 => rowdata,
argument2 => xxx
Note: the parameter name should be "argument1...n" (and not the actual argument name).
But I noticed that for parameters that are missed out, the default values still do not take effect. Can anyone please confirm this behavior?
Thanks,
Ganapathi -
How to Submit a Concurrent program from OAF page Button?
Hi,
I have tried this but its not submitting the request
String shipId = pageContext.getParameter("shipId");
OADBTransaction tr = am.getOADBTransaction();
Connection conn = tr.getJdbcConnection();
OracleCallableStatement ocs = null;
String stmt = new String("");
if(pageContext.getParameter("SubmitRequest") != null) {
try {
stmt = "begin fnd_request.submit_request( application => 'XX',
program => 'SHIPG_MATRL_PKP',
description => NULL,
start_time => sysdate,
argument1 => :1 ); end;";
ocs = (OracleCallableStatement)conn.prepareCall(stmt);
ocs.setString(1,shipId);
ocs.execute();
catch(SQLException se)
throw OAException.wrapperException(se);
What is the mistake in the syntax.
Can anyone provide the syntax for this?
KrishnaHi Anil,
I got the same requirment. The requirement was we need to create a Print PO button on the OAF page and when we click the button, we need to display the PO in pdf format by calling a concurrent program(XML) based on the PO type.
My approach was below.
1. Create the button using Personilization.
2. Extend the controller class and add the code to call the concurent request.
Can you please guide me how to create the button using personilization. When I created the button, this was shown on the OAF page. But I don't get the hand symbol on that button to click that button.
Also please give me the approach of extending the controller and AM.
Thanks for your help -
security questipns forgotten! please help!
You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
(123609) -
I want to get audio only file from DVD-R. Please help.
I hope this is the right place to ask.
I have just completed copying a radio play from VHS to DVD-R.
(Recorded off air from high quality BBC FM onto VHS sound only in 1993)
The copy is a success inasmuch as I now have the high quality copy I desire and I can play it (via the DVD player) through the hi-fi with TV turned off.
However, I want to go further and load the DVD-R into my iMac and make an Audio only file of the soundtrack for use on my iPod for instance.
I have no idea if this is possible with the standard iDVD (or other software) on my iMac or how to even start.
I guess it would be equivalent to loading a standard DVD movie and making a file of just the soundtrack.
Has anyone any ideas please?
Thankyou.If you used your computer as part of the VHS to DVD process, then you'll have a digital audio file that we can find, but I'm guessing you used a VHS to DVD standalone recorder. If so, you can use some free software called MPEG Streamclip:
- insert your DVD, and Quit from the DVD Player if it starts automatically.
- start MPEG Streamclip and open the DVD; then open the Video TS folder and open the first of the .VOB files (repeat this step until you find the file you're interested in).
- use the Export to AIFF option and you'll have the audio file.
- you'll be able to bring this file into iTunes, burn it to CD, etc.
John -
HT1918 i want to remove my debit card from my account. please help me
I have my bank debit card on my account. it has no money on it and i would like to remove it. does apple help me this or sprint
http://support.apple.com/kb/HT1918 to change payment types.
-
Please help me in this regards.
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
FNDLOAD: How to remove a concurrent program from a request group
Hi,
I want to remove a concurrent program from a request group using FNDLOAD utility. Since impacted environment is Production (controlled environment) I do not want to remove concurrent program manually from the request group. Is there a way to use FNDLOAD utility for this purpose or some other means?
Environment: Oracle EBS R12.1.1
OS: Linux
Thanks,
NitinHi,
Unfortunately this CP cannot be disabled as it has to be removed from certain RGs but not all. Also removing it through RG forms is always an option but production gatekeepers won't allow to do that. I would have done that in a min.
If FNDLOAD is not an option then I guess only other option is pl/sql script.
Best regards,
Nitin -
How to submit a cuncurrent program from UNIX?
How to submit a concurrent program from UNIX.Plz reply immediatly
Please see;
Oracle Metalink Document: How to Submit a Concurrent Request Using CONCSUB Syntax: Doc ID: Note:457519.1
https://metalink.oracle.com/metalink/plsql/f?p=130:14:5250231761732667752::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,457519.1,1,1,0,helvetica
Adith -
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 -
How do I submit a concurrent request (for PL/SQL program) from RDF
Hi,
I have a requirement i need to call a PL/SQL program using concurrent request from Oracle RDF, I am using below code.
-> PL/SQL program has two input parameters
Case:- 1
reqid :=
fnd_request.submit_request ('SQLAP','IPCS_ACH_VENDOR_PAYMENT1','','', FALSE,
:P_PAYMENT_BATCH,'N' , '', '' ,
If i ran the above rdf i am getting below errors from concurrent request log
ORACLE error 6550 in FDPSTP
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'GEN_ACH'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Case :- 2
reqid :=
fnd_request.submit_request ('SQLAP','IPCS_ACH_VENDOR_PAYMENT1','','', FALSE,
:P_PAYMENT_BATCH,'N' );
-> Able to compile the report without any errors.
-> Upon running the rdf getting below error messages
REP-0736: There exist uncompiled program unit(s).
REP-1247: Report contains uncompiled PL/SQL.
=> Case:1 very well worked for Host file .
--- Please help me how to submit a concurrent program( PL/SQL with 2 paramerers) in RDF ...
Thanks
Edited by: Apps Beginer on Dec 2, 2009 1:40 PMLooking at the 11.5.10 version of the [Oracle Applications Developer's Guide|http://download.oracle.com/docs/cd/B25516_18/current/html/docset.html] on page 21-32 - it states that the FND_REQUEST function must know information about the user and responsibility that is submitting the request. Therefore, the function only works from concurrent programs or forms within Oracle Applications. There are ways around this by initializing this information in your session before your call to SUBMIT_REQUEST. I've never tried this from a Report, but I've done it from PL/SQL that executes outside of Apps. You could try the following to see if it works.
DECLARE
n_RESP_APPL_ID NUMBER;
n_RESP_ID NUMBER;
n_USER_ID NUMBER;
n_REQUEST_ID NUMBER;
BEGIN
n_RESP_APPL_ID := apps.FND_PROFILE.VALUE('RESP_APPL_ID');
n_RESP_ID := apps.FND_PROFILE.VALUE('RESP_ID');
n_USER_ID := apps.FND_PROFILE.VALUE('USER_ID');
apps.FND_GLOBAL.Apps_Initialize(n_USER_ID, n_RESP_ID, n_RESP_APPL_ID);
/* I prefer to use Named Notation for this call rather than enter placeholders for all 100+ parameters to SUBMMIT_REQUEST */
n_REQUEST_ID := apps.fnd_request.submit_request(
application => 'SQLAP',
program => 'IPCS_ACH_VENDOR_PAYMENT1',
start_time => To_Char(sysdate,'DD-MON-YYYY',
argument1 => :P_PAYMENT_BATCH
);Obviously, I don't know all of the parameters you need for your request, so I made a "BEST GUESS" based on your code sample so I doubt my example call to Submit_Request will work if you Copy-N-Paste. Make sure you use the correct parameters when you try this in your report.
Hope this helps.
Craig...
If a response is helpful or correct, please mark it accordingly -
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 -
Manuals users should not be able to submit a concurrent program at a specific time frame:
Hi
Please let me know is it possible to restrict some users to submit a Concurrent program during a selected time frame .
Eg we have an issue in which Process Lockboxes concurrent Program is submitted by the batch user and is also by the Users manually from Front end .What I want is that during a particular time frame everyday say from 12:00 AM to 6 PM I want to restrict manual users to submit this program ,whereas the Program can be submitted by the Batch user any time .
Please let me if its possible to achieve this and how .
Thanks
RishabhPlease don't post duplicates -- restrict user to submit concurrent Program
Continue the discussion in your original post.
Thanks,
Hussein -
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
Maybe you are looking for
-
Importing Photos and Music from Multiple users on the same Mac
I am the same person with multiple users on one iMac. I need to have the same pics and music files on all of the user names on the one computer. I have the family pack MobileMe plan. Where are the files located for the photos and music in iTunes? I w
-
Yahoo link in the Personalize Menu not working
Hi, When I click the 'Yahoo Account' link in the Personalize Menu ( of EP6.0) it throws an error ( 'Yahoo! connection failed. Please verify the server ID and Password'). I am aware that our Portal is configured inside the DMZ zone and an out s
-
Limit user fields seen in Modify User Approval Request task - 11g R2
Hi, I want to do the following; I fire a 'Modify User Profile' request, the request is being assigned to the right person. When the approver opens the task assigned to him in the Request Details tab he sees all the data about the user he will approve
-
Java (maths) error? How to solve?
Hi, here is some of my code, public static void main(String [] args) int num1; int num2; int num3; num1 = 3; num2 = 3; num3 = 3; if ((num1 == num2) && (num1 == num3)) System.out.println("Your triangle is equalateral, all sides are the same length!");
-
I am using a 2014 Mac Pro with two thunderbolt disk arrays (LaCie 2Big Thunderbolt2). The drives continually dismount when waking from sleep. According to LaCie: "Sleep mode is known to effect multi-disk enclosures as these units take additional tim