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
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 PMI 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'); -
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.SHi 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 UserTry to post your query in the 'XML Publisher' forum, you might get more help:
BI Publisher -
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.
RSPl 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 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 -
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_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,
BhaveshWhat 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
GhulamYour 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 -
Is there a built-in web service for FND_REQUEST.submit_request API?
This is with regards to EBS Concurrent Requests and their execution. I am doing a PoC around this EBS integration. In this regard, I needed some help. I would like to know, does EBS have any built-in mechanism that could expose the FND_REQUEST.submit_request API as a web service method? If so, could you please point me to some documentation around the same?
Or, is there any alternate way that this could be achieved, in order to execute a Concurrent Request as a web service?Hi All,
I was able to find the answer to this. Use Integrated SOA Gateway.
1. Login to EBS as a user with Integrated SOA Gateway role access
2. Select Integration Repository
3. Navigate to Applications Technology -> Application Object Library -> Concurrent Request -> Submit Request
5. Click Generate WSDL button
6. Once the WSDL gets generated, you can select the Username Token policy and Deploy the FND_RQUEST as a service.
Thanks -
Fnd_Request.Submit_Request PRINT OPTIONS
Does anyone know if we can pass Print Options into Fnd_Request.Submit_Request?
Thanks, Naveen.Naveen,
You can use FND_SUBMIT.SET_PRINT_OPTIONS to set the print options.
How to Submit a Report Set from a Custom Form [ID 104260.1]
Oracle Applications Developer's Guide
http://www.oracle.com/technetwork/documentation/applications-167706.html
Thanks,
Hussein -
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 RahmanHi 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 -
Another fnd_request.submit_request problem
hi all,
i have a requirement that creates a database table trigger to call a concurrent request.
i have created executable and program for the package i created that calls the request. see below.
CREATE OR REPLACE PROCEDURE auto_ups_ship_confirm
p_delivery_detail_id wsh_delivery_details.delivery_detail_id%TYPE,
p_order_number oe_order_headers.order_number%TYPE
IS
PRAGMA AUTONOMOUS_TRANSACTION;
l_request_id NUMBER;
l_delivery_id wsh_new_deliveries.delivery_id%TYPE;
BEGIN
l_delivery_id := xx_wsh_int_ship_confirm_pkg.get_delivery_id(p_delivery_detail_id);
l_request_id := fnd_request.submit_request
'XXCUST',
'XXCMC_WSH_INT_SHIP_CONFIRM',
NULL,
NULL,
FALSE,
l_delivery_id,
p_order_number
COMMIT;
END auto_ups_ship_confirm;then there's a custom table that has an after insert trigger with the following code.
CREATE OR REPLACE TRIGGER xx_wsh_int_inbound_ai
AFTER INSERT ON xxcust01.xx_wsh_int_inbound
FOR EACH ROW
BEGIN
auto_ups_ship_confirm(:OLD.DELIVERY_DETAIL_ID,:OLD.ORDER_NUMBER);
END;
/here's the part where i don't get... running the request thru oracle apps submit request form works fine. but when inserting a record on this custom table, it doesn't seem to work.
any comments or suggestions?
thanks
allenhi,
l_request_id always returns zero (0).
i've also done some research and made changes to my code.
i now have..
PROCEDURE auto_ups_ship_confirm
p_delivery_detail_id wsh_delivery_details.delivery_detail_id%TYPE,
p_order_number oe_order_headers.order_number%TYPE
IS
PRAGMA AUTONOMOUS_TRANSACTION;
l_request_id NUMBER;
l_delivery_id wsh_new_deliveries.delivery_id%TYPE;
l_return_mode BOOLEAN;
err_msg VARCHAR2(2000);
x_user_id NUMBER := 1953;
x_appl_id NUMBER := 20003;
x_resp_id NUMBER := 21623;
BEGIN
FND_GLOBAL.APPS_INITIALIZE(x_user_id, x_resp_id, x_appl_id);
l_delivery_id := xx_wsh_int_ship_confirm_pkg.get_delivery_id(p_delivery_detail_id);
l_return_mode := fnd_request.set_mode(TRUE); -- Required since this procedure is called in a database trigger.
l_request_id := fnd_request.submit_request
'XXCUST',
'XXCMC_WSH_INT_SHIP_CONFIRM',
'Shipping Integration - Automatic Ship Confirm',
NULL,
FALSE,
l_delivery_id,
p_order_number
END auto_ups_ship_confirm;but still returning zero.
any thoughts?
thanks
allen -
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
Maybe you are looking for
-
How do I create a bootable system partition in RAID0?
Hello! So I have these two OCZ technology SSD drives, each 80 GB big, and I guessed the system would flow and start quite smoothly if I arranged them in RAID0. Only one problem: The Mid 2010-Mac Pro won´t boot from the array so all the time I´m throw
-
Hi, I am having a table and if i do count(*) , the total rows are coming 36882, but if i take export backup or select * from table, it is showing 7225. Any help to trace out the problem is highly appreciated. I am using oracle 9.2.0.4 in aix 5.3 Rega
-
Reader and Chrome compatability
Just switched browser to Chrome. Have latest version of Acrobat Reader. Reader will not open a pdf through a clickable link on a website. Have run updates, repairs, restarts - all the common fixes without success. Any suggestions???
-
Given from scjp 1.public static void main(String[] args) { 2. NameRunnable nr = new NameRunnable(); 3. Thread t1 = new Thread(nr); 4. t1.start(); 5. t1.join(); }There are some questions whi
-
Hi, Im a PS plug-in developer. I just downloaded CS4 SDK and tried to run a sample plug-in 3dformat (that is in folder Adobe Photoshop CS4 SDK\samplecode\format\3dformat), which should read *.p3d file and show up a 3D image. But no .p3d file is found