FND_REQUEST.SUBMIT_REQUEST INCOIN not working...

This is for those of you who are OA users/developers:
I'm having trouble launching a concurrent request to import items with the following code. I've looked here and at Metalink, as well as the Oracle Applications Developer's Guide, but am still lost... Please help! :) My code:
declare
req_id number;
begin
req_id := FND_REQUEST.SUBMIT_REQUEST(
'INV', 'INCOIN', 'test', '21-OCT-05 00:00:00', FALSE, '84', '1',
'1', '1', '1', '431', '1');
if (req_id = 0) then
FND_MESSAGE.RETRIEVE;
FND_MESSAGE.ERROR;
dbms_output.put_line(req_id);
else
commit;
end if;
end;
Neither of the FND_MESSAGE.RETRIEVE or ERROR lines work at all, according to the manual, they should though. I'd just like to trap why the job doesn't get submitted. If I leave out the FND_MESSAGE lines, it runs fine (no errors), but my concurrent request doesn't get kicked off either...
Any help would guarantee a Christmas card this year! :)
Thanks a million!
Steve

Try executing this before your submit (make it the first line in your program):
fnd_global.apps_initialize(user_id, responsibility_id, application_id);
This 'simulates' a person actually signing on to the App. It sets up global variables and profile options. You'll have to lookup the values of the parameters manually, but they should be easy to find. Look in the FND_ tables.
This is just a guess, I don't know if it will help you. But whenever I've used built-in APIs I always call it just to be safe.
Here's some more info on the parameters:
SELECT RESPONSIBILITY_ID
FROM APPLSYS.FND_RESPONSIBILITY_TL
WHERE RESPONSIBILITY_NAME = 'xxx'; --< something like 'Inventory Manager' or whatever
SELECT USER_ID
FROM APPLSYS.FND_USER
WHERE USER_NAME = 'xxx'; --< person who can normally submit the import
SELECT APPLICATION_ID
FROM APPLSYS.FND_APPLICATION_TL
WHERE APPLICATION_NAME = 'xxx'; --< full name of INV ('Inventory' or maybe 'Oracle Inventory')
It's important that these 3 parameters represent an actual configured combination. That is, user_id must be a person assigned the responsibility_id, and that must be assigned to application_id. Just as if that person were signing on to the App.

