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

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

    When 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.

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

  • 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

  • Calling a concurrent program from CO in OAF

    Hi,
    I am trying to submit a conc. program from CO in OAF and in the controller code i am using the submitRequest method to submit the conc. progam but its giving error as method submitRequest() not found in class oracle.apps.fnd.cp.request.ConcurrentRequest, please help on this.

    Refer
    how to call concurrent program form oaf page
    http://prasanna-adf.blogspot.com/2008/11/call-concurrent-program-from-oa.html
    -Anand

  • 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

  • Resubmit a Requisition in 'Incomplete' Status from back end.

    I have a requirement wherein i need to restart the requisition approval which is in 'Incomplete' Status.
    The issue is that, if something changes to the AME rules when the requisition/requisitions are in flight , it caused the requisition workflow to complete and the status of the requisition goes to 'Incomplete'. I am trying to see if i fixed the AME and can resubmit the requisition/requisitions which were 'Incomplete'  using program from back end.
    Any help or pointer is appreciated.
    Thanks

    My Understanding is :
    PR with IN PROCESS status will convert to incomplete when you alter the AME.
    From Backend, you will again move the PR to original status (in process).
    Pl.confirm the same or rectify .

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

    Hi ,
    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. Mukunthan

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

  • Calling concurrent program from form giving problem

    hi
    i have designed one concurrent program
    this concurrent program in turn calls another concurrent program.
    when i run it using SRS it is running fine
    but when i am submitting from FORM it is giving following 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 'XXPOS_MAIN'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    script in form
    declare
         l_request_id number;
         l_errbuf varchar2(30);
         l_retcode number;
    begin
    l_request_id := FND_REQUEST.SUBMIT_REQUEST('CUSTOM',     -- application
    'XXINVSIMREV',     -- program
    'Postpaid SIM Reversal after rejection',
    SYSDATE,     -- start_time (optional)
    FALSE, -- sub_request
    l_errbuf,l_retcode,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
                   IF l_request_id = 0 THEN     
                        fnd_message.set_string('Program submission for sim reversal into inventory is failure');
                        fnd_message.show;
                   else
                             fnd_message.set_string('Program submission for sim reversal into inventory is success for request id='||l_request_id);
                        fnd_message.show;
                        commit;
                   End if;
    end;

    There are so many restrictions and special circumstances for creating a custom form for Applications that you should ask this question in the Apps Forum (http://forums.oracle.com/forums/category.jspa?categoryID=3). People here might or might not have any experience with this. In the Apps Forums they definitely do.

  • Problem in calling order import concurrent program from BPEL

    Hi all,
    Iam doing a sales order creation in oracle apps using Apps Adapter.
    I have successfully inserted the order into the interface tables using an Apps adapter.
    Now I need to run Order Import program from BPEL to move the data from interface tables to the base tables for which i use another Apps Adapter.
    When I invoke the OEIMP concurrent program from BPEL ,request id is returned.But the concurrent program fails showing incomplete parameters.
    But it works when I invoke it from the front end in oracle apps.
    I think the problem lies in passing the inputs to the concurrent program from the BPEL.
    Any help to solve the issue will be appreciated.
    Thanks,
    goutam

    Previously, I was passing the values to the concurrent program variables through ASSIGN component,which resulted in some namespace issues.Then I replaced it with TRANSFORM component.
    Also,First I assigned the values to the concurrent program variables as 'Vision Operations'(operating_unit), 'Online'(order_source) ,No (validate_only), No (validate_desc_flex) which are mandatory and just left non mandatory variables without assigning values.
    I changed those values as *'204','0','N','N'*. And also set non mandatory variables value as EMPTY.
    After doing all these I found the concurrent program catches all the parameter values correctly, and the records got imported from interface tables to the base tables.Thus the sales order got created successfully.
    Thanks,
    goutam

  • Calling Concurrent program from OAF-PDF Outtput not in English

    Hi ,
    I've successfully done "Calling Concurrent Program from OAF" once i clicked the button which i have in my page it generates RequestID and that shows request page,In that when i click "Output" icon the PDF file is opened.
    But in that PDF file it shows the datas in the different language.
    For example Emp name column is shown as
    ΚΙΝΓ
    ΧΛΑΡΚ
    ΣΧΟΤΤ
    ΦΟΡ∆
    ΣΜΙΤΗ
    ΑΛΛΕΝ
    Αδαµσ
    Σεντηιλςελ
    Σαραϖανα Χ
    Σεενυ
    Σαβενα
    Ηαριkindly help me...
    Regards,
    Saro

    Hi Hussein,
    Here I've shown the details of log file
    Purchasing: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXCON module: XXCON
    Current system time is 29-DEC-2010 11:37:23
    +-----------------------------*
    *| Starting concurrent program execution...*
    +-----------------------------*
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Enter Password:
    Report Builder: Release 10.1.2.3.0 - Production on Wed Dec 29 11:37:29 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Executing request completion options...
    ------------- 1) PRINT   -------------*
    Printing output file.
    Request ID : 5865903      
    Number of copies : 0      
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 29-DEC-2010 11:37:33
    Regards,
    Saro

  • 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

  • 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

Maybe you are looking for

  • SYS_REFCURSOR takes more time than direct query execution

    I have a stored proc which has 4 inputs and 10 output and all outputs are sys_refcursor type. Among 10 ouputs, 1 cursor returns 4k+ records and all other cursors has 3 or 4 records and average 5 columns in each cursors. For this, it takes 8 sec to co

  • Can anyone identify this network monitor on my menu bar?

    About 3 weeks ago after a restart, a strange menu bar icon showed up in the upper right hand part of my screen, listing my upload/download network speed in red and green. Thing is, for the life of me I can't figure out which application is linked to

  • Setting the Prompt Message in a Bex Report Charactorstic Filter Window.

    Hello Experts, Recently my project was enhanced with some more new project and mixed it with my project. Now my issue is before my new project was mixed into old project. We have the option..when a Charactorstics in Free Charactoristics (Ex: Customer

  • Default collapsed view in ALV grid with subtotoal lines

    Hallo experts, I am displaying a ALV grid with subtotals. Now my requirement to display the Grid with only subtotal lines. Means the grid should be displayed in collapsed mode by default. Can any you help me finding this option. Thanks. Matt.

  • Refresh Applet On Button Click

    Hello everyone, I wanted to know what would be the easiest way to "reload" an Applet on a button click. I have a reset button in an actionPerformed method and I wanted to just run the constructor again for the applet if the reset button was pressed,