Fnd_request.submit_request returning error

All
I'm currently attempting to call several concurrent programs from a single parent pl/sql concurrent program using
fnd_request.submit_request
The main reason for not using a request set is that i need to pass return values from each conc prog to the next as input values, which by the looks of things cannot be done with a request set. (correct me if i'm wrong)..
The parent concurrent program 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;
This seems to return a conc request id of Zero ie did not run successfully along with an error message regarding FND_REQUEST.SUBMIT and an apparent missing sequence.
The concurrent Log returns
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
Has anyone seen this before, have any ideas why this is not working correctly
Thanks in advance
Will

ok some extra info.. The parent code is being run from a custom schema with a synonym in apps
Also running the fnd_request.submit_request call in isolation from the apps schema returns a non zero conc req id ie successfully submits a request..
hence i'm thinking there is a schema/ grants/ synonym issue as the error returned essentially says a sequence cannot be seen
Would this be correct?

Similar Messages

  • APXIIMPT-PayablesOpen Interface FND_REQUEST.submit_request returns 0 inToad

    I am submitting APXIIMPT (Payables Open Interface Import) FND_REQUEST.submit_request from Toad and it returns 0 . I am setting context before I submit the request. Not sure what is missing. Any help is very much appreciated!
    Here is my code:
    BEGIN
    Fnd_Global.apps_initialize('1173','50857','200');
    COMMIT;
    EXCEPTION
    WHEN others THEN
    Dbms_Output.Put_Line('Error Occurred during Fnd_Global.apps_initialize: ' || SUBSTR(SQLERRM,1,900));
    END;
    declare
    nRequestId NUMBER;
    BEGIN
    Dbms_Output.Put_Line('Begin');
    nRequestId := FND_REQUEST.submit_request(
    application => 'SQLAP',
    program => 'APXIIMPT',
    argument1 => 'INVOICE GATEWAY',
    argument2 => '999',
    argument3 => 'TEST999',
    argument4 => NULL,
    argument5 => NULL,
    argument6 => NULL , --'2011/05/11 18:27:38' ,
    argument7 => 'N',
    argument8 => 'N',
    argument9 => 'N',
    argument10 => 'N',
    argument11 => '1000');
    COMMIT;
    Dbms_Output.Put_Line('Request_id = ' || nRequestId);
    IF NVL(nRequestId,0) = 0 THEN
    Dbms_Output.Put_Line('No Request ID');
    else
    Dbms_Output.Put_Line('Done');
    END IF;
    end;
    Edited by: user8957415 on Oct 11, 2011 1:25 PM
    Edited by: user8957415 on Oct 11, 2011 1:31 PM
    Edited by: user8957415 on Oct 11, 2011 1:32 PM

    I was able to solve this issue by changing the arguments as shown below:
    FND_REQUEST.submit_request(
    application => 'SQLAP',
    program => 'APXIIMPT',
    argument1 => '383', -- org_id
    argument2 => 'XXXX, -- Invoice source
    argument3 => 'TEST999', -- group_id (make sure the records have the same group id in the interface tables)
    argument4 => 'TEST', -- Batch Name
    argument5 => XXXXX, -- Hold name incase you want to put the invoices on automatic hold after import
    argument6 => XXXX, -- Hold Raeson
    argument7 => '2011/09/15 18:27:38', -- GL Date
    argument8 => 'N',
    argument9 => 'N',
    argument10 => 'N',
    argument11 => 'N',
    argument12 => '1000');

  • Calling   FND_REQUEST.SUBMIT_REQUEST from java

    hello, i hope this is the right place to ask. I am currently calling a Procedure from my java code. This procedure will then call the CP.
    My problem is when i run the procedure with sqlplus, everything works. But when i run it from java. i always get a 0 value in return.
    I even hardcoded the data in my procedure. So the probleme look to be FND_REQUEST.SUBMIT_REQUEST in itself
    Java code calling the procedure
    <code>
    query = "begin cbj.PKG_NAME.UPLOAD(:1,:2,:3,:4,:5,:6); end;";
    cStmt = (OracleCallableStatement)tx.createCallableStatement(query, 0);
    cStmt.setString(1, "CHAC");
    cStmt.setString(2, "reportName");
    cStmt.setString(3, "CCEEXALL");
    cStmt.setString(4, "1050");
    cStmt.setString(5, "2010-09");
    cStmt.setString(6, "USD");
    cStmt.execute();
    cStmt.close();
    </code>
    In my Procedure
    <code>
    v_request_id := apps.fnd_request.submit_request(application => 'PA',
    program => 'CCEEXALL',
    description => NULL,
    start_time => NULL,
    sub_request => FALSE,
    argument1 => '2010-09',
    argument2 => 'USD',
    argument3 => '1050');
    </code>
    Anyone can help ?

    Please see these links/docs.
    issue with FND_REQUEST. SUBMIT_REQUEST
    issue with FND_REQUEST. SUBMIT_REQUEST
    fnd_request.submit_request Returning 0 Using pl/sql block (Doc ID 812879.1)
    Thanks,
    Hussein

  • Fnd_request.submit_request error with PA_SRS_DATES2 value set

    Hi,
    We are applications 12.0.6 with 10.2.0.3.0 database. I'm trying to submit the "PRC: Generate Draft Revenue for a Single Project" through fnd_request.submit_request and is erroring out with "PA: Error - Entered Accrue through date is not within open/future PA period". I'm able to run the same program from the application with the same parameters. I'm passing Accue date of 2009/08/31 00:00:00 from the program and I can see the same value when submitted frm the applications also.
    Value set for this Accrue date parameter is "PA_SRS_DATES2". It is setup as format type "Standard Date" and maximum size is 11.
    Thanks for your help,
    Shree.
    Here is the script
    SELECT TO_CHAR (rec1.per_end_date, 'RRRR/MM/DD HH24:MI:SS')
    INTO v_rev_accrue
    FROM DUAL;
    v_fc_req_id :=
    fnd_request.submit_request (application => 'PA',
    program => 'PARGDR_SINGLE',
    sub_request => FALSE,
    start_time => NULL,
    argument1 => rec1.project_id,
    argument2 => 'N',
    argument3 => 'Y',
    argument4 => v_rev_accrue,
    argument5 => NULL,
    argument6 => NULL,
    argument7 => NULL,
    argument8 => NULL,
    argument9 => NULL,
    argument10 => NULL,
    argument11 => 'Y',
    argument12 => 'N',
    argument13 => NULL,
    argument14 => NULL,
    argument15 => NULL,
    argument16 => NULL,
    argument17 => NULL,
    argument18 => 'N',
    argument19 => 'N',
    argument20 => 'N'
    IF NVL (v_fc_req_id, 0) = 0
    THEN
    gv_debug_name :=
    'Error in Submitting the draft revenue program program. ';
    fnd_file.put_line (fnd_file.LOG, gv_debug_name);
    RAISE general_error;
    ELSE
    COMMIT;
    fnd_file.put_line (fnd_file.LOG,
    'draft revenue program. Request Id:'
    || TO_CHAR (v_fc_req_id)
    END IF;
    Here is the log for the request submitted via fnd_request.submit_request.
    Projects: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    PARGDR_SINGLE module: PRC: Generate Draft Revenue for a Single Project
    Current system time is 13-AUG-2009 18:59:19
    Entering parmai()
    ...Connected to Oracle
    Accrue Thru date from Command line is : 2009/08/31 00:00:00
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    PA: Error - Entered Accrue through date is not within open/future PA period
    Exceptions posted by this request:
    Concurrent Request for "PRC: Generate Draft Revenue for a Single Project" has completed with error.
    Concurrent request completed
    Current system time is 13-AUG-2009 18:59:20
    Here is the log for the request submitted via the application
    Projects: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    PARGDR_SINGLE module: PRC: Generate Draft Revenue for a Single Project
    Current system time is 10-AUG-2009 17:12:11
    Entering parmai()
    ...Connected to Oracle
    Accrue Thru date from Command line is : 2009/08/31 00:00:00
    project:196 delete:N regenerate:Y acc_thru_dt:2009/08/31
    start project: end project:
    Operating unit is 153Revenue is running in Normal revenue mode
    Revenue is not based on specific project type...
    Revenue is not based on specific organization...
    Revenue is not based on specific customer...
    Revenue is not based on specific Agreement...
    Revenue is running for MCB/Non MCB projects...
    Revenue is running for Unrelease revenue mode...
    Revenue is not creating the detail report ...
    Revenue Processing Parameter List
    =================================
    -------------- < parameter list > -----------------------
    Accru Through Date ----------------------------------------> 2009/08/31
    Project ID ------------------------------------------------> 196
    From Project Number --------------------------------------->
    To Project Number ----------------------------------------->
    Adjusting Revenue Run -------------------------------------> No
    Project Type ID -----------------------------------------> 0
    Organization ID ------------------------------------------> 0
    Customer ID ----------------------------------------------> 0
    Agreement ID ----------------------------------------------> 0
    Multi Currency Projects -----------------------------------> No
    Release Draft Revenue -------------------------------------> No
    Include Detail Report -------------------------------------> No
    -------------- < End of parameter list > -----------------------
    ...Request ID = 714111
    This concurrent request is not being rescheduled
    Current system time is 10-AUG-2009 17:12:11
    ...about to delete revenue for project id 196
    ...0 draft revenues deleted
    Current system time is 10-AUG-2009 17:12:11
    ...about to process adjustments
    SELECT p.project_id, p.segment1,
    p.distribution_rule, p.project_level_funding_flag,p.project_currency_code,
    p.project_bil_rate_date_code,
    p.project_bil_rate_type,
    to_char(p.project_bil_rate_date,'YYYY/MM/DD'),
    p.project_bil_exchange_rate,
    p.projfunc_currency_code,
    p.projfunc_bil_rate_date_code,
    p.projfunc_bil_rate_type,
    to_char(p.projfunc_bil_rate_date,'YYYY/MM/DD'),
    p.projfunc_bil_exchange_rate,
    p.revproc_currency_code,
    p.funding_rate_date_code,
    p.funding_rate_type,
    to_char(p.funding_rate_date,'YYYY/MM/DD'),
    p.funding_exchange_rate,
    p.multi_currency_billing_flag,
    p.assign_precedes_task,
    p.enable_top_task_customer_flag,
    p.enable_top_task_inv_mth_flag,
    nvl(p.inv_by_bill_trans_curr_flag, 'N'),
    nvl(p.revtrans_currency_type, 'PROJ_FUNC_CURR_ONLY')
    FROM pa_projects p, pa_project_types t
    WHERE p.project_id = :project_id
    AND pa_project_utils.check_prj_stus_action_allowed(p.project_status_code,'GENERATE_REV') = 'Y'
    AND :start_project_number||'x' != :end_project_number||'y'
    AND p.project_type = t.project_type
    AND t.project_type_class_code = 'CONTRACT'
    AND EXISTS (SELECT /*+ INDEX(pf pa_summary_project_fundings_u1)*/ NULL
    FROM pa_summary_project_fundings pf
    WHERE pf.project_id = p.project_id
    AND nvl(pf.revproc_baselined_amount, 0) != 0)
    AND NOT EXISTS
    (SELECT NULL
    FROM pa_draft_revenues r2
    WHERE r2.project_id = p.project_id
    AND r2.released_date||'' is null
    AND r2.generation_error_flag||'' = decode(:mass_gen,
    1, 'Y', r2.generation_error_flag)
    AND (EXISTS (SELECT NULL
    FROM pa_expenditure_items_all i
    WHERE i.project_id = p.project_id
    AND i.cost_distributed_flag ||''= 'Y'
    AND i.revenue_distributed_flag = 'N'
    AND i.expenditure_item_date
    <= NVL(TO_DATE(:acc_thru_dt,'YYYY/MM/DD'),sysdate)
    AND (EXISTS (SELECT /*+ LEADING(l)*/ NULL
    FROM pa_draft_revenues r, pa_cust_rev_dist_lines l
    WHERE r.project_id = i.project_id
    AND ((l.expenditure_item_id = i.adjusted_expenditure_item_id AND i.adjusted_expenditure_item_id is not null )
    OR (l.expenditure_item_id = i.expenditure_item_id))
    AND NVL(l.reversed_flag,'N') = 'N'
    AND l.line_num_reversed IS NULL
    AND r.project_id = l.project_id
    AND r.draft_revenue_num = l.draft_revenue_num
    AND (r.released_date||'' is not null
    OR r.generation_error_flag||'' = decode(:mass_gen,
    1, 'N', 'E')))
    or exists (
    select 1 from pa_expenditure_items ei2
    where ei2.project_id = i.project_id
    and ei2.expenditure_item_id=i.adjusted_expenditure_item_id
    and ei2.revenue_distributed_flag='Y'
    and ei2.raw_revenue=0))
    union all
    SELECT /*+ LEADING(v)*/NULL
    FROM pa_events v
    WHERE v.project_id = p.project_id
    AND ((v.revenue_distributed_flag = 'N'
    AND v.completion_date
    <= NVL(TO_DATE(:acc_thru_dt,'YYYY/MM/DD'),sysdate))
    OR (substr(p.distribution_rule,1,4) = 'COST'
    AND v.revenue_distributed_flag = 'Y'
    AND v.completion_date
    > NVL(TO_DATE('2009/08/31','YYYY/MM/DD'), sysdate)))
    AND (DECODE(NVL(v.bill_trans_rev_amount, 0), 0 ,
    DECODE(NVL(v.zero_revenue_amount_flag, 'N'), 'Y', 1, 0),1) = 1)
    AND NVL(revenue_hold_flag, 'N') = 'N'
    AND EXISTS (
    SELECT NULL
    FROM pa_tasks t
    WHERE v.task_id is not NULL
    AND t.ready_to_distribute_flag = 'Y'
    AND v.task_id = t.task_id
    UNION ALL
    SELECT NULL
    FROM pa_tasks t1
    WHERE v.task_id is NULL
    AND t1.ready_to_distribute_flag = 'Y'
    AND v.project_id = t1.project_id )
    AND Exists (select null from pa_draft_revenues r,pa_cust_event_rev_dist_lines l
    where l.project_id = v.project_id
    AND ( l.task_id = v.task_id OR v.task_id is NULL )
    AND l.event_num = v.event_num
    AND NVL(l.reversed_flag,'N') = 'N'
    AND l.line_num_reversed IS NULL
    AND r.project_id = v.project_id
    AND r.draft_revenue_num = l.draft_revenue_num
    AND (r.released_date||'' is not null
    OR r.generation_error_flag||'' = decode(:mass_gen,
    1, 'N', 'E')))
    union all
    SELECT /*+ USE_CONCAT */ NULL
    FROM PA_Billing_Extensions be, PA_Billing_Assignments bea
    WHERE bea.active_flag = 'Y'
    AND bea.billing_extension_id = be.billing_extension_id
    AND (bea.project_id = p.project_id
    OR bea.project_type = p.project_type
    OR bea.distribution_rule = p.distribution_rule)
    AND be.calling_process in ('Revenue','Both')
    AND nvl(be.call_after_adj_flag, 'N') = 'Y'
    AND be.trx_independent_flag = 'Y'))
    Current system time is 10-AUG-2009 17:12:11
    ...0 projects processed for adjustments
    Current system time is 10-AUG-2009 17:12:11
    ...about to generate revenue for project id 196
    ...Fetching next project
    Current system time is 10-AUG-2009 17:12:11
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'PRE', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'PRE', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Leaving pauoarchn()
    ...no rows to process for this project.
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for project id 196, number 72DM000001
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    l_inv_by_btc_flag is ...N
    l_mcb_flag is ...Y
    l_rpc_code is ...GBP
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    ...Else loop 1
    ...else loop 2
    ...else loop 4
    ...else loop 5
    ...non_zero_amount
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    ...Else loop 1
    ...else loop 2
    ...else loop 4
    ...else loop 5
    ...non_zero_amount
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for automatic events for project id 196, number 72DM000001 calling loc REG
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'POST-REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'POST-REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for automatic events for project id 196, number 72DM000001 calling loc POST-REG
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'POST', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'POST', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...Fetching next project
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...about to call AutoAccounting
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Entering pafvsu
    Allocating pafvcs structure
    Allocating memory for structure, fdfkai
    Allocating memory for structure, fdfkao
    Allocating flex input and output structure
    Assigning ptype
    Calling pagtfn
    Nullig out
    Setting everything that does not need to be allocated
    Allocating optional arrays
    Checking a_line_id
    Checking a_trans_ind
    Checking a_param_lst
    Checking a_extra_atr
    Allocating required array
    Allocating auto accounting elements
    Describing kff and control processing options
    Tune flex validation system options
    Allocate main cache
    Allocate additional memory for main cache
    Allocate ksv if needed
    Store pointer to text strings in last ksv element so we can free later
    val [¿], segval [00000000]
    val [00000000], segval [000000]
    val [000000], segval [7210OCOA01]
    val [7210OCOA01], segval [0000]
    val [0000], segval [72OXLFTG]
    val [72OXLFTG], segval [66101010]
    val [66101010], segval [7210]
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...returned from AutoAccounting
    ...about to update pe_expenditures_all for intercompany processing
    Current system time is 10-AUG-2009 17:12:11
    Entering parddl()
    ...setting error codes and bad code combination id to null
    ... Update draft revenues for marking autoaccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update draft revenues without generation error to normal state
    Current system time is 10-AUG-2009 17:12:11
    1 rows updated.
    ... Update pa_cust_event_rev_dist_lines for setting bad CCID to null
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_events for marking AutoAccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_events for setting revenue_distributed_flag to 'N'
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_cust_rev_dist_lines for setting bad CCID to null
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_expenditure_items_all for marking AutoAccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_expenditure_items_all for setting revenue_distributed_flag to 'N'
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    Leaving parddl()
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated with Generation error due to ccid=-1
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated with Generation error PA_REV_GEN_ERROR
    Current system time is 10-AUG-2009 17:12:11
    ...1 projects processed for revenue generation
    Deleting automatic event for which revenue has generation error
    Current system time is 10-AUG-2009 17:12:11
    ...about to update proj summary funding amounts
    executing pa_billing.check_spf_amounts('B',196, , ) Calling check_spf_amounts...Inside the Single projects If
    Current system time is 10-AUG-2009 17:12:11
    ...about to generate reports
    SEL-SUC:72DM000001 4 1048 BP Exploration Operating DML 101 31-AUG-09 121659.83
    Current system time is 10-AUG-2009 17:12:12
    ...completed generating reports
    Process completed.
    0 rows deleted from distribution_warnings table.
    Start of log messages from FND_FILE
    Request id is :714111
    Before calling the insert event for top task_id :19839
    Parameters to the insert event API :
    Revenue amount is :12106.73
    Bill amount is :12106.73
    Project id is :196
    Event Type is :BILLING
    Top Task id is :19839
    organization id is :239
    completion date is :31-AUG-2009
    event description is :Financing Fee
    Return status after calling insert event is :0
    error message after calling insert event is :
    Before calling the insert event for top task_id :14612
    Parameters to the insert event API :
    Revenue amount is :109553.1
    Bill amount is :109553.1
    Project id is :196
    Event Type is :BILLING
    Top Task id is :14612
    organization id is :239
    completion date is :31-AUG-2009
    event description is :Expenditure
    Return status after calling insert event is :0
    error message after calling insert event is :
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PRINT   -------------
    Printing output file.
    Request ID : 714111
    Number of copies : 0
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 10-AUG-2009 17:12:12
    ---------------------------------------------------------------------------

    Hi srini,
    For the request submitted via the application and for the request submitted by fnd_request.submit_request, argument4 has the same value 2009/08/31 00:00:00
    Thanks

  • Error while using FND_REQUEST.SUBMIT_REQUEST

    Hi,
    While using the function FND_REQUEST.SUBMIT_REQUEST i am getting an error *' PLS-00302: component 'SUMBIT_REQUEST' must be declared'*
    I have passed the required paramerters like application short name, concurrent program short name,null,null,false,and the concurrent program parameters.
    FND_REQUEST.SUBMIT_REQUEST('XXAAA','XX_CON_SHORTNAME',null,null,false,v_path)
    The parameter description=> null
    The parameter start_time=> null
    The parameter sub_request=>false
    Please help why i am getting the error *' PLS-00302: component 'SUMBIT_REQUEST' must be declared'*
    Thanks in advance.
    RS

    Pl post details of OS, database and EBS versions, along with the code you are executing and how you are executing it.
    See these MOS Docs for sample code
    Sample PLSQL Script to Call Autoinvoice Import Program RAXTRX Using FND_REQUEST.SUBMIT_REQUEST in Release 12 (Doc ID 1127399.1)
    How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST (Doc ID 235359.1)
    Sample Code to Call Customer Interface RACUST Program using FND_SUBMIT Api in 11i and R12          (Doc ID 429278.1)
    HTH
    Srini

  • FND_REQUEST.SUBMIT_REQUEST always return 0

    I am trying to submit a Custom Report from a Custom PL SQL Concurrent Program
    in 11.5.10.2 Apps Environment.
    The Syntax used is
    fnd_file.put_line(fnd_file.log, 'Starting....');
    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_file.put_line(fnd_file.log, v_user_id);
    fnd_file.put_line(fnd_file.log, v_resp_id);
    fnd_file.put_line(fnd_file.log, v_resp_appl_id);
    fnd_global.apps_initialize(v_user_id,v_resp_id,v_resp_appl_id);
    fnd_file.put_line(fnd_file.log, 'Ending....');
    request_id := fnd_request.submit_request('SQLAP','OCAPGLCP', NULL,
    NULL,TRUE,pi_period_name,chr(0));
    COMMIT;
    IF request_id = 0 THEN
    fnd_file.put_line(fnd_file.log, 'Request Not Submitted.');
    ELSE
    call_status := fnd_concurrent.wait_for_request(request_id,
    v_interval,
    v_max_wait,
    request_phase,
    request_status,
    dev_request_phase,
    dev_request_status,
    request_status_mesg);
    COMMIT;
    END IF;
    The parent request should call the OCAPGLCP concurrent program. But the Parent program completes sucessfully without submitting OCAPGLCP and request_id value is always 0. Please advice a solution as i am badly stuck in with no way out...Please help me out
    Thanks in Advance..
    Kuntal

    Hi all,
    i have some issue and maybe related to some things discussed here...
    I'm doing a submit_request + commit
    Working fine...
    Then I'm doing a select conc_prog_id into var from fnd_concurrent_requests where request_id = the request id from the submitted request above.
    Working fine...
    Then I'm doing a wait_for_request and this function gives me back: FALSE...
    What's wrong??
    If you look into the wait_for_request function... no specific error messages are specified... only a CP-generic... if I go look for it in the fnd_new_messages table nothing to find...
    Regards,
    Stijn

  • Fnd_request.submit_request is returning 0

    hi all i have written a pl/sql procedure in sql*plus with apps as user(global user).
    the procudure is executing with out any execptions but is returning 0
    my procedure is
    Here my executable shortname is FNDSCURS(for all names while defining the concurrent program i used FNDSCURS to avoid ambiguity)
    CREATE OR REPLACE PROCEDURE PROC AS
    l_request_id number;
    DATE_MASK varchar2(30) := 'DD-MON-RRRR HH24:MI:SS';
    begin
    l_request_id := FND_REQUEST.SUBMIT_REQUEST('FND',
    'FNDSCURS',
    'NUMBER OF ACTIVE USERS',
    TO_CHAR(SYSDATE,DATE_MASK),FALSE,
    chr(0),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,NULL
    dbms_output.put_line('the request id is' ||l_request_id);
    IF l_request_id = 0 THEN
    DBMS_OUTPUT.PUT_LINE('Program submission FOR ACTIVE USERS
    is failure');
    else
    DBMS_OUTPUT.PUT_LINE('Program submission FOR ACTIVE USER
    IS SUECCESS id='||l_request_id);
    commit;
    End if;
    exception
    when others then
    dbms_output.put_line('exception occured');
    end;
    the ouput of above procedure is coming like
    SQL> exec proc
    the request id is0
    Program submission FOR ACTIVE USERS
    is failure
    please tell where i am going wrong
    thanks in advance

    So, the value returned from FND_REQUEST.SUBMIT_REQUEST is zero.
    However, you haven't posted the code for this procedure so we can't say why can we?
    cheers,
    Anthony

  • FND_REQUEST.SUBMIT_REQUEST via forms erroring in CM with PLS-00306

    Hello,
    I have a form that needs to submit a custom concurrent program when a button is pressed on a form. The code is in the when-button-pressed trigger and is as follows:
    declare
         v_req_id NUMBER;
         v_project_name VARCHAR2(32);
         v_subject VARCHAR2(70);
         v_message VARCHAR2(240);
         v_email_from VARCHAR2(30):= 'PROJECT_EMAIL';
         v_email_to VARCHAR2(30):= 'BONNI_SMITH';
         v_yes_no VARCHAR2(1) := 'Y';
    begin
         select :TFN_PROJECT_DETAILS.project_num||' '||:tfn_project_details.project_desc
         into v_project_name
         from dual;
         select 'PROJECT '||:tfn_project_details.project_num||' NOTIFICATION'
         into v_subject
         from dual;
         select v_project_name||' project has been created in the project system'
         into v_message
         from dual;
         FND_MESSAGE.DEBUG('proj name: '||V_PROJECT_NAME);
         FND_MESSAGE.DEBUG('message: '||V_MESSAGE);
         FND_MESSAGE.DEBUG('subject: '||V_SUBJECT);
    v_req_id := FND_REQUEST.SUBMIT_REQUEST
    ('TALBOTS',
    'TFNSENDEMAIL',
    'TFN_PROJECT_DETAILS',
    FALSE,
    v_email_from,
    v_email_to,
    v_subject,
    v_message,
    v_yes_no,
         FND_MESSAGE.DEBUG(v_req_id);
    IF (v_req_id = 0) then
    fnd_message.retrieve;
    fnd_message.error;
    Raise Form_Trigger_Failure;
    ELSE
         FND_MESSAGE.SET_STRING('Email Request submitted. Request ID '|| v_req_id);
    fnd_message.show;
    :tfn_project_details.last_email_date := sysdate;
    APP_STANDARD.EVENT('KEY-COMMIT');
    END IF;
    end;
    This code gives me an error in the request log of: PLS-00306: wrong number or types of arguments in call to 'SEND_EMAIL'
    I have verified that the type of the arguments is correct, so I am assuming that it is upset over the number? I have recounted several times and come up with the 100 required. I have also changed the parameters from hard-coded to parameters and it has made no difference. I even put an 'x' in the last parameter to make sure that the entire string is being passed, and when I look in the request sable it is there in the table data as the 100th parm. I have made sure that the varaibles in the trigger match the lengths and types of the parameters in the CM program.
    I have practically the same trigger submitting a different CM job and it works perfectly. Both CM requests are custom host scripts.
    Can anyone offer help on this?

    I shortened the code and the error is:
    "could not be evaluated because of error ORA-00923: FROM keyword not found where expected"
    This isn't of much help to me.
    Edited by: user11970177 on Mar 4, 2011 7:06 AM

  • Fnd_request.submit_request issue with PA_SRS_DATES2 value set.

    Hi,
    We are applications 12.0.6 with 10.2.0.3.0 database. I'm trying to submit the "PRC: Generate Draft Revenue for a Single Project" through fnd_request.submit_request and is erroring out with "PA: Error - Entered Accrue through date is not within open/future PA period". I'm able to run the same program from the application with the same parameters. I'm passing Accue date of 2009/08/31 00:00:00 from the program and I can see the same value when submitted frm the applications also.
    Value set for this Accrue date parameter is "PA_SRS_DATES2". It is setup as format type "Standard Date" and maximum size is 11.
    Thanks for your help,
    Shree.
    Here is the script
    SELECT TO_CHAR (rec1.per_end_date, 'RRRR/MM/DD HH24:MI:SS')
    INTO v_rev_accrue
    FROM DUAL;
    fnd_file.put_line (fnd_file.LOG,
    'Revenue Accrue Date is :' || v_rev_accrue
    fnd_file.put_line (fnd_file.LOG, 'Parameters for GDR :');
    fnd_file.put_line (fnd_file.LOG,
    'Argument1 is :' || TO_CHAR (rec1.project_id)
    fnd_file.put_line (fnd_file.LOG, 'Argument4 is :' || v_rev_accrue);
    v_fc_req_id :=
    fnd_request.submit_request (application => 'PA',
    program => 'PARGDR_SINGLE',
    sub_request => FALSE,
    start_time => NULL,
    argument1 => rec1.project_id,
    argument2 => 'N',
    argument3 => 'Y',
    argument4 => v_rev_accrue,
    argument5 => NULL,
    argument6 => NULL,
    argument7 => NULL,
    argument8 => NULL,
    argument9 => NULL,
    argument10 => NULL,
    argument11 => 'Y',
    argument12 => 'N',
    argument13 => NULL,
    argument14 => NULL,
    argument15 => NULL,
    argument16 => NULL,
    argument17 => NULL,
    argument18 => 'N',
    argument19 => 'N',
    argument20 => 'N'
    IF NVL (v_fc_req_id, 0) = 0
    THEN
    gv_debug_name :=
    'Error in Submitting the draft revenue program program. ';
    fnd_file.put_line (fnd_file.LOG, gv_debug_name);
    RAISE general_error;
    ELSE
    COMMIT;
    fnd_file.put_line (fnd_file.LOG,
    'draft revenue program. Request Id:'
    || TO_CHAR (v_fc_req_id)
    END IF;
    Here is the log for the request submitted via fnd_request.submit_request.
    Projects: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    PARGDR_SINGLE module: PRC: Generate Draft Revenue for a Single Project
    Current system time is 13-AUG-2009 18:59:19
    Entering parmai()
    ...Connected to Oracle
    Accrue Thru date from Command line is : 2009/08/31 00:00:00
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    PA: Error - Entered Accrue through date is not within open/future PA period
    Exceptions posted by this request:
    Concurrent Request for "PRC: Generate Draft Revenue for a Single Project" has completed with error.
    Concurrent request completed
    Current system time is 13-AUG-2009 18:59:20
    Here is the log for the request submitted via the application
    Projects: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    PARGDR_SINGLE module: PRC: Generate Draft Revenue for a Single Project
    Current system time is 10-AUG-2009 17:12:11
    Entering parmai()
    ...Connected to Oracle
    Accrue Thru date from Command line is : 2009/08/31 00:00:00
    project:196 delete:N regenerate:Y acc_thru_dt:2009/08/31
    start project: end project:
    Operating unit is 153Revenue is running in Normal revenue mode
    Revenue is not based on specific project type...
    Revenue is not based on specific organization...
    Revenue is not based on specific customer...
    Revenue is not based on specific Agreement...
    Revenue is running for MCB/Non MCB projects...
    Revenue is running for Unrelease revenue mode...
    Revenue is not creating the detail report ...
    Revenue Processing Parameter List
    =================================
    -------------- < parameter list > -----------------------
    Accru Through Date ----------------------------------------> 2009/08/31
    Project ID ------------------------------------------------> 196
    From Project Number --------------------------------------->
    To Project Number ----------------------------------------->
    Adjusting Revenue Run -------------------------------------> No
    Project Type ID -----------------------------------------> 0
    Organization ID ------------------------------------------> 0
    Customer ID ----------------------------------------------> 0
    Agreement ID ----------------------------------------------> 0
    Multi Currency Projects -----------------------------------> No
    Release Draft Revenue -------------------------------------> No
    Include Detail Report -------------------------------------> No
    -------------- < End of parameter list > -----------------------
    ...Request ID = 714111
    This concurrent request is not being rescheduled
    Current system time is 10-AUG-2009 17:12:11
    ...about to delete revenue for project id 196
    ...0 draft revenues deleted
    Current system time is 10-AUG-2009 17:12:11
    ...about to process adjustments
    SELECT p.project_id, p.segment1,
    p.distribution_rule, p.project_level_funding_flag,p.project_currency_code,
    p.project_bil_rate_date_code,
    p.project_bil_rate_type,
    to_char(p.project_bil_rate_date,'YYYY/MM/DD'),
    p.project_bil_exchange_rate,
    p.projfunc_currency_code,
    p.projfunc_bil_rate_date_code,
    p.projfunc_bil_rate_type,
    to_char(p.projfunc_bil_rate_date,'YYYY/MM/DD'),
    p.projfunc_bil_exchange_rate,
    p.revproc_currency_code,
    p.funding_rate_date_code,
    p.funding_rate_type,
    to_char(p.funding_rate_date,'YYYY/MM/DD'),
    p.funding_exchange_rate,
    p.multi_currency_billing_flag,
    p.assign_precedes_task,
    p.enable_top_task_customer_flag,
    p.enable_top_task_inv_mth_flag,
    nvl(p.inv_by_bill_trans_curr_flag, 'N'),
    nvl(p.revtrans_currency_type, 'PROJ_FUNC_CURR_ONLY')
    FROM pa_projects p, pa_project_types t
    WHERE p.project_id = :project_id
    AND pa_project_utils.check_prj_stus_action_allowed(p.project_status_code,'GENERATE_REV') = 'Y'
    AND :start_project_number||'x' != :end_project_number||'y'
    AND p.project_type = t.project_type
    AND t.project_type_class_code = 'CONTRACT'
    AND EXISTS (SELECT /*+ INDEX(pf pa_summary_project_fundings_u1)*/ NULL
    FROM pa_summary_project_fundings pf
    WHERE pf.project_id = p.project_id
    AND nvl(pf.revproc_baselined_amount, 0) != 0)
    AND NOT EXISTS
    (SELECT NULL
    FROM pa_draft_revenues r2
    WHERE r2.project_id = p.project_id
    AND r2.released_date||'' is null
    AND r2.generation_error_flag||'' = decode(:mass_gen,
    1, 'Y', r2.generation_error_flag)
    AND (EXISTS (SELECT NULL
    FROM pa_expenditure_items_all i
    WHERE i.project_id = p.project_id
    AND i.cost_distributed_flag ||''= 'Y'
    AND i.revenue_distributed_flag = 'N'
    AND i.expenditure_item_date
    <= NVL(TO_DATE(:acc_thru_dt,'YYYY/MM/DD'),sysdate)
    AND (EXISTS (SELECT /*+ LEADING(l)*/ NULL
    FROM pa_draft_revenues r, pa_cust_rev_dist_lines l
    WHERE r.project_id = i.project_id
    AND ((l.expenditure_item_id = i.adjusted_expenditure_item_id AND i.adjusted_expenditure_item_id is not null )
    OR (l.expenditure_item_id = i.expenditure_item_id))
    AND NVL(l.reversed_flag,'N') = 'N'
    AND l.line_num_reversed IS NULL
    AND r.project_id = l.project_id
    AND r.draft_revenue_num = l.draft_revenue_num
    AND (r.released_date||'' is not null
    OR r.generation_error_flag||'' = decode(:mass_gen,
    1, 'N', 'E')))
    or exists (
    select 1 from pa_expenditure_items ei2
    where ei2.project_id = i.project_id
    and ei2.expenditure_item_id=i.adjusted_expenditure_item_id
    and ei2.revenue_distributed_flag='Y'
    and ei2.raw_revenue=0))
    union all
    SELECT /*+ LEADING(v)*/NULL
    FROM pa_events v
    WHERE v.project_id = p.project_id
    AND ((v.revenue_distributed_flag = 'N'
    AND v.completion_date
    <= NVL(TO_DATE(:acc_thru_dt,'YYYY/MM/DD'),sysdate))
    OR (substr(p.distribution_rule,1,4) = 'COST'
    AND v.revenue_distributed_flag = 'Y'
    AND v.completion_date
    > NVL(TO_DATE('2009/08/31','YYYY/MM/DD'), sysdate)))
    AND (DECODE(NVL(v.bill_trans_rev_amount, 0), 0 ,
    DECODE(NVL(v.zero_revenue_amount_flag, 'N'), 'Y', 1, 0),1) = 1)
    AND NVL(revenue_hold_flag, 'N') = 'N'
    AND EXISTS (
    SELECT NULL
    FROM pa_tasks t
    WHERE v.task_id is not NULL
    AND t.ready_to_distribute_flag = 'Y'
    AND v.task_id = t.task_id
    UNION ALL
    SELECT NULL
    FROM pa_tasks t1
    WHERE v.task_id is NULL
    AND t1.ready_to_distribute_flag = 'Y'
    AND v.project_id = t1.project_id )
    AND Exists (select null from pa_draft_revenues r,pa_cust_event_rev_dist_lines l
    where l.project_id = v.project_id
    AND ( l.task_id = v.task_id OR v.task_id is NULL )
    AND l.event_num = v.event_num
    AND NVL(l.reversed_flag,'N') = 'N'
    AND l.line_num_reversed IS NULL
    AND r.project_id = v.project_id
    AND r.draft_revenue_num = l.draft_revenue_num
    AND (r.released_date||'' is not null
    OR r.generation_error_flag||'' = decode(:mass_gen,
    1, 'N', 'E')))
    union all
    SELECT /*+ USE_CONCAT */ NULL
    FROM PA_Billing_Extensions be, PA_Billing_Assignments bea
    WHERE bea.active_flag = 'Y'
    AND bea.billing_extension_id = be.billing_extension_id
    AND (bea.project_id = p.project_id
    OR bea.project_type = p.project_type
    OR bea.distribution_rule = p.distribution_rule)
    AND be.calling_process in ('Revenue','Both')
    AND nvl(be.call_after_adj_flag, 'N') = 'Y'
    AND be.trx_independent_flag = 'Y'))
    Current system time is 10-AUG-2009 17:12:11
    ...0 projects processed for adjustments
    Current system time is 10-AUG-2009 17:12:11
    ...about to generate revenue for project id 196
    ...Fetching next project
    Current system time is 10-AUG-2009 17:12:11
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'PRE', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'PRE', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Leaving pauoarchn()
    ...no rows to process for this project.
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for project id 196, number 72DM000001
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    l_inv_by_btc_flag is ...N
    l_mcb_flag is ...Y
    l_rpc_code is ...GBP
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    ...Else loop 1
    ...else loop 2
    ...else loop 4
    ...else loop 5
    ...non_zero_amount
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    ...Else loop 1
    ...else loop 2
    ...else loop 4
    ...else loop 5
    ...non_zero_amount
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for automatic events for project id 196, number 72DM000001 calling loc REG
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'POST-REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'POST-REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for automatic events for project id 196, number 72DM000001 calling loc POST-REG
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'POST', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'POST', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...Fetching next project
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...about to call AutoAccounting
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Entering pafvsu
    Allocating pafvcs structure
    Allocating memory for structure, fdfkai
    Allocating memory for structure, fdfkao
    Allocating flex input and output structure
    Assigning ptype
    Calling pagtfn
    Nullig out
    Setting everything that does not need to be allocated
    Allocating optional arrays
    Checking a_line_id
    Checking a_trans_ind
    Checking a_param_lst
    Checking a_extra_atr
    Allocating required array
    Allocating auto accounting elements
    Describing kff and control processing options
    Tune flex validation system options
    Allocate main cache
    Allocate additional memory for main cache
    Allocate ksv if needed
    Store pointer to text strings in last ksv element so we can free later
    val [¿], segval [00000000]
    val [00000000], segval [000000]
    val [000000], segval [7210OCOA01]
    val [7210OCOA01], segval [0000]
    val [0000], segval [72OXLFTG]
    val [72OXLFTG], segval [66101010]
    val [66101010], segval [7210]
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...returned from AutoAccounting
    ...about to update pe_expenditures_all for intercompany processing
    Current system time is 10-AUG-2009 17:12:11
    Entering parddl()
    ...setting error codes and bad code combination id to null
    ... Update draft revenues for marking autoaccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update draft revenues without generation error to normal state
    Current system time is 10-AUG-2009 17:12:11
    1 rows updated.
    ... Update pa_cust_event_rev_dist_lines for setting bad CCID to null
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_events for marking AutoAccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_events for setting revenue_distributed_flag to 'N'
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_cust_rev_dist_lines for setting bad CCID to null
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_expenditure_items_all for marking AutoAccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_expenditure_items_all for setting revenue_distributed_flag to 'N'
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    Leaving parddl()
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated with Generation error due to ccid=-1
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated with Generation error PA_REV_GEN_ERROR
    Current system time is 10-AUG-2009 17:12:11
    ...1 projects processed for revenue generation
    Deleting automatic event for which revenue has generation error
    Current system time is 10-AUG-2009 17:12:11
    ...about to update proj summary funding amounts
    executing pa_billing.check_spf_amounts('B',196, , ) Calling check_spf_amounts...Inside the Single projects If
    Current system time is 10-AUG-2009 17:12:11
    ...about to generate reports
    SEL-SUC:72DM000001 4 1048 AP Exploration Operating DML 101 31-AUG-09 121659.83
    Current system time is 10-AUG-2009 17:12:12
    ...completed generating reports
    Process completed.
    0 rows deleted from distribution_warnings table.
    Start of log messages from FND_FILE
    Request id is :714111
    Before calling the insert event for top task_id :19839
    Parameters to the insert event API :
    Revenue amount is :12106.73
    Bill amount is :12106.73
    Project id is :196
    Event Type is :BILLING
    Top Task id is :19839
    organization id is :239
    completion date is :31-AUG-2009
    event description is :Financing Fee
    Return status after calling insert event is :0
    error message after calling insert event is :
    Before calling the insert event for top task_id :14612
    Parameters to the insert event API :
    Revenue amount is :109553.1
    Bill amount is :109553.1
    Project id is :196
    Event Type is :BILLING
    Top Task id is :14612
    organization id is :239
    completion date is :31-AUG-2009
    event description is :Expenditure
    Return status after calling insert event is :0
    error message after calling insert event is :
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PRINT   -------------
    Printing output file.
    Request ID : 714111
    Number of copies : 0
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 10-AUG-2009 17:12:12
    ---------------------------------------------------------------------------

    Duplicate thread.
    fnd_request.submit_request error with PA_SRS_DATES2 value set
    fnd_request.submit_request error with PA_SRS_DATES2 value set

  • Problem with FND_REQUEST.SUBMIT_REQUEST

    Hi Viewers,
    call to FND_REQUEST.SUBMIT_REQUEST
    from server side plsql stored procedure returns 0 ,
    this is my error ( getting return 0)..
    i need the solution with example...
    help me please..
    bye...
    hema

    Hi All,
    just checked metalink and this is the fix:
    The sub_request flag TRUE has specific purpose. Is used for submitting the
    report set where a master program spawns many child requests and informs
    whether the whole set of requests failed or passed.
    If submit a request from within another program and the newly submitted request
    is running independently of the current program do not set sub_request to TRUE.
    refer :metalink.
    Subject: Using FND_REQUEST.SUBMIT_REQUEST With Flag SUB_REQUESTS=TRUE Results in 'Inactive No Manager'
    Doc ID: Note:249105.1 Type: PROBLEM
    Last Revision Date: 05-DEC-2003 Status: PUBLISHED
    Lesson for me : Do research in Metalink First :D.
    thanks for your time.
    abdul rahman

  • FND_REQUEST.SUBMIT_REQUEST is not working in After Report Trigger Reports6i

    Hi Guys,
    I am calling the another conc program in After report trigger using FND_REQUEST.SUBMIT_REQUEST. The below are the statement which i use in my program.
    req_id := FND_REQUEST.SUBMIT_REQUEST('APPL_SHORT','CONC_SHORT',NULL,NULL,FALSE);
    I have also use the SRW.USER_EXIT('FND SRWINIT') in Before Report Trigger and SRW.USER_EXIT('FND SRWEXIT') in After Report Trigger also.
    I am getting the error in Log file saying that
    REP-0736: There exist uncompiled program unit(s).
    REP-1247: Report Contains uncompiled PL/SQL.
    Quick Response is highly appreciated.
    Thanks in Advance.
    Regards
    Madhan.S

    Hi Sawwan,
    I was compiled in Unix platform also. If i comment that FND_REQUEST.SUBMIT_REQUEST line it executes fine. It gives the same error in Unix also.
    Can anyone pls help this issue.
    Thanks in Advance.
    Regards
    Madhan.S

  • XML publisher report thru fnd_request.submit_request

    Hi All,
    I have oracle application 11.5.10.2 and created many XML publisher reports in RTF format (RDF as a source of XML output) . Now i want to run these reports thru fnd_request.submit_request and generate report output in PDF.
    I have successfully submitted request with required report parameters and request successfully complete without any error but concurrent program does not generate any report output.
    If i run this report as a text output then i get report output thru fnd_request.submit_request.
    Can any one tell me about solution?
    Thanks
    XMLP User

    Try to post your query in the 'XML Publisher' forum, you might get more help:
    BI Publisher

  • Fnd_request.submit_request CESQLLDR

    Hi Techies,
    DECLARE
    l_request_id NUMBER;
    l_resp_id FND_USER_RESP_GROUPS.RESPONSIBILITY_ID%type;
    l_resp_appl_id fnd_user_resp_groups.responsibility_application_id%TYPE;
    BEGIN
    --Derive Responsibility Application ID and Responsibility ID
    BEGIN
    SELECT application_id,
    responsibility_id
    INTO l_resp_appl_id,
    l_resp_id
    FROM fnd_responsibility_vl
    WHERE responsibility_name = 'Cash Management Manager';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    dbms_output.put_line('No such responsiblity');
    WHEN OTHERS THEN
    dbms_output.put_line('2222'||DBMS_UTILITY.format_error_backtrace || '. SQLERRM: '|| SQLERRM);
    END;
    --Apps Initialize
    fnd_global.apps_initialize(2446, l_resp_id, l_resp_appl_id);
    --Submitting the standard Payable Invoice Import Program
    L_REQUEST_ID :=
    fnd_request.submit_request ( application => 'CE',
    program => 'CESQLLDR',
    description => NULL,
    start_time => NULL,
    sub_request => FALSE,
    argument1 => 'IMPORT',
    argument2 => 1002,
    ARGUMENT3 => '123.txt' ,
    argument4 => '$CE_TOP/bin',
    argument5 => 301369,
    ARGUMENT6 => 54124,
    argument7 => '2013/01/24 00:00:00',
    argument8 => NULL,
    argument9 => NULL,
    ARGUMENT10 => null,
    argument11 => NULL,
    ARGUMENT12 => 'N',
    argument13 => NULL
    COMMIT;
    DBMS_OUTPUT.PUT_LINE('L_REQUEST_ID==> '||L_REQUEST_ID);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(DBMS_UTILITY.format_error_backtrace || '. SQLERRM: '|| SQLERRM);
    END;
    After executing the above piece of code, encountering the below 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 'CALL_SQL_LOADER'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    The SQL statement bei"
    ------------------------------------------------------------------------

    If you can post the spec for CE_BANK_STMT_SQL_LDR package?
    In my version, 12.1.3, you are missing a parameter:
    /* $Header: cesqldrb.pls 120.7 2006/06/06 00:33:19 bhchung ship $     */
    ,argument14 => NULLI received your same error without argument14, and it ran without error when i added it.
    HTH,
    --Johnnie
    Edited by: Vortex13 on Jan 29, 2013 7:31 AM

  • How to set operating unit for FND_REQUEST.SUBMIT_REQUEST

    Hi,
    This may sound like an elimentary question but I am facing trouble while submitting PRC Transaction Import (PAXTRXTR) from PL/SQL. The concurrent request is created but it errors out as the operating unit field on the request id blank eventhough I have used mo_global.set_policy_context in below code. Since PAXTRXTR has multi_org_category set to S it expects a org_id while submitting.
    Can you figure out what is going wrong here.
    Following is the code I use
    DECLARE
    l_request_id NUMBER;
    v_msg varchar2(2000);
    BEGIN
    fnd_global.apps_initialize(43313,20433,275);
    mo_global.init('PA');
    mo_global.set_policy_context('S',1);
    dbms_output.put_line(mo_global.get_current_org_id);
    l_request_id := fnd_request.submit_request( 'PA'
    ,'PAXTRTRX'
    ,null,null,false
    ,'Unaccounted Web ADI'
    ,'test1'
    if l_request_id = 0 then
    FND_MESSAGE.RETRIEVE(MSGOUT => v_msg);
    dbms_output.put_line(v_msg);
    else
    commit;
    dbms_output.put_line(l_request_id);
    END IF;
    END;
    Thanks,
    Bhavesh

    What is the output you are getting after running the above code from backend?
    fnd_global.apps_initialize(43313,20433,275); is sufficient why do you want to set Policy context manually??

  • * Urgent FND_REQUEST.SUBMIT_REQUEST *

    Hi Gurus,
    I am having a problem in Oracle apps. I am calling the following function and running a shell script which has been registered in apps as "CPSINTA" and working fine if I run it using concorrent program. I need to run this from forms and I wrote the following code in forms. It does everything even it is returning the req_id. But it doesnt run the shell script. Any idea will be highly appreciated.
    :mmbs_interface_audit.req_id := FND_REQUEST.SUBMIT_REQUEST
                                         ( 'RP',
                                           'CPSINTA',
                                           'CPS:  move given file from MMBS_TOP/ARCHIVE to MMBS_TOP',
                                           FALSE,
                                           chr(0), v_filename||'.'||v_extension, '', '', '', '', '', '', '', '',
                                         ) ;Thanks in advance
    Ghulam

    Your logic implies you have to wait for the request to complete before continuing logic, so you'll either need to call wait_for_request or implement a similar mechanism yourself, so I doubt performance would be a consideration unless you have a lot of these jobs running at any given time. In which case you might want to consider some sort of queuing mechanism.
    With regards to optimal interval it is dependent on your requirements, and how long you expect the child program to run, I go for a 10 second wait generally.
    Regards,
    Gareth
    http://garethroberts.blogspot.com

Maybe you are looking for