Similar Messages

  • 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

  • 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 from Package

    Hi
    Receivables Module.
    We got a PL/SQL package in a concurrent request set working well with out any issues with the below FND_REQUEST.SUBMIT_REQUEST command
    req_id := APPS.Fnd_Request.SUBMIT_REQUEST('XXRBSI',l_program,'','',FALSE,
    p_order_by,p_transaction_class,p_transaction_type,p_transaction_number_low,p_transaction_number_high,
    When changed to "FALSE" from "TRUE"
    req_id := APPS.Fnd_Request.SUBMIT_REQUEST('XXRBSI',l_program,'','',*TRUE*,
    p_order_by,p_transaction_class,p_transaction_type,p_transaction_number_low,p_transaction_number_high,
    The child process of the request set stucks with Phase INACTIVE NO MANAGER and the diagnostics shows "No specialized concurrent manager is defined to process this request, so it cannot be processed. Contact your system administrator to define a concurrent manager to process this request or to verify that existing concurrent managers have the correct specialization rules."
    We also tried including "FND_GLOBAL.APPS_INITIALIZE(i.USER_ID,i.RESPONSIBILITY_ID,i.RESPONSIBILITY_APPLICATION_ID);" before invoking FND_REQUEST.SUBMIT_REQUEST command but the issue remains same.
    Any help is appreciated.
    Regards

    Hi Rawnt,
    You can refer the following ML doc
    *[How To Submit A Concurrent Request Set Using Fnd_Request.Submit_Request|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=382791.1]*
    The child process of the request set stucks with Phase INACTIVE NO MANAGER and the diagnostics shows "No specialized concurrent manager is defined to process this request, so it cannot be processed. Contact your system administrator to define a concurrent manager to process this request or to verify that existing concurrent managers have the correct specialization rules."*[Using FND_REQUEST.SUBMIT_REQUEST With Flag SUB_REQUESTS=TRUE Results in Inactive No Manager|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=249105.1]*
    Thanks,
    Anchorage :)

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

  • 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

  • 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

  • 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');

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

  • 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

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

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

  • FND_REQUEST.SUBMIT_REQUEST

    Dears,
    can I control layout format of FND_REQUEST.SUBMIT_REQUEST ???
    can I get .rtf layout instead of .pdf format ??
    please help
    Edited by: [email protected] on Feb 2, 2009 8:22 AM

    Hello sam-t!
    [email protected] wrote:
    can I get .rtf layout instead of .pdf format ??If you're working with BI Publisher (stand-alone) you can publish a report as PDF, RTF, CSV, HTML, Excel or PowerPoint. Just select the desired format for your output in the web ui.
    can I control layout format of FND_REQUEST.SUBMIT_REQUEST ??????
    Regards,
    Stefan

  • After Submitting FND_REQUEST.Submit_Request, Request goes in INACTIVE NO MA

    Hi Intelligentsia,
    I am trying to run a concurrent request XML report, but before that i have to explicitly attach layout. now after attaching layout. whenever i call this FND_REQUEST.Submit_Request , The request executes and goes in INACTIVE NO MANAGER state and on running the Same Request Through Submit Request Screen i am able to run it successfully.
    in the log i am able to get conc_req_id correctly and fnd_message.get display blank(that means no message) and kindly comment what could be the problem with this FND_REQUEST.SUBMIT_REQUEST call.
    PROCEDURE ADD_LAYOUT (
    ERRBUF OUT NOCOPY VARCHAR2,
    RETCODE OUT NOCOPY NUMBER,
    P_PAYMENT_BATCH IN VARCHAR2)
    IS
    conc_req_id NUMBER;
    l_layout BOOLEAN;
    BEGIN
    l_layout := FND_REQUEST.ADD_LAYOUT('CLE','CLEF006SVAL','en','US','PDF');
    IF l_layout THEN
    PRINT_DEBUGINFO('layout value is True');
    PRINT_DEBUGINFO('Payment Batch is '|| P_PAYMENT_BATCH);
    ELSE
    PRINT_DEBUGINFO('layout value is False');
    PRINT_DEBUGINFO('Payment Batch is '|| P_PAYMENT_BATCH);
    END IF;
    conc_req_id := FND_REQUEST.SUBMIT_REQUEST(APPLICATION=>'CLE'
    ,PROGRAM=>'CLEF006SVAL'
    ,DESCRIPTION => NULL
    ,START_TIME => NULL
    ,SUB_REQUEST => l_layout
    ,ARGUMENT1=>P_PAYMENT_BATCH
    PRINT_DEBUGINFO('CONC_REQUEST ID IS '||CONC_REQ_ID);
    PRINT_DEBUGINFO('Request Not Submitted due to "' || fnd_message.get || '".');
    COMMIT;
    END ADD_LAYOUT;
    thanks in advance.
    Abdul Rahman

    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

Maybe you are looking for

  • Auto-mapping across multiple domains

    I originally posted this in an O365 Exchange forum and was redirected here.  Any help is appreciated. Single E1/E3 O365 account with multiple domains having hosted email.  Automapping is working correctly only if the shared mailbox is from the first

  • LAN Network Card Ethernet Driver

    Computer Crashed, Vista.  Loaded Windows 7, Realtek PCIe FE GBE Family Controller Series Driver will not load on Windows 7. Is there a driver for this Network Card for Windows 7 ?

  • Problem with my Thread

    MainProgram Thread1->named th does some process Thread2->ProgressBar where i have this code while(th.isAlive()) Thread.sleep(4000); My program is stuck up in the above loop. Eventhough thread1 and thread2 are independent,thread one is never dead. Onc

  • Java 3d ...cannot import a 3ds file ..only works with a .obj

    Here is a world i have written in java 3d I can import a .obj file into this world but i want to import a file called Flipp.3ds but it keeps giving me an error Here is the complete class ..... Can anyone help Im pretty new to java 3d         import j

  • How can you tell from old/new?

    Thanks...