FND_SUBMIT

Is it possible to submit a request set as a DIFFERENT USER via something like FND_SUBMIT in a concurrent process?
We have a user called "Everyone" that submits a request set under a responsibility called "Everyone Responsibility".
We would like any user that has the "Everyone Responsibility" to see that the reports were submitted by the "Everyone" user even though it was submitted by user "A".

Thanks for the info. A friend also suggested the apps_initialize and I am going to try that.
The reason the request set needs to be submitted by an "Everyone" user is because the programs submitted are for a set of users who all need to view the otuput and they are used to looking for requests that were submitted by the "Everyone" user.
Still have a problem with trying to submit the request set. Looks like I need to call FND_SUBMIT.SUBMIT_PROGRAM for each program in the set!
Why can't it just submit the specified request set as already defined in the database? Is this possible? There are about 50 programs in the existing request set.

Similar Messages

  • Calling BI Publisher report  using FND_SUBMIT.SUBMIT_REQUEST---

    Hi Experts,
    We have a requirement in which BI Publisher report will be called using a PL/SQL procedure.
    i am successfully able to call BI publisher report using FND_SUBMIT.SUBMIT_REQUEST function.
    Business requirement is that the BI publisher report can be generated in PDF,Excel or HTML format.
    but i am able to generate the report only in xml format.
    Please guide me how to achieve this.
    Thanks in Advance,
    Cheers
    Andy.

    Make sure you register the Data Definition (with same code as concurrent program short name) and register/upload the Template correctly.
    Call fnd_request.add_layout
    Then call FND_SUBMIT.SUBMIT_REQUEST
    Regards,
    Gareth

  • How to Call  fnd_submit.submit_program  in a custom Form ?

    Hi,
    Im creating a custom form based on TEMPLATE.fmb in Oracle EBS R12.
    I want to call a concurrent program (called: RVCTP) through trigger WHEN_WINDOW_CLOSED or WHEN_BOTTON_PRESSED whatever..
    I'm using this function: fnd_submit.submit_program
    How i can call it through the trigger ?
    I tried :
    declare
    con bolean;
    begin
    con:=fnd_submit.set_request_set('PO','TEST');
    con:= fnd_submit.submit_program('PO','RVCTP',NULL,'BATCH',NULL,89);
    commit;
    end;
    Nothing happening!
    Please advise!
    PS. i used fnd_submit.set_request_set because in Oracle Apps Developer's Guide it says i have to use it before fnd_submit.submit_program.

    Thank you,
    Check This in (20-30 Oracle Applications Developer's Guide R12 ) :
    Example Request Submissions
    /* Example 1 */
    /* Submit a request from a form and commit*/
    :parameter.req_id :=
    FND_REQUEST.SUBMIT_REQUEST (
    :blockname.appsname,
    :blockname.program,
    :blockname.description,
    :blockname.start_time,
    :blockname.sub_req = 'Y',
    123, NAME_IN('ORDERS.ORDER_ID'), 'abc',
    chr(0), '', '', '', '', '', '',
    IF :parameter.req_id = 0 THEN
    FND_MESSAGE.RETRIEVE;
    FND_MESSAGE.ERROR;
    ELSE
    IF :SYSTEM.FORM_STATUS != 'CHANGED' THEN
    IF app_form.quietcommit THEN
    /*form commits without asking user to save changes*/
    fnd_message.set_name('SQLGL',
    'GL_REQUEST_SUBMITTED');
    fnd_message.set_TOKEN('REQUEST_ID',
    TO_CHAR(:PARAMETER.REQ_ID), FALSE);
    fnd_message.show;
    ELSE
    fnd_message.set_name('FND',
    'CONC-REQUEST SUBMISSION FAILED');
    fnd_message.error;
    END IF;
    ELSE
    DO_KEY('COMMIT_FORM');
    IF :SYSTEM.FORM_STATUS != 'CHANGED' THEN
    /*commit was successful*/
    fnd_message.set_name('SQLGL',
    'GL_REQUEST_SUBMITTED');
    fnd_message.set_TOKEN('REQUEST_ID',
    TO_CHAR(:PARAMETER.REQ_ID), FALSE);
    fnd_message.show;
    END IF;
    END IF;
    END IF;
    I'm still getting an error "Wrong Number of types or arguments in call to 'SUBMIT_REQUEST' "

  • FND_SUBMIT.SET_PRINT_OPTIONS is not working

    Hello colleagues,
    I am trying to submit a report from a plsql package. That I can do successfully with no issues. Now when I try to print the output using FND_SUBMIT.SET_PRINT_OPTIONS nothing happens. Nothing gets printed, and when I View Details of the concurrent programme the printer options I set have not taken effect. It still shows noprint and 0 copies.
    lb_print_flag := FND_SUBMIT.SET_PRINT_OPTIONS ('it1' -- printer
    ,'HPP' -- style
    ,1 -- copies
    ,TRUE -- save output
    ,'' -- print together
    I can't see anything wrong with my syntax. So my question is what am I doing wrong? Is there a prerequisite or postrequisite I have not implemented?
    Any help or advice is much appreciated.
    Thanks

    Hi Hussein,
    Yes I do I'm afraid. The concurrent request gets submitted but nothing is printed.
    FND_GLOBAL.APPS_INITIALIZE(user_id => 1158
    ,resp_id => 50244
    ,resp_appl_id => 222
    ,security_group_id => 0
    lb_print_flag := FND_SUBMIT.SET_PRINT_OPTIONS ('it1' -- printer
    ,'HPP' -- style
    ,1 -- copies
    ,TRUE -- save output
    ,'' -- print together
    li_request_id := FND_REQUEST.SUBMIT_REQUEST (application => 'XX'
    , program => 'XX_ARRP01'
    , argument1 => 'TRX_NUMBER'
    , argument2 => ''
    , argument3 => ''
    , argument4 => 'XX258197'
    , argument5 => 'XX258197'
    , argument6 => ''
    , argument7 => ''
    , argument8 => ''
    , argument9 => ''
    , argument10 => 'N'
    , argument11 => '0'
         COMMIT; -- This will start the request
    DBMS_OUTPUT.PUT_LINE('Request ID is '||to_char(li_request_id));
    RETURN(to_char(li_request_id));

  • Issue in fnd_submit.submit_program

    Hi All,
    I have a requirement of submitting sequest sets dynamically depending upon the user input parameter. So I wrote one shell script in which I will find which set needs to launched. After that in a pl sql block I wrote one cursor to take all programs coming under this request set.
    In the begin block first I wrote the fnd_submit.set_request_set. After that in the for loop I called the fnd_submit.submit_program. In the for loop I fetched the parameters into 10 variables and I am passing whole the 10 variables as the arguments.
    There I am facing the issue. The first and last programs in my set are host programs which is working fine. But the second one is a pl sql program, which is giving "PLS-00306: wrong number or types of arguments" as we wre trying to pass more number of arguments.
    Below is the sample.
    CURSOR req_set_pgms_cur IS
    SELECT FRSSFV.STAGE_NAME,fcp.CONCURRENT_PROGRAM_NAME,fa.APPLICATION_SHORT_NAME
    FROM FND_REQUEST_SETS_VL frsv,
    FND_REQ_SET_STAGES_FORM_V frssfv,
    FND_REQUEST_SET_PROGRAMS frsp,
    FND_CONCURRENT_PROGRAMS fcp,
    FND_APPLICATION fa
    WHERE FRSV.REQUEST_SET_ID=FRSSFV.REQUEST_SET_ID
    AND FRSV.REQUEST_SET_ID=frsp.REQUEST_SET_ID
    AND FRSSFV.REQUEST_SET_STAGE_ID=frsp.REQUEST_SET_STAGE_ID
    AND frsp.CONCURRENT_PROGRAM_ID=fcp.CONCURRENT_PROGRAM_ID
    AND fcp.APPLICATION_ID=fa.APPLICATION_ID
    AND frsv.REQUEST_SET_NAME=req_set
              AND fa.APPLICATION_SHORT_NAME=app_name
    ORDER BY frssfv.STAGE_NAME,frsp.SEQUENCE;
    BEGIN
    l_success := 0;
    num:=1;
    fnd_global.apps_initialize( user_id => 48192, resp_id => 50425, resp_appl_id => 800);
    l_action := 'Launching Request Set';
    DBMS_OUTPUT.PUT_LINE(l_action);
    l_ok := fnd_submit.set_request_set (application => app_name,request_set => req_set);
    FOR req_set_pgms_cur_v in req_set_pgms_cur LOOP
    SELECT COUNT(*) INTO num_of_args
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME;
                   argument1:=chr(0);
    IF num_of_args>=1 THEN
    SELECT decode(DEFAULT_VALUE,'PER_BUSINESS_GROUP_ID','101',DEFAULT_VALUE) INTO argument1
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE1';
    END IF;
    argument2:=chr(0);
    IF num_of_args>=2 THEN
    SELECT DEFAULT_VALUE INTO argument2
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE2';
    END IF;
                   argument3:=chr(0);
    IF num_of_args>=3 THEN
    SELECT DEFAULT_VALUE INTO argument3
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE3';
    END IF;
                   argument4:=chr(0);
    IF num_of_args>=4 THEN
    SELECT DEFAULT_VALUE INTO argument4
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE4';
    END IF;
                   argument5:=chr(0);
    IF num_of_args>=5 THEN
    SELECT DEFAULT_VALUE INTO argument5
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE5';
    END IF;
                   argument6:=chr(0);
    IF num_of_args>=6 THEN
    SELECT DEFAULT_VALUE INTO argument6
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE6';
    END IF;
                   argument7:=chr(0);
    IF num_of_args>=7 THEN
    SELECT DEFAULT_VALUE INTO argument7
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE7';
    END IF;
                   argument8:=chr(0);
    IF num_of_args>=8 THEN
    SELECT DEFAULT_VALUE INTO argument8
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE8';
    END IF;
                   argument9:=chr(0);
    IF num_of_args>=9 THEN
    SELECT DEFAULT_VALUE INTO argument9
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE9';
    END IF;
                   argument10:=chr(0);
    IF num_of_args>=10 THEN
    SELECT DEFAULT_VALUE INTO argument10
    FROM FND_DESCR_FLEX_COLUMN_USAGES
    WHERE DESCRIPTIVE_FLEXFIELD_NAME like '\$SRS\$.'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    AND APPLICATION_COLUMN_NAME like 'ATTRIBUTE10';
    END IF;
    IF l_ok=TRUE AND l_success = 0 THEN
    l_action := 'Job '||num||':-'||req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME;
    DBMS_OUTPUT.PUT_LINE(l_action);
    l_ok := fnd_submit.submit_program
    (application => req_set_pgms_cur_v.APPLICATION_SHORT_NAME
    ,program => req_set_pgms_cur_v.CONCURRENT_PROGRAM_NAME
    ,stage => req_set_pgms_cur_v.STAGE_NAME
    ,argument1=>argument1
    ,argument2=>argument2
    ,argument3=>argument3
    ,argument4=>argument4
    ,argument5=>argument5
    ,argument6=>argument6
    ,argument7=>argument7
    ,argument8=>argument8
    ,argument9=>argument9
    ,argument10=>argument10
    ELSE
    l_success := 100+num;
    END IF;
    num:=num+1;
    END LOOP;
    I am in an urgent situation. Please help me on this.
    Also is there any API to pass the arguments alone after calling the fnd_submit.submit_program.
    Thanks in advance.
    Regards,
    Charls

    I was facing the issue when I tried to run it from bakend.
    Issue resolved when it is registered as a concurrent program.
    Regards,
    Charls K V

  • FND_SUBMIT API

    Can I use FND_SUBMIT API in Oracle Server Release 7.3.4.4.0 ? This is to be used for Oracle Applications version 10.7.
    If this can be used, can anyone help me out with the way to use it.
    Thanks

    Not sure about that particular option, but in general you pass in pairs - an example from code I didn't write but maintain (so if this is the worst possible way, I apologize)
    proj_req_id6 := FND_REQUEST.SUBMIT_REQUEST('SQLGL', 'XXXX_GLGENLED_PDF',
                              'XXXX General Ledger',
                              '',dummy_default,
                              'P_SET_OF_BOOKS_ID='||v_rep_cmp.set_of_books_id,'P_CHART_OF_ACCOUNTS_ID=101',
                              'P_KIND=L','P_CURRENCY_CODE='||v_rep_cmp.currency_code,
                              'P_ACTUAL_FLAG=A','P_BUD_ENC_TYPE_ID=100',
                              'P_START_PERIOD='||'&1','P_END_PERIOD='||'&1',
                              'P_MIN_FLEX='||v_min_flex||'.'||v_emp_cost_center.COST_CENTER||'.00000.000.000.000.00',
                              'P_MAX_FLEX='||v_max_flex||'.'||v_emp_cost_center.COST_CENTER||'.99999.999.999.ZZZ.99',
                              'P_PAGE_SIZE=180',chr(0),'',
                              '','','','','','','','','','');You see where I have option pairs - for example
    'P_ACTUAL_FLAG=A'Tells my program that the value for parameter P_ACTUAL_FLAG is A
    This example is from a SQL*Plus script, hence the &1 for the value substitutions.
    Hope that helps

  • KIMYONG: FND_SUBMIT API에 관해

    Purpose
    정확한 FND_SUBMIT API GUIDE 를 제공하기 위해.
    Solution
    FND_SUBMIT API를 사용할경우
    parameter passing 이 잘못되거나
    initialize 하는 부분이 missing 되어 동작이 안 하는경우가 있습니다.
    이럴경우 아래 부분이 들어가 있는지 확인해 주어야 합니다.
    API guide에 따르면 FND_REQUEST submit할때 아래와 같은 Guide가 있습니다.
    The following is the code we recommend using before calling Applications APIs:
    vRESP_APPL_ID number;
    vRESP_ID number;
    vUSER_ID number;
    BEGIN
    vRESP_APPL_ID := apps.fnd_profile.value('RESP_APPL_ID');
    vRESP_ID := apps.fnd_profile.value('RESP_ID');
    vUSER_ID := apps.fnd_profile.value('USER_ID');
    apps.fnd_global.apps_initialize(vUSER_ID,vRESP_ID,vRESP_APPL_ID);
    So add a call to fnd_global.apps_initialize before the fnd_request call.
    If your fnd_request call still fails,
    Reference
    Oracle Application Developer Guide
    http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115devg.pdf

  • KIMYONG :  API ( FND_SUBMIT,  FND_REQUEST) Sample Code 소개

    Purpose
    Extension 개발자들이 간혹 요청하는 Standard API (FND_SUBMIT, FND_REQUEST)의 sample code입니다.
    Configuring the Script
    FND_SUBMIT test procedure and sample code
    Creates a procedure called fnd_submit_test that can be registered and run as a concurrent program.
    This procedure will use the FND_SUBMIT API to submit a request set. (Function Security Reports - This request set should be seeded, if it is not available the values in the script may need to be changed.) The procedure will then place itself in a Paused status until the request set completes.
    Running the Script
    1. Install this procedure in the APPS schema.
    2. Register the procedure as a concurrent program
    Caution
    This script is provided for educational purposes only and not supported by Oracle Support Services. It has been tested internally, however, and works as documented. We do not guarantee that it will work for you, so be sure to test it in your environment before relying on it.
    Proofread this script before using it! Due to the differences in the way text editors, e-mail packages and operating systems handle text formatting (spaces, tabs and carriage returns), this script may not be in an executable state when you first receive it. Check over the script to ensure that errors of this type are corrected.
    Script
    REM +==========================================================================
    REM | Concurrent Processing Sample Code
    REM |
    REM | FILE:
    REM | fnd_submit_test.pls
    REM |
    REM | REVISION:
    REM | $Id$
    REM |
    REM | DESCRIPTION:
    REM | FND_SUBMIT test procedure and sample code
    REM | Creates a procedure called fnd_submit_test that can be registered
    REM | and run as a concurrent program.
    REM | This procedure will use the FND_SUBMIT API to submit a request set.
    REM | (Function Security Reports - This request set should be seeded, if
    REM | it is not available the values in the script may need to be changed.)
    REM | The procedure will then place itself in a Paused status until the
    REM | request set completes.
    REM |
    REM | INSTRUCTIONS:
    REM |
    REM | 1. Install this procedure in the APPS schema.
    REM |
    REM | 2. Register the procedure as a concurrent program
    REM |
    REM |
    REM +==========================================================================
    whenever sqlerror exit failure rollback;
    create or replace procedure fnd_submit_test (errbuf out varchar2,
    retcode out varchar2) as
    success boolean;
    req_id number;
    req_data varchar2(10);
    srs_failed exception;
    submitprog_failed exception;
    submitset_failed exception;
    begin
    -- Use FND_FILE to output messages at each stage
    fnd_file.put_line(fnd_file.log, 'Starting test...');
    -- Read fnd_conc_global.request_data, if available then we have been
    -- reawakened after the request set has completed.
    -- If so, exit.
    req_data := fnd_conc_global.request_data;
    if (req_data is not null) then
    errbuf := 'Done!';
    retcode := 0 ;
    return;
    end if;
    -- Step 1 - call set_request_set
    fnd_file.put_line(fnd_file.log, 'Calling set_request_set...');
    success := fnd_submit.set_request_set('FND', 'FNDRSSUB43');
    if ( not success ) then
    raise srs_failed;
    end if;
    fnd_file.put_line(fnd_file.log, 'Calling submit program first time...');
    -- Step 2 - call submit program for each program in the set
    success := fnd_submit.submit_program('FND','FNDMNFUN', 'STAGE10', 'System Administrator', chr(0));
    if ( not success ) then
    raise submitprog_failed;
    end if;
    fnd_file.put_line(fnd_file.log, 'Calling submit program second time...');
    success := fnd_submit.submit_program('FND','FNDMNMNU', 'STAGE10', 'System Administrator', chr(0));
    if ( not success ) then
    raise submitprog_failed;
    end if;
    fnd_file.put_line(fnd_file.log, 'Calling submit program third time...');
    success := fnd_submit.submit_program('FND','FNDMNNAV', 'STAGE10', 'System Administrator', chr(0));
    if ( not success ) then
    raise submitprog_failed;
    end if;
    -- Step 3 - call submit_set
    fnd_file.put_line(fnd_file.log, 'Calling submit_set...');
    req_id := fnd_submit.submit_set(null,true);
    if (req_id = 0 ) then
    raise submitset_failed;
    end if;
    fnd_file.put_line(fnd_file.log, 'Finished.');
    -- Set conc_status to PAUSED, set request_data to 1 and exit
    fnd_conc_global.set_req_globals(conc_status => 'PAUSED', request_data => '1') ;
    errbuf := 'Request set submitted. id = ' || req_id;
    retcode := 0;
    exception
    when srs_failed then
    errbuf := 'Call to set_request_set failed: ' || fnd_message.get;
    retcode := 2;
    fnd_file.put_line(fnd_file.log, errbuf);
    when submitprog_failed then
    errbuf := 'Call to submit_program failed: ' || fnd_message.get;
    retcode := 2;
    fnd_file.put_line(fnd_file.log, errbuf);
    when submitset_failed then
    errbuf := 'Call to submit_set failed: ' || fnd_message.get;
    retcode := 2;
    fnd_file.put_line(fnd_file.log, errbuf);
    when others then
    errbuf := 'Request set submission failed - unknown error: ' || sqlerrm;
    retcode := 2;
    fnd_file.put_line(fnd_file.log, errbuf);
    end;
    rem ===================================================================
    commit;
    exit;
    Reference
    자세한 사항은 Note 221542.1 를 참고하세요.

    Not sure about that particular option, but in general you pass in pairs - an example from code I didn't write but maintain (so if this is the worst possible way, I apologize)
    proj_req_id6 := FND_REQUEST.SUBMIT_REQUEST('SQLGL', 'XXXX_GLGENLED_PDF',
                              'XXXX General Ledger',
                              '',dummy_default,
                              'P_SET_OF_BOOKS_ID='||v_rep_cmp.set_of_books_id,'P_CHART_OF_ACCOUNTS_ID=101',
                              'P_KIND=L','P_CURRENCY_CODE='||v_rep_cmp.currency_code,
                              'P_ACTUAL_FLAG=A','P_BUD_ENC_TYPE_ID=100',
                              'P_START_PERIOD='||'&1','P_END_PERIOD='||'&1',
                              'P_MIN_FLEX='||v_min_flex||'.'||v_emp_cost_center.COST_CENTER||'.00000.000.000.000.00',
                              'P_MAX_FLEX='||v_max_flex||'.'||v_emp_cost_center.COST_CENTER||'.99999.999.999.ZZZ.99',
                              'P_PAGE_SIZE=180',chr(0),'',
                              '','','','','','','','','','');You see where I have option pairs - for example
    'P_ACTUAL_FLAG=A'Tells my program that the value for parameter P_ACTUAL_FLAG is A
    This example is from a SQL*Plus script, hence the &1 for the value substitutions.
    Hope that helps

  • How To call Journal Posting thro' fnd_submit.submit.request()?

    Hi ,
    v_request2_id := Fnd_Request.SUBMIT_REQUEST('SQLGL', 'GLPPOS',
    'Gastos', NULL, FALSE, to_char(v_set_of_Books_id),
    to_char(v_chart_of_Accounts_id), to_char(v_posting_run_id), chr(0))
    This is the way i am calling the posting program it gets completed but it is not looking for the batches in gl_je_batches table.
    Can any one has an idea about it?
    Reply ASAP.
    Thanks in Advance......

    Hi ,
    v_request2_id := Fnd_Request.SUBMIT_REQUEST('SQLGL', 'GLPPOS',
    'Gastos', NULL, FALSE, to_char(v_set_of_Books_id),
    to_char(v_chart_of_Accounts_id), to_char(v_posting_run_id), chr(0))
    This is the way i am calling the posting program it gets completed but it is not looking for the batches in gl_je_batches table.
    Can any one has an idea about it?
    Reply ASAP.
    Thanks in Advance......

  • Supplier Open Interface Errors

    I created an supplier interface in plsql. Want I want to do is kick off the following concurrent programs from pl/sql using fnd_request.submit_request
    Supplier Open Interface Import
    Supplier Sites Open Interface Import
    Now when I run the pl/sql without the call to the fnd_submit, then run the concurrent programs through the app in Payables Manager, it works fine. BUT when I add the fnd_submit call, it executes fine but there is a weird error dealing with reports. Now this seems like some kind of privilege thing maybe?
    Below is my call to FND_SUBMIT and also my initialize. Also is the error. Ideas on what is up?
    Maybe it is because the code is in a custom schema and not under apps??
    APPS.fnd_global.apps_initialize(user_id =>'0'
    ,resp_id =>'50517'
    ,resp_appl_id =>'200');
    v_header_req := APPS.FND_REQUEST.submit_request( application => 'SQLAP',
    program => 'APXSUIMP');
    v_site_req := APPS.FND_REQUEST.submit_request( application => 'SQLAP',
    program => 'APXSSIMP');
    Payables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APXSSIMP module: Supplier Sites Open Interface Import
    Current system time is 24-MAR-2009 16:52:02
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Importing Suppliers
    REP-1419: 'beforereport': PL/SQL program aborted.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1419: MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Importing Suppliers
    REP-1419: 'beforereport': PL/SQL program aborted.
    Report Builder: Release 10.1.2.2.0 - Production on Tue Mar 24 16:52:06 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 370808.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 24-MAR-2009 16:52:07

    Hello Jason,
    We have done somewhat the same, I see you dont add any arguments in the submit request call.
    Maybe all below is already known, maybe it helps you to find just what is wrong in your case.
    We did it this way:
    l_id := fnd_request.submit_request( application => 'SQLAP'
    +, program => p_name+
    +, description => null+
    +, start_time => null+
    +, sub_request => null--fnd_global.conc_request_id+
    +, argument1 => 'APXSUIMP'+
    +, argument2 => 'ALL'+
    +, argument3 => 1000+
    +, argument4 => 'N'+
    +, argument5 => 'N'+
    +);+
    After this we immediately execute a commit (as this will trigger the request start).
    After that we also wait for the request to finish by doing the following:
    if fnd_concurrent.wait_for_request
    +( l_request_id+
    +, 2 --interval+
    +, 0 --max_wait+
    +, l_phase --phase+
    +, l_status --status+
    +, l_dev_phase --dev_phase+
    +, l_dev_status --dev_status+
    +, l_message )+
    then ...
    Hope this helps,
    Mark

  • Supp Open Interface Import concurent program submit from Pl/Sql not Working

    Hi,
    I am new to Financials and using R12.1. We are integrating the Supplier Master from the Operations system from a different platform. The records are inserted into the interface tables and subsequently we need to trigger the concurrent programs from the backend which is failing when the request set was triggered. The STAGE10 onwards the concurrent programs are not getting submitted.
    The following is the code used for triggering the concurrent program for supplier site independently.
    declare
    lv_req_status               boolean;
    begin
    Fnd_global.apps_initialize(1175,50597,200);
    lv_req_status := fnd_submit.submit_program ('SQLAP',
    'APXSSIMP',
    'STAGE20',
    'ALL',
    1000,
    'N',
    'N',
    'N'
    end;
    Please help me in troubleshooting the same.
    Thanks in advance,
    rahul

    Hello,
    Is it supplier invoices that you are loading?
    Here is a piece of code for AP invoices:
    L_requestId := Fnd_Request.submit_request(application =>'SQLAP'
    ,program => 'APXIIMPT'
    ,sub_request => FALSE
    ,argument1 => NULL
    ,argument2 => <SOURCE_NAME>
    ,argument3 => NULL
    ,argument4 =>'NA'
    ,argument5 => NULL
    ,argument6 => NULL
    ,argument7 => NULL
    ,argument8 => 'N'
    ,argument9 => 'Y');
    COMMIT;
    Note: this piece of code is for Oracle R12.
    Hope this solve your issue,
    Vik
    Edited by: Vikram Awotar on Apr 17, 2010 11:12 PM
    Edited by: Vikram Awotar on Apr 17, 2010 11:15 PM

  • Email Delivery Option - Simple TEXT Output is coming as an attachment

    Hi All,
    I am trying to use R12.1.3 feature "Delivery Option" while Submitting Concurrent Program "Payables Open Interface Import" using FND_SUBMIT with email Delivery Option and email is coming with an attachment (Concurrent Program Output).
    Email Body is blank (as expected if Output is coming as an attachment), as per documentation if CP Output is in TEXT Format then Email body should show the Output instead of an attachment.
    My Question, is if Output is TEXT why it is coming as an attachment, do I need to Configure something?
    I am using and it is working fine(not sure if any of the argument is required to Set "SMTP_CONTENT_TYPE",
    l_ret := fnd_request.add_delivery_option
    (type => FND_DELIVERY.TYPE_EMAIL
         ,p_argument1 => 'Quick Invoice to Workbench Transfer Details' -- Subject
         ,p_argument2 => '[email protected]' -- From
         ,p_argument3 => l_email_add -- To
         ,p_argument4 => '[email protected]'); -- CC
    In Java Based Concurrent Program example, I foudn this line, not sure how to do that using PL/SQL
    req.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_TYPE, "application/pdf");
    Please Help.
    Regards
    Sachin

    Hello Kamath,
    Have you set PARAMETER6 to true or false?
    http://docs.oracle.com/cd/E28280_01/bi.1111/e22258/add_burst_def.htm#CHEJDGAG
    Please send us your bursting query so we can check it.
    For more info on this, please review section 7.3 Adding a Bursting Definition to Your Data Model
    from Fusion Middleware Data Modeling Guide for Oracle Business Intelligence Publisher
    http://docs.oracle.com/cd/E28280_01/bi.1111/e22258/add_burst_def.htm#BIPDM347
    Bogdan

  • ISSUE WITH SUPPLIER SITE OPEN INTERFACE IMPORT PROGRAM in R12

    I am facing issue while submitting supplier site open interface import program programmatically using fnd_request.
    I am uploading the interface tables with the mandatory data and running the standard Request Set for Suppliers.The program is creating the Suppliers but is unable to create the Supplier Sites.It is getting completed with no rejections as well as imported records.
    It is updating the Supplier Sites Interface table (ap_supplier_sites_int ) with status as rejected with no rejected records in ap_supplier_int_rejections table.
    I am using the following code.
    Step 1 - call set_request_set
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'Calling set_request_set...');
    success := fnd_submit.set_request_set ('SQLAP', 'FNDRSSUB852');--'FNDRSSUB1703');
    IF (NOT success)
    THEN
    RAISE srs_failed;
    ELSE
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    'Calling submit program first time...'
    END IF;
    -- Step 2 - call submit program for each program in the set
    success :=
    fnd_submit.submit_program ('SQLAP',
    'APXSUIMP',
    'STAGE10',
    'ALL',
    1000,
    'N',
    'N',
    'N',
    CHR (0)
    IF (NOT success)
    THEN
    RAISE submitprog_failed;
    END IF;
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    'Calling submit program second time...'
    success :=
    fnd_submit.submit_program ('SQLAP',
    'APXSSIMP',
    'STAGE20',
    'ALL',
    1000,
    'N',
    'N',
    'N',
    CHR (0)
    IF (NOT success)
    THEN
    RAISE submitprog_failed;
    END IF;
    -- Step 3 - call submit_set
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'Calling submit_set...');
    req_id := fnd_submit.submit_set (NULL, TRUE);
    IF (req_id = 0)
    THEN
    RAISE submitset_failed;
    END IF;
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'Finished.');
    And in the interface table the record status is rejected and ther is no corresponding record in ap_supplier_int_rejections.
    but the supplier is getting created succesfully.
    ### Steps to Reproduce ###
    INSERT INTO ap_suppliers_int
    (exclusive_payment_flag,
    vendor_interface_id,
    vendor_name,
    segment1,
    vendor_type_lookup_code,-- set_of_books_id,
    status
    VALUES ('N', --'N',
    ap_suppliers_int_s.NEXTVAL,
    'TEST_REC4',
    4428813,
    'VENDOR', --2041,
    --rec_spl_site_bank_hdr.set_of_books_id,
    'NEW'
    INSERT INTO ap_supplier_sites_int
    (vendor_site_interface_id,
    vendor_interface_id,
    vendor_site_code,
    address_line1,
    city,
    state,
    zip,
    country,
    operating_unit_name,
    status --exclusive_payment_flag
    VALUES (ap_supplier_sites_int_s.NEXTVAL,
    -- VENDOR_SITES_INTERFACE_ID
    ap_suppliers_int_s.CURRVAL,
    -- VENDOR_INTERFACE_ID
    'REC_VDR_SITE4',
    -- VENDOR_SITE_CODE
    'REC_ADDR4',
    -- ADDRESS_LINE1,
    'REC_CITY4', --CITY
    'REC_STATE4', --STATE
    3442121,
    'US', -- COUNTRY,
    ' Test US Operating Unit',
    'NEW'
    );

    Hi
    I have the same issue with ap supplier sites interface program .. Did your problem got solved..I will be thankfull for any help
    Thanks

  • How to submit a request set from plsql

    Its Apps Request ,,
    Im using below code
    STAT := FND_SUBMIT.SET_REQUEST_SET(APPLICATION => V_APPL,
    REQUEST_SET => 'FNDRSSUB2237');
    V_REQ_ID1 := FND_SUBMIT.SUBMIT_SET(START_TIME => SYSDATE,
    SUB_REQUEST => TRUE);
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT, V_REQ_ID1);
    DBMS_OUTPUT.PUT_LINE(V_REQ_ID1);
    It is giving 0

    904032 wrote:
    Its Apps Request ,,
    Im using below code
    STAT := FND_SUBMIT.SET_REQUEST_SET(APPLICATION => V_APPL,
    REQUEST_SET => 'FNDRSSUB2237');
    V_REQ_ID1 := FND_SUBMIT.SUBMIT_SET(START_TIME => SYSDATE,
    SUB_REQUEST => TRUE);
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT, V_REQ_ID1);
    DBMS_OUTPUT.PUT_LINE(V_REQ_ID1);
    It is giving 0Have you reviewed old threads? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=%22Fnd_Request.Submit_Request+%22+AND+Concurrent+AND+Set&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to run a concurrent progarm from a Form personalisation?

    I use:
    Type: Builtin
    Builtin Type: Launch SRS Form
    Program Name: One custom program.
    It gives me an error :
    Function not available to this responsiblity. Change responsiblities or contact your System Administrator.
    FYI : The custom program is attached to the same request group as what the responsibility has. And i am trying to launch the same from the same responsibility.
    I am wondering how to resolve this.
    I have tried in some forums but all r in vain.
    Thanks,
    Bala.

    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

Maybe you are looking for

  • Extension error while running but not during debug

    Hi all, I'm using JDev 10.1.2 and I developed an extension for it. This extension guides the user to the creation of a sql file through a sequence of frames. While in debug mode, this extension works without the smallest problem, but when i restart j

  • How to preset fields in a transaction BP with default values

    Hi! I want to fill few fields in transaction BP with default values. This should be if there`s a new business partner to insert. If i can do this depending on the selected role it was the best First i thought on SPA/GPA-parameters ... but then i can`

  • Is there a way to specify a value not allowed in text field?

    I see there is max/min chars and values but is there a way to specify not to allow specific words or a specific value like 2000 in an integer field? Maybe I'm blind but I searched through all of this document http://labs.adobe.com/technologies/spry/a

  • Sending mail to Junk crashes Mail

    When a piece of junk mail makes it to my inbox and I select it and press "Junk", Mail.app freezes and I have to restart. It does this consistently. With my internet connection off, I have tried to reset Junk in preferences, but the problem will not g

  • BIll of Material (BOM)

    Hi All, I would like to know how BOM(IDNRK - Material No.) available in (STPO table) is linked with Operation/Activity Number(VORNR) and Group Counter(PLNAL). Transaction Code IA07 Thanks, Pratibha