Hide URL using srw.run_report
I called a report from a form 10g using RUN_REPORT_OBJECT which hides url.
Now i called a report with in report using srw.run_report which shows hole url in the browser.
I want to hide url.
Can I use this build it to run itself? I mean in your case run report A?
our report is launched from servelet. because of some security issues, I would like to use this built in to change it to command line after user enter all the parameters through the parameter form.
thanks.
Similar Messages
-
Is there a restriction on using SRW.RUN_REPORT per session
I am running a driver report which in turn calls the detail report using SRW.RUN_REPORT package. The driver report eventually fails with a core dump after calling the detail report for 999 times. It doesn't matter how big the report is as I've tried it with a very simple report which outputs sysdate in a file.
Any ideas? Where to look for and what to change so that it can run the report using SRW.RUN_REPORT package more than 999 times.
Thanks.
Please reply to: [email protected]I found the answer, Xcelsius 2008 SP3 is not supported on Windows Server 2008.
Before trying to use more products please check the supported platforms for all products. For example you can see in Xcelsius documentation that SAP Business Objects Xcelsius 2008 SP3 is not supported on Windows Server 2008. This means that, even if BPC 7.5M supports Windows Server 2008, it is not possible to use both BPC 7.5M and Xcelsius 2008 SP3 on a Windows Server 2008. -
Using srw.run_report in report server
Dear all,
I'm running a report (report A) on the report server and after it is running (printing output on screen), I need to run report B at the background and save the output of report B to the file system. In the report A's After Report Trigger, I have a srw.run_report function, the syntax is: srw.run_report('server='||v_serverName||' report='||v_reportName||' batch=yes destype=file desname=/tmp/output.pdf desformat=pdf p_startdate=''12-JUN-2003'' p_enddate=''14-JUN-2003'''). When I run the above syntax (without the server name part) in report builder, it works fine. But I couldn't get it working on the report server. Each time report A runs, report B couldn't be run at all (no job id was given or scheduled). Could anyone give me an idea on whether srw.run_report could be used in the report server?
Many thanks for your urgent help.
RoseCan I use this build it to run itself? I mean in your case run report A?
our report is launched from servelet. because of some security issues, I would like to use this built in to change it to command line after user enter all the parameters through the parameter form.
thanks. -
How to use srw.run_report without userid parameter in 10g
I have the following function which works fine when I supply the userid parameter.
Is it possible to run srw.run_report without the userid? If not is there another way to run a batch report to create a file?
create or replace
FUNCTION SUNRESDS(vopersorjudicial varchar2)
RETURN VARCHAR2 as
myPlist SRW_PARAMLIST;
myIdent SRW.Job_Ident;
BEGIN
myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
srw.add_parameter(myPlist,'GATEWAY','http://xxx.xx.xxx.xx/reports/rwservlet');
srw.add_parameter(myPlist,'SERVER','rep_172_FRHome1');
srw.add_parameter(myPlist,'REPORT','d:\oracle\FRHome_1\forms\sunresds.jsp');
srw.add_parameter(myPlist,'USERID','username/password@databasename');
srw.add_parameter(myPlist,'DESTYPE','file');
srw.add_parameter(myPlist,'DESFORMAT','PDF');
srw.add_parameter(myPlist,'popersorjudicial',vopersorjudicial);
srw.add_parameter(myPlist,'DESNAME','d:\Reports\unresolved_discrepancies.pdf');
myIdent := srw.run_report(myPlist);
return 'Y';
EXCEPTION
when others then
return ('sunresds ' || sqlerrm);
END;Did you solve your problem? How did you do?
-
I have one report "analyse" that calls another report "pdf".
In "analyse" i have a function pdf_rep:
FUNCTION PDF_Rep(c_proevenummer varchar2) RETURN boolean IS
msg char(150);
BEGIN
SRW.Run_Report
('BATCH=YES
REPORT=PDF
DESTYPE=file
DESFORMAT=PDF
desname=test1.pdf
p_proevenummer='||(c_proevenummer) );
return(true);
exception
when srw.run_report_failure then
msg := srw.geterr_run;
srw.message(1,'err msg: '||msg);
return(false);
END;
This function is called from BeforeReport-trigger. (or AfterParameterForm-trigger)
The "pdf" query:
select proevenummer
from View_Analyse
where proevenummer= :p_proevenummer;
The "pdf" report is run and a test1.pdf file is made BUT the where-clause is NOT performed.
What do i do wrong ?Hello,
If you copy the parameters displayed by srw.message and create a BAT file with these parameters
and rwrun60 :
rwrun60 <the paremeters displayed by srw.message>
Does the report run correctly ?
Regards -
Setting form method to POST to hide URL using WWW_GET_REPORT with webrfc
I want to hide the URL details when running webrfc reports. The link contains information that we want to hide form the user.
Is there a way of setting the form method to POST rather than GET when running a report using webrfc function WWW_GET_REPORT.
Thank you
Karenyes its possible.
for example, if you have a report with a selection screen parameter called abc .
(parameters: abc(10) .)
then the code would be
form method="POST" action="http://abaphost.domain.com:1080/sap/bc/webrfc?sap-client=001" >
input name="PARC_ABC" size= 10 maxlength= 10 >
input type=hidden name= _FUNCTION size= 30 value= WWW_GET_REPORT >
input type=hidden name= _REPORT size= 30 value= Y_TEST_WEBRFC >
input type="submit" value="Execute report">
/form>
Regards
Raja -
FUNCTION IS NOT WORKING WHEN RUN IN SRW.RUN_REPORT, URGENT
Hi,
I have a report. it has got 1 Query and 2 groups.
Q1
|
|
__G1__
|F1 |
|F2 |
|F3 |
|
|
|
__G2__
|Items|
|Sales|
| Qty|
|Store|
|Func4|
|Func5|
|Func6|
The Query looks like above. Now In the report I have a 3 User parameters . For Each record in G2 the functions Func4,Func5 and Func6 adds the value to the user parameters at the report level.
Now the Func1,Func2,Func3 takes the value of last 4 record for each item at each G1 Level and devides it by 4 and prints . As an example given below
ITEMS-----SALES-------QTY-----------STORE
10001-----10000-------200-------------100
10001-----20000-------500-------------200
10001-----15000-------350-------------175
10001-----45000-------650-------------225
10001-----50000-------700-------------300
AVERAGE==>32500-------550-------------225 ==> Calculated by F1,F2,F3
20001-----70000-------900-------------400
20001-----30000-------600-------------350
20001-----20000-------500-------------300
20001-----25000-------450-------------275
20001-----35000-------550-------------225
20001-----65000-------800-------------400
AVERAGE==>36250-------650-------------300 ==> Avg of last 4 records
This report takes an parameter which is part of the Where condition of the Query Q1. If I run this report from the report builder and provide the value for the parameter then the report runs fine printing the exact values. If I run the report from another report(which I have to do, due to circumstances) using SRW.Run_Report and pass the parameter in the same command. The the function FUNC4, FUNC5, FUNC6 does not do the addition, as a result the Func1,Func2,Func3 returns 0. I dont know why this is happenning .
This is very very URGENT, My project manager is on my head to finish it ASAP. Please help.
Thanks
FerozHi Toby and Danny,
Thanks for the quick reply. I dont think I am having an interdependancy of the functions. Here is an sample what two functions do at each level
Func6 =========> This function at group level G2
begin
-- To initialize the user parameter for each new item.
If :CNT = 1 Then
:Wk4_Pos_Qty := 0;
End If;
-- to add the qty value to the user parameter for last 4 records. Uchange is the no of records for each item
If :CNT >= :UCHANGE - 3 Then
:Wk4_Pos_Qty := :Wk4_Pos_Qty + :Qty;
End If;
return 0;
end;
Func3 ======> this function at group level G1
Begin
-- if no of records are less than 4 then devide by the no of records or devide by 4.
If :UChange < 4 Then
return((:Wk4_Pos_Qty + :Qty) / :UChange);
Else
return((:Wk4_Pos_Qty + :Qty)/ 4);
End If;
end;
Here Wk4_Pos_Qty is the User parameter created to hold the calue for the Um of last 4 records Qty.
I tried to modify the Func3 so that it looks like this
Func3
begin
srw.reference(:Wk4_Pos_Qty);
If :UChange < 4 Then
return((:Wk4_Pos_Qty + :Qty) / :UChange);
Else
return((:Wk4_Pos_Qty + :Qty)/ 4);
End If;
end;
But it does not effect anything. I mean its the same. The Wk4_Pos_Qty returns 0 and Func3 returns 0.
Any Suggestions .
Thanks
Feroz -
Error while running SRW.RUN_REPORT
Hi All,
I have requirement where i need to generate multiple reports with single request.
I have created to sample tables test1 and test2 with two columns each.I have created a paper report using first table and saved it as test.rdf in my c: drive and I created the second report using second table and with in Before Report Trigger i called the first report using srw.run_report('report = c:\test1.rdf desformat=screen'); .
When I ran the second report its showing an error messg REP-1428 :Error while running SRW.RUN_REPORT.
Can any one help me to resolve this issue.
Regard
Srinivas PusaWhy can't you use two queries (one for test1 and another for test2) and create many pages (reports) one report? srq.run_report is avoided completely.
-
Doubt in srw.run_report
hi all,
i tried to call one report from other using srw.run_report,the below code is working fine
but i give destype=screen or preview then its getting error.im using report 10g.
how to use this?
function BeforeReport return boolean is
begin
srw.run_report('batch=yes report=e:\REP\CALL_REPORT\emp.rdf
destype=file desformat=PDF desname=e:\REP\CALL_REPORT\emp2.PDF');
return (TRUE);
end;srw.run_report package may not be used in webservice. It does fit to server/client application.
-
Srw.run_report problem
Hi all,
i'm trying to run a report inside another report using srw.run_report routine, but i get the following error:
REP-0110: Impossible to open file 'app/OA11i/NOCE/software.ds/noceappl/xxene/11.5.0/reports/I/XXENE_PROPACCPDRNOINT.rdf'
the full command that i use is: srw.run_report('report=app/OA11i/NOCE/software.ds/noceappl/xxene/11.5.0/reports/I/XXENE_PROPACCPDRNOINT.rdf desname=DL006345.pdf destype=file desformat=pdf batch=yes P_PDR_ID=10015 P_DATA_ATTIVAZIONE=20-FEB-07 P_USE_SITE=LEGAL');
Thanks for the help,
bye
SimonaHello Simona,
Below is the definition of the error you are getting:
Cause: Report Builder tried to open the file shown and could not. The possible causes of this error include the following:
Case 1: The file was not found under the specified name in the specified location.
Case 2: You lacked the necessary privileges to open the file.
Case 3: A system error made it impossible to open the file.
Action: You can take the following actions to correct this error:
If Case 1: Make sure the file is stored in the specified directory under the specified name. If it is not, change the directory and/or filename as appropriate.
If Case 2: Make sure that you have the privileges necessary to open the file. If you do not, change your privileges accordingly.
If Case 3: Consult your operating system documentation or contact your system administrator.Hope this helps.
-Marilyn -
Does report2.5 works with srw.run_report and Oracle Apps11.0.3
Hi,
I have reports2.5 and using srw,run_report I want to call another report. NOw I have registered this in oracle apps 11.0.3 . Now through oracle apps if I run the main report it has to call the child report (calling via srw.run_report) and the output should be put in the Unix server directory /tmp/
Please help Ratheesh.
Iam not sure whether report2.5 works fine with srw.run_report and oracle apps11.0.3Try this isntead.
java -classpath d:\jdbc\classes12.zip;. jdbccheckup
an error occured:
Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
Why?????? -
Reports 11gR2 SRW.Run_Report gets REP-1428 error
I have several driver reports that use the SRW.RUN_REPORT package to run other reports. These reports were working fine in 10g but when moved to 11gR2 I get a REP-1428 error. Anyone know what is happening?
Hi to all!
I was used srw.run_report in reports 6i and I got the same error. I found out that the file that it was looking for can't be found.... Try to check the destination of the file if it exist.
- i hope this helps you...
I encountered the same problem the second time but this time i was using web to call my report that contain srw.run_report function. I tried to look at the destination of the file and it's right there. What could be the possible reason for this error?
thanks!... -
Srw.run_report problem. Help needed...Urgent
Hi,
I am very new to Oracle Reports. I need some help in using the srw.run_report
I am having two reports. Rep_A and Rep_B
I will always invoke the Rep_A first...Rep_B should always be invoked in Rep_A
In Rep_A, i need to check a parameter P_Param1 and based upon the value i need to proceed as follows
If P_Param1 = 1 then
--Rep_A should be generated and returned as stream(cache)
--Rep_B shouldnt be invoked
If P_Param1 = 2 then
--Rep_B should be generated and returned as stream.
--Rep_A should not be generated
If P_Param1 = 3 then
--Rep_A and Rep_B should be generated and returned as stream
--(Rep_A followed by Rep_B)
If P_Param1 = 4 then
--Rep_A and Rep_B should be generated and saved as files in a specified location.(this location is in another machine)
This is my requirement. I hope I am clear with my requirement.
How can we achieve these.
Are there any technical issues?
Please guide me
thanks...
sivaHi all,
just to keep this thread active.
can anyone help me in using srw.run_report.
its an urgent requirement.
thanks...
siva -
Using SRW package to send a report via email
Hi,
Please can someone please help me resolve this issue I have been facing in using the srw package
I have configured a report server and was trying to use the srw package to send a report out to our customers when there is an update on a particular table.
I have succesfully use this same procedure to generate the same report to an output file and it was ok but anytime I try to generate the report as a mail and send to a DESNAME, i get mail server unavailable.
Below is the procedure i try to execute:
procedure testrep(new_name in varchar2) as
myPlist SRW_PARAMLIST;
myIdent SRW.Job_Ident;
BEGIN
myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
srw.add_parameter(myPlist,'GATEWAY','http://technorth4:7780/reports/rwservlet');
srw.add_parameter(myPlist,'SERVER','rep_technorth4');
srw.add_parameter(myPlist,'REPORT','c:\gens\name.rdf');
srw.add_parameter(myPlist,'USERID','gens/[email protected]');
srw.add_parameter(myPlist,'AUTHID','orcladmin/password1@orcl');
srw.add_parameter(myPlist,'DESTYPE','MAIL');
srw.add_parameter(myPlist,'DESFORMAT','PDF');
srw.add_parameter(myPlist,'FROM','[email protected]');
srw.add_parameter(myPlist,'DESNAME','[email protected]');
srw.add_parameter(myPlist,'T1',new_name);
myIdent := srw.run_report(myPlist);
END;
when i now start debugging i got this error:
SQL> set serveroutput on
SQL> exec srw.start_debugging
* WELCOME TO EVENT-BASED-REPORTING API *
* API-Version : 9i *
* (C) Oracle Corporation, 2000 - 2002 *
* Debugging turned ON **************************
PL/SQL procedure successfully completed.
SQL> exec testrep('TOPE');
*** Length of Paramlist : 1
OK : Parameter added : GATEWAY=http://technorth4:7780/reports/rwservlet
*** Length of Paramlist : 2
OK : Parameter added : SERVER=rep_technorth4
*** Length of Paramlist : 3
OK : Parameter added : REPORT=c:\gens\name.rdf
*** Length of Paramlist : 4
OK : Parameter added : USERID=gens/[email protected]
*** Length of Paramlist : 5
OK : Parameter added : AUTHID=orcladmin/password1@orcl
*** Length of Paramlist : 6
OK : Parameter added : DESTYPE=MAIL
*** Length of Paramlist : 7
OK : Parameter added : DESFORMAT=PDF
*** Length of Paramlist : 8
OK : Parameter added : [email protected]
*** Length of Paramlist : 9
OK : Parameter added : [email protected]
*** Length of Paramlist : 10
OK : Parameter added : T1=TOPE
Starting run_report: building url
*** Building URL (RUN_REPORT)
OK : URL built :
http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5Cg
ens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpassw
ord1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&D
*** Submitting HTTP Request
*** using URL
:http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5C
gens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpass
word1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&DES
OK : Request submitted - Return stream : <?xml version = '1.0' encoding =
'ISO-8859-1' standalone = 'yes'?>
<serverQueues>
<error code="50138"
component="REP" message="Mail server is not available"/>
</serverQueues>
OK : Request submitted - Length of stream : 182
*** XML-Parsed - Following Structure discovered :
*** Checking elements!
serverQueues ()
*** Checking attributes!
error
*** Checking attributes!
__code = 50138
__component = REP
__message = Mail server is not available
*** Finished Parsing XML
Getting value for element: job
Getting value for element: error
*** Requesting value for Attribute error.component [REP]
Getting value for element: error
*** Requesting value for Attribute error.code [50138]
Getting value for element: error
*** Requesting value for Attribute error.message [Mail server is not available]
REP-50138:Mail server is not available
BEGIN testrep('TOPE'); END;
ERROR at line 1:
ORA-20999:
ORA-06512: at "GENS.SRW", line 284
ORA-06512: at "GENS.SRW", line 815
ORA-06512: at "GENS.TESTREP", line 17
ORA-06512: at line 1
Please can someone help me with this. I can connect to the mail server using the telnet mailservername port,i get a 220 message with ***** .
I have updated d report configuration file with the mailserver name, and d proxyinfo.xml too.I put it to bypass proxy for d mail server address and also inlclude the proxy ip and port.
Kindly assist me as it is urgent.
Thank you.You are in the wrong forum. Please try the Reports.<br><br>
Regards,
Rob. -
SRW.Run_Report is not working in Reports from 6i to 10g
Hi,
I have a report .rdf file that submits another .rdf report using the SRW.Run_Report. This code was working fine in Reports 6i version. We are upgrading the Reports 6i to Reports 10g, and did a small change in the call i.e., Removed the server parameter, and it is not working. This is in Oracle E-Business Suite environment. The first report is called as a Concurrent Program. Here is the call that was working fine in Reports 6i (i.e., Oracle Apps 11i environment)
srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
' p_user_id='||l_user_id||
' p_resp_id='||l_resp_id||
' p_appl_id='||l_appl_id||
' p_conc_request_id='||
' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
' p_period_name='||l_period_name ||
' server='||l_server
It has been modified to the following for Reports 10g (i.e., Oracle Apps R12 environment)
srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
' p_user_id='||l_user_id||
' p_resp_id='||l_resp_id||
' p_appl_id='||l_appl_id||
' p_conc_request_id='||
' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
' p_period_name='||l_period_name
);Thank you for your reply.
Yes, it's done using MOD-PLSQL version 10.1.2.0.2.
I did as you said: compared the 2 generated HTML files. It's not that it doesn't generate all tags. It generates all tags but some of them are different, that is it screws them up.
Here it is some example code.
For example, in 9i I have the following code:
div id=div_plus_GENERALE style="cursor:hand; display:none;"
<td> width=8 </td>
<td id=butt align=left style="font-family:Verdana,Tahoma;
font-size: 10px; font-weight: 400; color: '#ffffff';
background-color: '';
"onClick="if (butt_clicked) butt_clicked.style.cssText=restore_butt_style;
butt_clicked=this; restore_butt_style=butt_off_lit;
this.style.cssText=butt_on_lit;
var x = document.getElementById('Freccia_' + freccia_old);
x.style.display = 'none';
Freccia_sitointer_anagrafica_anagrafica_cliente_punto.style.display='block';
freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
onMouseOver="this.style.cssText=butt_on_lit;"
onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</td></tr>
<tr>
<td height=2></td>
</tr>
</table>
In 10g the HTML code looks like this:
div id=div_plus_GENERALE style="cursor:hand;"
<td width=8> </td>
<td align=left style="font-family:Verdana,Tahoma;
font-size: 10px; font-weight: 400; color: '#ffffff';
background-color: '';">
<a href="sitointer.anagrafica.anagrafica_cliente_punto target="frameCenter"
onClick="var x = document.getElementById('Freccia_' + freccia_old);
x.Style.visibility='hidden';
Freccia_sitointer_anagrafica_anagrafica_cliente_punto.Style.visibility='visible';
freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
onMouseOver="this.style.cssText=butt_on_lit;"
onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</a></td></tr>
<tr>
<td height=2></td>
</tr>
</table>
At this point I don't know what should I investigate next.
Thank you very much.
Daniela
Maybe you are looking for
-
Synchronous Receiver JDBC adapter--response message empty
My scenario is ABAP Proxt to JDBC synchronous case where I am calling a stored procedure "GetEmployer" to get the relevent data. There is no input data to the stored procedure, just need to call the stored procedure to return the records. In the SXMB
-
Live Camcorder Output To MacBook Air
I have a Sony MC2000e camcorder and a November 2011 MacBook Air. I would like to livestream the output from the camera, as it is being recorded, into my MacBook Air. The camera has HDMI, and component output but no firewire. Can anyone give me some g
-
Iphoto Lib gone, reimported and created poor image quality
Hi All. I have had issues with my iphoto08. I had all my images in, then one day, everything had gone out of my library. I located the files from iphoto>data and reimported them, however they are all bad quality, and they used to be really good. ALSO
-
I wrote this code and it doen't work.
public void deletePersonMethod(String pAction, String pPoHeaderId) 42--> Row row[] = pervo.getAllRowsInRange(); for(int i=0; i<row.length ; i++) SantoshVORowImpl rowi =(SantoshVORowImpl)row; if(rowi.getPoHeaderId().toString().equals(pPoHeaderId)) row
-
Upgrade: Function Module does not exist
Hi Experts, transaction FOIM is giving DUMP in ECC. It shows a message Function module "/CUKREQ/RECN_EVENT_FMOD2" not found. This function module exist in 4.6c. Will anyone suggest what to do? Regards: Vipin