Regarding calling 1 report from another
Hello Friends,
Can u plz tell me how to call one report from another report.
Regards,
Drashana
hi,
Use SUBMIT program statement
SUBMIT ZFIR001
chk this.
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
load each personnel number accessed from the structure into
parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
*Code used to populate 'parameters' & execute report
SUBMIT zreport with p_param1 = 'value'
with p_param2 = 'value'.
Other additions for SUBMIT
*Submit report and return to current program afterwards
SUBMIT zreport AND RETURN.
*Submit report via its own selection screen
SUBMIT zreport VIA SELECTION-SCREEN.
*Submit report using selection screen variant
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Once report has finished and control has returned to calling
program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
DISPLAY_LIST to retrieve and display report.
\[removed by moderator\]
rEGARDS
Edited by: Jan Stallkamp on Jul 29, 2008 5:25 PM
Similar Messages
-
Calling a Report from another Report.....URGENT
Hi,
I am calling a report from another report using hyperlink. I want that this new report should come in a new page.
Can any body help me where i can set this property, so that the new report will open in a new page.
Thanks in advance
Regards
KamalTry to call report from report by a button in the calling report:
1 In the Layout Model view, click in the tool palette. Note
2 Click and drag a rectangle.
3 Double-click the button object to display the Property Palette.
4 Under the Button Label node, set the Label Type property to either Text or Icon:
n If the button label is text, set the Text property to the text you want to appear on the button.
n If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
5 Under the Button Behavior node, set the Type property to PL/SQL.
6 Double-click the PL/SQL Trigger property value field.
7 In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
8 Set other properties as desired.
9 To activate the button, run the report, then display it in the Runtime Previewer. -
Calling one WAD Report from another WAD Report
Hi All,
I want to Call one WAD report from another WAD Report and I want to show that Report in a Container of the Calling Report Itself. Kindly give the Solution. Thanks for your support in advance.
Thanks & Regards
ShivaHi Shiva,
There is Command called "SET_TEMPLATE" Set Web Template.
Here you can select any of your existing web template and choose to open it in current page of in a new window.
Hope it helps.
Regards,
Pratap Sone -
Calling a report from another report
Hi,
Is there any way ,(any built in ) to call a report from another report in Report Builder 2000 and Report Builder 6i.
RegardsTry to call report from report by a button in the calling report:
1 In the Layout Model view, click in the tool palette. Note
2 Click and drag a rectangle.
3 Double-click the button object to display the Property Palette.
4 Under the Button Label node, set the Label Type property to either Text or Icon:
n If the button label is text, set the Text property to the text you want to appear on the button.
n If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
5 Under the Button Behavior node, set the Type property to PL/SQL.
6 Double-click the PL/SQL Trigger property value field.
7 In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
8 Set other properties as desired.
9 To activate the button, run the report, then display it in the Runtime Previewer. -
Calling Report from Form Error ORA-06508
Dear all,
I want migrate from Fom6i to Oracle Developer Suite 10g (10.1).
Folder Form = C:\APLIORA\IRS\FORM
Folder Report = C:\APLIORA\IRS\REPORT
I have modified file DEFAULT.ENV
FORMS_PATH=C:\APLIORA\IRS\FORM;C:\APLIORA\IRS\REPORT
i do not have problem call a form from form.
but when i call report from form show error ORA-06508 : PL/SQL : could not find program unit being called ; -6508
my procedure is
PROCEDURE Call_Report IS
list_id ParamList;
BEGIN
list_id := Get_Parameter_List('input_params');
IF NOT Id_Null(list_id) THEN
Destroy_Parameter_List(list_id);
END IF;
list_id := Create_Parameter_List('input_params');
Add_Parameter(list_id,'MAXIMIZE',TEXT_PARAMETER,'YES');
Add_Parameter(list_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'TESTREPORT.REP',SYNCHRONOUS,RUNTIME,FILESYSTEM,list_id,null);
END ;
Do I miss something ?
Can any one help ?
ThanksHi,
Thank you for your replay.
The problem have solved.
This my step :
1. Install Windows XP SP2 and Form 10.1.2.0.2 on new pc.
2. Install Jinit version 1.3.1.28.
3. Create report server
3. Compile form, report and pll
4. call report from from with this procedure :
PROCEDURE Call_Report (vFILENAME varchar2) IS
report_id Report_Object;
ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
repsvr varchar2(21) := 'myserv';
userid VARCHAR2(100);
pass VARCHAR2(100);
Host VARCHAR2(100);
BEGIN
userid := Get_Application_Property(USERNAME) ;
pass := Get_Application_Property(PASSWORD) ;
Host := Get_Application_Property(CONNECT_STRING) ;
report_id:= find_report_object('REPORT');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,vFILENAME||'.jsp');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
ReportServerJob:=run_report_object(report_id);
vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
LOOP
vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
END LOOP;
IF vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||vFILENAME||'.jsp'||'&userid='||userid||'/'||pass||'@'||Host||'&destype=CACHE&desformat=PDF¶mform=yes','_blank');
ELSE
message ('Report failed with error message '|| vc_rep_status);
END IF;
END;
Ok, but i have another strange error. I will post new thread.
Thank you and regards
Teguh S -
Getting rep-3002 when calling report from form on web
i am getting rep-3002 when i call report from a form on web environment. Report is in character mode. It is coming proper if i change it to bitmap. but my requirement is of character mode. pl. give some solution.
Hello,
If you are running in WinNT/2000 environment, the NT/2000 user which runs the Report Server service must have a printer defined. In the control panel, look at the properties for the Report Server to see what user it runs as. Log in as that user and make sure a default printer is defined.
Regards,
The Oracle Reports Team --skw -
Calling Report From Form To Many Destinations
Hi
I am calling reports from forms using SET_REPORT_OBJECT_PROPERTY and then run_report_object.
I dont know the destination until runtime of the report which is ok as I can pass this in via my procedure, but if that destination is many ie mail and file what is the best way to distribute the report?
I could call my procedure for each destination but that seems a bit unefficient since the report would be created many times, is there another way?what about adding a drop-down-list near your report-button where you can choose the destination?
when you click the report-button you simply read the value selected in the drop-down-list and send it to your reports-server too. -
Calling Report From Oracle Forms
Hi
I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that temporary table. The problem is, we can not view the data of an other session if we are using temporary table. When i call report from that form a new session get created due to which i can not see the data. Is there any method of calling report from oracle form that a same session is used to run the report?
Thanks.As you mention Forms and Reports do not share the database session. I had the same problem and resolved it using record groups and DATA_PARAMETER to transfer data from Forms to Reports. You could also read the Note 110495.1 on Metalink to find useful information regarding this issue.
Adi -
Calling reports from oracle forms 9i
Hi
I succeded to call reports from oracle forms but for I have a problem for only one report so I can't call it. this a part of the code I'm using :
declare
pl_id2 ParamList;
pl_name2 VARCHAR2(30) := 'liste2';
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
begin
pl_id2 := get_parameter_list(pl_name2);
if (Id_Null(pl_id2) )THEN
pl_id2 := Create_Parameter_List(pl_name2);
IF NOT Id_Null(pl_id2) THEN
add_parameter(pl_id2,'mois',TEXT_PARAMETER,:mois);
END IF;
end if;
IF NOT Id_Null(pl_id2) THEN
if(:mois is not null) then
v_rep := RUN_REPORT_OBJECT('My_report',pl_id2);
message(v_rep);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
ELSE
message('Error when running report');
END IF;
end;
the problem I've remarqued is that the function message(v_rep) is always returning the value :'repserver_0'.
so when I execute the previous code I'm getting the 2 messages : 'repserver_0' and 'Error when running report'.
Rq: the report my_report is running very well in report builder.
does someone see where is the problem so can help me??
thanx.Hi,
This usually happens when the report fails on the report server. To obtain details on why a particular report has failed, use the showjobs page :
http://server.domain:PORT/reports/rwservlet/showjobs?server=repserver
and check the detailed error occured.
This is logged as Bug:3017948. It is marked to be fixed in version 9.0.4 (Reports 10g) and also has one-off patches for version 9.0.2.3 on Windows platforms. If you need further assistance about patches, please raise a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
Regards,
-Bulent -
Dear friends,
Any body know abt the script or process to call report from report.Hi,
I have been able to call Report from Report using the hyperlink.
I put these code in my Field on the Report caller.
function F_3FormatTrigger return boolean is
temp varchar2(2000);
begin
temp := 'http://<computer_name>:8889/reports/rwservlet?';
temp := temp || 'server=repsrv' || '&' ||
'report=C:\MyReport\rep_detail.jsp' || '&' ||
'userid=scott/tiger@orcl' || '&' ||
'desformat=htmlcss' || '&' ||
'destype=cache' || '&' ||
'P_1=' || :ItemID || '&' ||
'P_2=' || :ItemName;
SRW.Set_Hyperlink(temp);
return (TRUE);
end;The hyperlink showed, and I can see the rep_detail.jsp showed in the same browser after I clicked the hyperlink.
The problem is, the hyperlink has to include the reports path and also userid and password.
If I did not put the userid and password, it will showed in another browse that
"The report has uncompiled PL/SQL"
How can I hide those userid, password, and the reports path?
BTW, Is there anyway to show the report callee in different page from the report caller?
Any help would be grateful.
Many thanks,
Buntoro -
Hide UserID, Password, and Report Path when call Report from Report
Hi,
I have been able to call Report from Report using the hyperlink.
I put these code in my Field on the Report caller.
function F_3FormatTrigger return boolean is
temp varchar2(2000);
begin
temp := 'http://<computer_name>:8889/reports/rwservlet?';
temp := temp || 'server=repsrv' || '&' ||
'report=C:\MyReport\rep_detail.jsp' || '&' ||
'userid=scott/tiger@orcl' || '&' ||
'desformat=htmlcss' || '&' ||
'destype=cache' || '&' ||
'P_1=' || :ItemID || '&' ||
'P_2=' || :ItemName;
SRW.Set_Hyperlink(temp);
return (TRUE);
end;The hyperlink showed, and I can see the rep_detail.jsp showed in the same browser after I clicked the hyperlink.
The problem is, the hyperlink has to include the reports path and also userid and password.
If I did not put the userid and password, it will showed in another browse that
"The report has uncompiled PL/SQL"
How can I hide those userid, password, and the reports path?
BTW, Is there anyway to show the report callee in different page (precisely, open another IE) from the report caller?
Any help would be grateful.
Many thanks,
BuntoroHi,
Thanks for the answers.
Yet, I am still doubt about using cgicmd.dat.
I have looked around in this forum saying that it is not secure to use cgicmd.dat. Because all report request does not use authentication (the client can directly open report without login).
In Form, I can use the On-Logon to do the Oracle Form login (to do logon to the database), and then I use my own custom user login to restrict the menu for each user.
I do this since I want to restrict the user,
i.e user A can only view the sales form as well as sales report,
user B can only view the purchasing form as well as purchasing report.
Well, I am not so fond about the SSO itself.
It comes to my mind, since I don't have to re-login (to the database) each time I call another form (login database is only once at the first Form, On-Logon). It also goes to when calling the report caller.
What is RAD?
How can we use it?
Is OID = Oracle Internet Directory?
If true, maybe, I won't use it since I don't understand about it also.
Why we don't have to specify the userid and password when Form calls Report1 (using Run_Report_Object and Web.Show_Document())?
But we have to specify the userid and password when Report1 calls Report2.
Any help is appreciated.
Many thanks,
Buntoro -
Hi
Can anyone give me an example of calling report from forms11g.
Thnx in advance..
Regards
Ahamedhi
My code is
PROCEDURE RUN_REPORT_OBJECT_PROC(
report_id REPORT_OBJECT,
report_server_name VARCHAR2,
report_format VARCHAR2,
report_destype_name NUMBER,
report_file_name VARCHAR2,
report_otherparam VARCHAR2,
reports_servlet VARCHAR2,
report_name VARCHAR2)
IS
report_message VARCHAR2(100) :='';
rep_status VARCHAR2(100) :='';
vjob_id VARCHAR2(4000) :='';
hidden_action VARCHAR2(2000) :='';
v_report_other VARCHAR2(4000) :='';
i number (5);
c char;
c_old char;
c_new char;
vcFile varchar2(1000):=' ';
DEST_NAME VARCHAR2(1000);
v_seq varchar2(100);
V_USER VARCHAR2(50);
V_DEFLT_PRINTER VARCHAR2(100);
BEGIN
/* ----------------TO CREATE A FILE NAME -------------------------*/
SELECT REP_NAME_SEQ.NEXTVAL INTO v_seq FROM DUAL;
vcFile:=get_application_property((USERNAME));
vcFile:=report_file_name||vcFile||'\'||report_name||'-'||v_seq||'.txt';
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,vcFile);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
hidden_action := hidden_action ||'&report='||
GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
hidden_action := hidden_action ||'&desname='||
GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME);
hidden_action := hidden_action||'&destype='||
GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
hidden_action := hidden_action||'&desformat='||
GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
hidden_action := hidden_action ||'&userid='
||get_application_property(username)||'/'||
get_application_property(password)||'@'||
get_application_property(connect_string);
c_old :='@';
FOR i IN 1..LENGTH(report_otherparam) LOOP
c_new:= substr(report_otherparam,i,1);
IF (c_new =' ') THEN
c:='&';
ELSE
c:= c_new;
END IF;
-- eliminate multiple blanks
IF (c_old =' ' and c_new = ' ') THEN
null;
ELSE
v_report_other := v_report_other||c;
END IF;
c_old := c_new;
END LOOP;
hidden_action := hidden_action ||'&'|| v_report_other;
hidden_action := reports_servlet||'?_hidden_server='||report_server_name ||
encode(hidden_action);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||
hidden_action||' '||report_otherparam);
-- run Reports
report_message := run_report_object(report_id);
rep_status := report_object_status(report_message);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(report_message);
END LOOP;
IF rep_status='FINISHED' THEN
vjob_id :=substr(report_message,length(report_server_name)
+2,length(report_message));
WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||
report_server_name,' _blank');
END IF ;
END;
thnx in advance
regards
Ahamed -
Calling Report from Menu (Oracle Forms 10g)
We have the applications in Forms6i & Reports 6i (Client Server) and migrating to Forms 10g and Reports 10g. We have the menu, from that menu we are calling all the forms and Reports. For especially Reports earlier we user RUN_PRODUCT but now 10g it is not working. How can call the report using RUN_REPORT_OBJECT
Important things we have some dynamic parameters (input) to the each report. That means when i called the report from the menu i need to get first parameter form to take the parameters and then can be run the report.Here is the code to call report from menu in 10g
DECLARE
pl_id ParamList;
repid REPORT_OBJECT;
v_rep varchar2(100);
v_server VARCHAR2(100);
rep_status varchar2(100);
v_host VARCHAR2(100);
BEGIN
select rep_server into v_server from reports_data;
select machine into v_host from reports_data;
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'P_C_CODE',TEXT_PARAMETER,:GLOBAL.COMPANY);
Add_Parameter(pl_id,'P_B_CODE',TEXT_PARAMETER,:GLOBAL.BRANCH);
repid := find_report_object('REPORTOBJ');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_VOUCHER_ENTRY.RDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
v_rep := RUN_REPORT_OBJECT(repid, pl_id);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
message('Running');
END LOOP;
IF rep_status = 'FINISHED' or rep_status is NULL THEN
--Display report in the browser
WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
ELSE
null;
END IF;
END; -
Calling Report from Oracle form 11g
I am new to Forms 11g, trying to call report from Oracle forms 11g .
I want to call report from oracle forms, but its giving error.
Below is the code
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if
rep_status = 'FINISHED'
then
WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
else
message ( 'error while running reports-object ' || error_text );
message ( ' ' );
clear_message;
end if;
end;
Above code giving following error :
Unable to connect to report server RptSvr
I think my report servername is wrong
Where to find report server name in 11g.
I am Using weblogic server, so can i give weblogic server name
Thanks in advance.
Edited by: parapr on Aug 17, 2012 1:52 AM
Edited by: parapr on Aug 17, 2012 3:21 AMHi,
You have to have the report server
a. Installed and configured
b. Running.
See
http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
Cheers, -
Calling report from form in Web environment
Hi,
We are in the process of migrating our C/S appication (developed in Developer2k) to intranet using OAS. My question :
a) Is there any other way to call report from a form other than web.show_document?
b) When a report is called from the report server(using web.show_document), a log-in screen comes up unless the login and password is passed as parameter. Only problem with this is the password shows in the URL. Is there any other way to make the call so that the login & password does not show and the user won't have to login a second time to run the report?
Any reply would be appreciated..Thanks1. Yes you can use run_product package procedure to call reports on web, Oracle documentation says that run_product command will run in web env.
2. Yes you can hide username & password from user, it depends on which method you are using to call reports, if you are using web cgi then add username & password in file "cgicmd.dat" and "oascmd.dat" for web catridge or in cartridge parameter setting you will find this files in directory "\orant\report60\server\".
Darshan Desai
[email protected]
null
Maybe you are looking for
-
Hi All, I am using AS9i, Forms Server 6i, and Database 9i on a single Server Machine (Dell 2950). I am facing a problem on my server, Some time ifweb60 process capture the 100 % CPU. and did not release it. and server goes down . to recover it I have
-
Connect TimeCapsule to existing network
My parents have an old G5 iMac with no airport built in. They do have a Time Capsule (connected with ethernet to their computer) with which they like to connect to an existing wireless network (different modem/router). The iMac and modem cannot be co
-
How Do I Import My G4 Files Into G5???
So, I have a G4 with Tiger, and have just upgraded to a G5 with Leopard. Using Target Mode, I have moved over most of my documents and applications with no problem. HOWEVER, I can't figure out how to get my old Address Book, Inbox, and Sent Mail to c
-
Hi, I have a problem with querying a BEx query cube by MDX. The BEx query contains an external hierarchy that facilitates MDX functions such as Generate(). The MDX query is working in MDXTEST transaction code in BW system. However the error - "system
-
Can I buy MuVo TX FM with Firmware 1.18.02 pre-load
I bought the MuVo TX FM 52 MB model last year and loved it: I upgraded the firmware to Version .5 with no problems. I gave it to my dad as a gift (and he loves it), and now I want another one, this time the GB model. Is there any way I could just buy