Concurrent Request Output from PL/SQL
Inventory manager got the internal requisition approval workflow notification, he open the notification and
click on the Approved button (here inventory manager want when he press the Approved button, report request is auto submit to the concurrent manager and when request is complete with "COMPLETE" and "NORMAL" status then automatically show the report output in the internet explorer, he don’t want to open the "FNDRSRUN" form), for this requirement I write the code in the workflow package "PO_REQAPPROVAL_INIT1" and submit the report request through "FND_REQUEST.SUBMIT_REQUEST" and it's working fine but problem is how report output show in the internet explorer when request is complete.
Hi,
Please refer to this document.
Note: 357385.1 - How To Send Attachments Of Size Greater Than 32 KB Using UTL_SMTP Package
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=357385.1
Regards,
Hussein
Similar Messages
-
To view the concurrent request output in a custom form
Hi,
I have a requirement to view the concurrent request output from a custom form.
I can use the function "fnd_webfile.get_url " in a PL/SQL procedure and get the value for URL for the request output.
I am not sure how I can call this function from the form directly , ie not sure which library needs to be attached.
and also how to display the URL which has been obtained.
regardsHi,
I used the below code in my form
l_url := fnd_webfile.get_url
file_type =>'request_xml_output' , --fnd_webfile.request_out,
id => req_id,
gwyuid => l_gwyuid,
two_task => l_two_task,
expire_time => 10 -- minutes, security!.
when I used fnd_webfile.request_out the form was not compiling and hence I passed the value 'request_xml_output'
Now no compilation error exists however how do I display the concurrent request in the screen.
I am not clear here, is there any function I need to use. I checked the FNDRSRUN form and there they have used
editor_pkg.report(req_id, 'Y');, I tried using it but no use.
regards
Maya -
Script to find the Concurrent Request ID from its associated SID
Hi,
In one of my production system, my server load is going very high. From the top used process ID of server, I found the SID and found out that the program running is "ora_rw20_run@acgerp (which is a concurrent program)
How do I find out the Request ID using the SID/PID? Can someone please provide me the script to find the Concurrent Request ID from its associated SID?
Thanks!There has been no new changes in the report server or in the database. Suddenly of late, we have been observing this program running and it never ends, consuming major part of the cpu load. Not sure what this program is -> ora_rw20_run. There is no mention about it in metalink or in google.
I followed MOS Doc 1058210.6 and tried to debug more. But the formatted output doesnt give any info either.
TKPROF: Release 10.2.0.2.0 - Production on Tue Oct 20 09:44:21 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Trace file: prod_ora_15721.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
0 statements EXPLAINed in this session.
Trace file: prod_ora_15721.trc
Trace file compatibility: 10.01.00
Sort options: default
1 session in tracefile.
0 user SQL statements in trace file.
0 internal SQL statements in trace file.
0 SQL statements in trace file.
0 unique SQL statements in trace file.
96507 lines in trace file.
0 elapsed seconds in trace file.
When I use the below query, I can find that the session is running a module named "PAXMGSLS" and the action is Concurrent Request.
But I am not sure how to find out the Concurrent Request ID using this info to dig more (look into the concurrent request log files etc)
select s.sid,s.serial#,p.spid os_pid,s.status,
s.osuser,s.username,s.COMMAND,s.MACHINE,s.MODULE, s.SCHEMANAME,
s.LOCKWAIT,s.action
from v$session s, v$process p
WHERE s.paddr = p.addr
and s.sid = 823
SID SERIAL# OS_PID STATUS OSUSER USERNAME COMMAND MACHINE MODULE SCHEMANAME LOCKWAIT ACTION
823 47 4559 ACTIVE applprod APPS 3 acgerp PAXMGSLS APPS Concurrent Request -
APEX integration with EBS 11i10: view concurrent request output
Hi All:
ENV: APEX 4.0
EBS: 11i10
DB: 10r2
APEX is installed in the same database as EBS 11i10
1. I have developed a APEX application that is can be launched from EBS as a form function. Also, the APEX will not ask any credential when user launch it from EBS, since user is already authenticated. Also, APEX will also display FND username, responsibility for user who has login - <<This is already implemented>>
2. by Default, APEX will display a page, where user can browser and import a csv file into a predefined custom table <<This is already implemented>>
3. After csv file is imported into cusotm table, user will click "Submit" button to process the data. APEX will submit a concurrent request (eventually, the concurrent program will call Oracle API to process data). A concurrent request is will display on the apex page. << This is WIP and I don't forsee any issue to implement this, since many have done this before>>
4. User will write down the request id from step 3 and go to another apex page. In this page, user will enter request id and click "View Output", which should retrieve the concurrent output for that request id and display the output in a new browser. I don't want user go back to EBS to view the concurrent output. << This is my question for this thread>>
My question for step 4: is there a seeded EBS API (FND_???) that I can call by passing a request id and API should display the concurrent request output in a browser automatically? Assuming, I will use fnd_global.apps_initialize() API in this page to set EBS env properly.
My question may not be a direct APEX question; however, I hope someone can offer some help to me. I have done numerous research on this and still haven't find this API.
Thanks!
KevinHi Kevin,
I am having an issue implementing the Call from an EBS menu entry to the APEX Page.
I created the menu entry as a SSWA Function that use the apex_launch procedure to call the APEX page but when the user clicks on the option menu, the EBS login page appears.
Can you share with me how can I fix this?
Thanks
AEstrada. -
Concurrent request output files removed - now concurrent requests failing
Hi.
I recently removed all *.out files from the concurrent request out directory that were older than 5 days.
I didnt think these were needed, only recorded output from earlier concurrent requests. But now we have a request complaining that
The Applications File Server could not open the file /apps/prod/prodcomn/admin/out/PROD/o16499119.out for read.
Any ideas?
Thanks.
Oracle 10.2.0.4
EBS 11.5.0.2
DADan,
It is expected to get this error as the concurrent request output file is missing. The only way to fix this error is to restore the out files from a recent backup you have taken. Or, ask the user to submit the same concurrent program again and a new out file will be created then.
Thanks,
Hussein -
Need to view concurrent request output(pdf file of XML report)from OAFpage
Hi,
I am submitting a concurrent request from OA page (on click of submit button).
As of now, to view output of the request user has to open SRS form.
Now the rquirement is to submit the request as well as to open the output file of the request in one action(i.e. on click of submitbutton) instead of going to SRS form to view output.
From the forum, I found out the way to go to request monitoring page and view all the current requests. But this is something different from what I am looking for.
Can somebody help m in this case?
Thanks & Regards
Nitinrefer this link
http://apps2fusion.com/at/ps/286-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page
--prasanna -
How to submit a Concurrent Request Set from OAF
All,
I understand we can submit a concurrent program from OAF using
oracle.apps.fnd.cp.request.ConcurrentRequest.submitRequest( String pApplication,
String pProgram,
String pDescription,
String pStartTime,
boolean pSubRequest,
Vector pArgArray) method,
But the class ConcurrentRequest don't have any method to submit a concurrent request set. The workaround is directly call the pl/sql package FND_SUBMIT.submit_program.
Is there any other oracle.apps.fnd.cp.request.* class have method to call a concurrent request set?
Thanks.
With Regards,
Kali.
OSSI.Sorry for my typo.....! I meant use the pl/sql way, there is no standard solution for this in OAF.
didn't get what you mean by,
You mean i need to use FND_SUBMIT.submit_program? or you want me to check in OAF itself?
>>Kali, You can use [b]fnd_submit.submit_set , this is explained "Application Developer User Guide"!
Even i tried to use that PL/SQL FND_SUBMIT.submit_program, that is returning BOOLEAN so i am facing the problem which you have discussed in the forum
>>Use the work around i suggested in the thread u mentioned in ur reply.
--Mukul -
How to find Concurrent Request output file Document ID if exists
Hi,
My Concurrent Request when runs, it produces an output file.
This output file is located on the server.
Could any one let me know from which tables i could get the document id and the node id of the node where this document resides if it does in the Oracle Document Management System.
I want to do is use this in the workflows to set the attribute value using procedure
SetItemAttributeDocument
Thanks in advance,
POn the Concurrent Requests table (FND_CONCURRENT_REQUESTS), the OUTFILE_NODE_NAME and OUTFILE_NAME indicate where the output file is stored. As far as I know, this is only on the server running the concurrent manager and not in the Oracle Document Manager System.
What are you trying to do with your output? If you are simply trying to provide access to it, you might be able to construct a URL similar to the standard concurrent request completed notification (basic email which provides a link to the output of the completed request). -
JDev generated webservices encodes XML output from PL/SQL procedure
I have a PL/SQL packaged procedure which takes some input parameters and produces one output parameter. The output parameter is of type CLOB and after the procedure has run, it contains a big piece of XML data.
Using JDeveloper 10.1.3.1, I've published this packaged procedure as a webservice. The generated webservice is fine and works, except for one tiny little issue: the XML that is taken from the output parameter is encoded.
Here is an example of the SOAP message that the webservice returns:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="http://gbv0300u/GBV0300U.wsdl/types/"><env:Body><ns0:gbv0300uResponse
Element><ns0:result><ns0:obvglijstOut> & gt;type>GBV0001& gt ;/type& lt;
& gt;diensten& lt;
& gt;dienst>some value& gt;/dienst& lt;
& gt;/diensten& lt;
</ns0:obvglijstOut></ns0:result></ns0:gbv0300uResponseElement></env:Body></env:Envelope>
(I've manually added an extra space between the & and lt; or gt; to make sure a browser will not translate it into a < or >!)
The contents of the <ns0:obvglijstOut> element are filled with the output parameter from the PL/SQL package.
How can I change the generated webservice, so the output from the PL/SQL package is used as is instead of being encoded?Update: I've tested a bit more by adding some output statements to the java code that JDeveloper generated. I'm now 100% sure the PL/SQL code gives the XML data correctly to the webservice.
At this moment my guess is that somewhere in the WSDL definition there is something that enables the encoding of the data. But I'm not sure.
Any help is greatly appreciated. -
Pass output from PL/SQL proc back to ODI for logging
Hi,
In ODI (10g), is there any way to pass output from a PL/SQL procedure back to the calling stage?
I am working on the run time of a batch, one part of which calls a procedure and so currently black box.
I'd like to instrument the proc so that I can see in Operator some kind of timed activity so that I can profile its activity better.
The best I've had suggested so far is to write out to file from the procedure and then use ODI to parse this and spit it out in the stage log. I don't like this approach for two reasons:
1) Our DBAs quite rightly get very itchy with the privs required for writing to files, and another app to read from the same
2) It's messy :)
Any ideas?
thanks, Robin.Robin
I don't know ODI. However if you are calling a stored proc procA and you have control over what you call, at the very least you could write a wrapper procB as
CREATE OR REPLACE PROCEDURE PROCB (parms)
AS
BEGIN
SYS.DBMS_MONITOR.SESSION_TRACE_ENABLE();
MYUSER.PROCA(parms);
SYS.DBMS_MONITOR.SESSION_TRACE_DISABLE();
END;
/ If ODI sets service,module and action (as it should) then you could ask the DBA to set SERV_MOD_ACT_TRACE_ENABLE instead.
Niall Litchfield
http://www.orawin.info/ -
Output from pl/sql procedure
The output from my pl/sql block is not being captured in the spool file. This would help to debug.
Thanks in advance...You have to put "set serveroutput on" if you use package dbms_output or check you path for spool file
-
Concurrent Request Output show in XML format
Hi 2 all
I have developed XML report and also registered with predefine procedure but when i run respective concurrent request it display in XML format instead of PDF/RTF.
Following procedure follow for XML report registration.
http://youritbox.wordpress.com/2011/08/22/create-xml-publisher-report-using-oracle-reports-rdf/#respond
Regards ,
Zulqarnaindid you have a template?
plz post short name of concurrent + application and short name of xml template and definotion+application -
ADF Report output from PL\SQL Table
Hi,
I am some complex calcualtions in the report and the report has a fixed number of columns and reports. Is there any way i can do all the programming in pl\sql and call this procedure/package from ADF and return the pl\sql table type?
Can i create a VO from pl\sql table?
Thanks,
Lakshmi.On Database
create or replace type empRow as object (
Employee_ID Number,
First_Name Varchar2(20),
Last_name Varchar2(25)
create or replace type empTable as table of empRow;
create or replace function getEmployees
(aDepartmentID Number)
return empTable
PIPELINED
as
begin
for rec in (select Employee_ID, First_Name, Last_name
from employees
where Department_ID = aDepartmentID) loop
pipe row(new empRow(rec.Employee_ID, rec.First_Name, rec.Last_name));
end loop;
return;
end;
THEN create a VO based on this Query below:
select * from table(getEmployees(:deptid)
and you are ready to Go. -
Concurrent Requests output file (pdf format) send to email
Friends -
Does any one implemented this.
Submit Conurrent Requests once the requests is completed send the output file(PDF Format) as an attachement to email.
Please provide us steps.
Regards
VSHHi,
See this thread.
concurrent ouput to email
concurrent ouput to email
Regards,
Hussein -
Get server output from pl/sql stored procedure
Hi Colleagues,
I would like to get and watch the server output of my PL/SQL stored procedure
when I run my java program and call it from. The Stored proc. uses "dbms_output.put_line".
If it is clearly and possible (or not), will you send me your answer!
Thanks a lot
UlveHi,
You can redirect the standard output to the console (i.e., the SQL output) using the
DBMS_JAVA.SET_OUTPUT() method.
SQL> SET SERVEROUTPUT ON
SQL> call dbms_java.set_output (5000);But, the output is only printed when the stored procedure exits, and this setting works only for one call (i.e., the SQL call that immediately follows the invocation of DBMS_JAVA.SET_OUTPUT()). The minumum and default value is 2,000 characters and the maximum is 1,000,000 (1 million) characters. Notice the “SET SERVEROUTPUT ON” which enables displaying the outputs of stored procedures (Java or PL/SQL blocks) in SQL*Plus.
Kuassi http://db360.blogspot.com
Maybe you are looking for
-
Seriously, every single step, I've tried. Doesn't work.
-
Itunes 10.6.1/Iphone 4s
Hey all, I got the new iPhone 4S a couple of days ago and I have been having a few issues with iTunes. My problem is, I had previously an older version installed and obviously as this doesn't support the new iPhone, iTunes gave me the option to downl
-
Another Boolean formula in BW 3.5
Hello, Again I'm sorry for asking questions about formula, but I'm having real problems with this =IF((-A-B)>0,IF(((-A-B-C-D)/(-A-B))<30%,(-A-B-C-D)/(-A-B),""),"") and getting it into boolean logic. I've tried breaking the two IF calculations and cre
-
How can i buy starcall package, how can i buy starcall package
how can i buy starcall package, how can i buy starcall package
-
IPhone bricked after trying to upgrade
Ok so I had 1st gen iPhone that was updated to v2.0. It worked ok, but last night my machine says there is an update. I click to install and I didn't pay attention to it because I was packing. Anyway I come back and it says my install failed and I ha