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

Similar Messages

  • How to call a concurrent program from a Custom JSP page.

    Hi,
    I have a custom JSP page which i have deployed by creating a form function with the path of the JSP Page
    and added the JSP Page to the OA_HTML top.
    Now, i need to call a concurrent program from the JSP Page, i have all the parameters in my page and i am using the standard class as below:
    ConcurrentRequest cr= new ConcurrentRequest(con);
    int requestId= cr.submitRequest("XXINV",programName,null,null,false,vec);
    I have verified my connection object and it is OK but i am getting the exception that user is not set to run the program.
    I tried the below code in my JSP page and getting -1 for all test variables :-
    int userId = wctx.getUserId();
    int respApplId = wctx.getRespApplId();
    int respId = wctx.getRespId();
    I think i need to set the context in JSP page to run the program..
    Pls help ....
    Regards
    Saurabh Jaiswal

    Hi,
    Thanks for the reply,,,
    This is a possible solution but this will allow to run the program anyhow.
    But the procedure which i call thru callable statement will start with
    fnd_global.apps_initialize (3825, 50603, 704);
    fnd_request.submit_request API call.
    Now, the values of user and Responsibilty is required in the program and it changes.
    With this approach we have to hardcode the user and resp.
    The same JSP page is attached to other responsibilities and there the concurrent program would get fired as if fired from the resp Id hardcoded as above.
    Need to capture user Id and RespId.
    How can i set the apps Context in JSP page???
    Regards
    Saurabh Jaiswal

  • 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?
    Krishna

    Hi 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

  • 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

  • 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
    Arun

    Thanks 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

  • 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

  • How to EXPORT a concurrent program from one instance to another

    Hi,
    I am new to EBS.
    How to EXPORT a concurrent program from one instance to another. I dont want to use FNDLOAD.
    Is there any other way from where we can export the concurrent program to anothere instance from CLIENT connection server.
    Thanks
    Asis

    Hi;
    What is EBS version? Why you dont use FNDLOAD?
    Pelase see below thread
    Move concurrent program to prod
    Move concurrent program to prod
    Regard
    Helios

  • How to run a Concurrent Program from the back end?

    Hi,
    How to run a Concurrent Program from the back end?
    Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
    If yes, then Please Give reply how to write the code
    Thanks in Advance,
    Bharathi.S

    This is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
    221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
    235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
    HTH
    Srini

  • 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/DBA

    hi,
    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

  • How to Spawn a concurrent program from another Concurrent Program

    Hi,
    I need to write a concurrent program with PL/sql procedure. Inside this procedure, for a cursor data, for each record I need to spawn another concurrent program. How can I do this. Should I call a concurrent program using fnd_request.submit_request?
    Any suggestions?
    Thanks,
    HC

    Correct - you will need to use FND_REQUEST. Pl use the search feature of these forums to find old threads that discuss this topic
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_REQUEST+AND+SUBMIT_REQUEST&objID=c3&dateRange=all&userID=&numResults=15
    How To Submit A Concurrent Request Set Using Fnd_Request.Submit_Request          [Document 382791.1]
    Most Commonly Used FND APIs in APPS Customizations          [Document 221549.1]
    HTH
    Srini

  • How to terminate all Concurrent Programs from back end

    Hi,
    Can any one tell me how to terminate all Running Concurrent Programs from back end

    post 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;
    /

  • 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,
    Nitin

    Hi,
    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 run a concurrent program from Menu List

    Hi Guys,
    I am working in HRMS. And did the following steps.
    1. Created one concurrent program "Payroll Variance Report" as per customer's requirement.
    2. Now user wants me to luanch this consurrent program from the People Form i.e. Reponsibility->People Form (on the same form, on the top of it 'Tools' bar is there where I need to attach one prompt "Pyaroll Variance Report" to its list). The moment user clicks on this "Payroll Variance Report" option of 'Tools' list, it should launch the concurrent request. I hope I make you understand my requirements. This is very urgent. Kindly give me you suggestions.
    Looking forward to your replies.
    Thanks
    Sunil

    Use FND_REQUEST.SUBMIT_REQUEST API.
    Search the forum, My Oracle Support, eTRM, and the Developer guide for details about using this API.
    Thanks,
    Hussein

  • 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 Can I Submit A Concurrent Program Using Form Personalizaton?

    How can I submit a concurrent program? Please help!
    Thanks in advance
    PhuTri

    I think the problem in your case coould be that the Concurrent Program you are trying to run has not been registered in the responsibility from which you are runnig it.
    For eg. You are trying to run a program from Inventory Super User responsibility and the request group attached to the responsibility is say 'RG Inventory', but the concurrent program which you are trying to run from your inventory super user responsibility is registered under some other request group say 'RG Order Mangement' which is not attached to the nventory responsibility.
    So register the program under correct request group and see if this helps you.
    Other possibility is that check if you have permission to submit request from that responsibility. You can check this by going to the Menu ->View If the Request menu is disabled then you cannot submit the request.

Maybe you are looking for

  • Problem in updates  optimizer

    Hi All, I am facing a problem in updates  optimizer while runing through db13 but it is runing successfully at os lavel. Log is given below : 18.01.2008     17:48:18     Job started 18.01.2008     17:48:18     Step 001 started (program RSDBAJOB, vari

  • Negligible audio from remote speakers - airport express

    i've got a remote problem i just can't figure out. i have been running my itunes through my home stereo system via my airport express. besides some inconsistent rebuffering problems, everything has run fine for about a month. about a week ago, i remo

  • Planing to buy Skypein number(urgent reply request...

    Hi  I am planing to buy UK Skypein number for my 3 phone, so that my family can call me easily using the skypein number which is more like a landline number. My question is that if i am called on skypein number , will i be able to receive calls on m

  • Transfering songs need help

    Hey all I honestly don't know if this is a topic on here already or not. don't really have time to look for it. Anyways to the point, HDD had to be re-formatted and i lost all the music i had bought from the itunes store. I'm currently trying to tran

  • TS1717 iTunes randomly maximizes

    I've recently had an issue with iTunes randomly maximizing itself at intervals between 30 seconds and 2 minutes.  Whether or not a song is currently playing, iTunes will maximize itself (even if minimized to the taskbar) and place itself on top of al