Passing user defined parameters in oracle reports thru command line
Hi All
We are currently using Reports 6i with Oracle 10g 10.2.0.4.0
I would like to know that is it possible to pass user defined parameters values while calling report from command line.
For Example: I am using following coding to call report from command line.
for /f "tokens=1-3 delims=/ " %%a in ('date /t mm/dd/yyyy -1') do (
set mm=%%b
set dd=%%a
set yyyy=%%c)
rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%.pdf desformat=PDF BACKGROUND=NO BATCH=YES
The report contains some user defined parameter which is using in where condition of reqport query.
Select * from banks
where id = :Bank_ID
Now I want to Pass value for :Bank_Id from command line (like we pass parameter list while calling report with run_product), how it is possible?
Thanks
Hassan
Hi guys
Fortunately I am able to perform the required task as I just added the report parameter field as follows:
rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%%h%%mi%%ss%%ts%.pdf desformat=PDF BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log bank_id='MCB'
bank_id is the report parameter using in where clause.
Regards,
Hassan
Similar Messages
-
How to Pass User-defined Parameters from Forms to Reports
Hi!I am trying to launch an existing report from a form then spool it into a PDF file. I have been successful in passing the report properties using SET_REPORT_OBJECT_PROPERTY built-in and I am also able to launch the report using RUN_REPORT_OBJECT built-in. My problem is, I cannot seem to pass the user defined parameters from my form to the report eventhough I am using the same variable names.
this is a part of my code:
repid := Find_Report_Object('ACPPRACS');
Set_Report_Object_Property(repid, REPORT_EXECUTION_MODE,BATCH);
Set_Report_Object_Property(repid, REPORT_DESTYPE,FILE);
Set_Report_Object_Property(repid, REPORT_DESNAME,'C:\TMP\ACS01.PDF');
Set_Report_Object_Property(repid, REPORT_DESFORMAT,'PDF');
Set_Report_Object_Property(repid, REPORT_OTHER,'PF_NBO_CD='| |'"'| |:acs.nbo| |'"');
v_rep := RUN_REPORT_OBJECT(repid);
Hope you can help me soon. Thanks!first of all u will create a paramlist
then add_paramter to this list
and then pass this list to the report
by using run_product.
i think this is all.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jenny ([email protected]):
Hi!I am trying to launch an existing report from a form then spool it into a PDF file. I have been successful in passing the report properties using SET_REPORT_OBJECT_PROPERTY built-in and I am also able to launch the report using RUN_REPORT_OBJECT built-in. My problem is, I cannot seem to pass the user defined parameters from my form to the report eventhough I am using the same variable names.
this is a part of my code:
repid := Find_Report_Object('ACPPRACS');
Set_Report_Object_Property(repid, REPORT_EXECUTION_MODE,BATCH);
Set_Report_Object_Property(repid, REPORT_DESTYPE,FILE);
Set_Report_Object_Property(repid, REPORT_DESNAME,'C:\TMP\ACS01.PDF');
Set_Report_Object_Property(repid, REPORT_DESFORMAT,'PDF');
Set_Report_Object_Property(repid, REPORT_OTHER,'PF_NBO_CD='| |'"'| |:acs.nbo| |'"');
v_rep := RUN_REPORT_OBJECT(repid);
Hope you can help me soon. Thanks!<HR></BLOCKQUOTE>
null -
How to run report on command line with user parameter?
Hi,
How do I run oracle report on command line (batch) with pre-set User Parameter values ? e.g. :P_1 ='SYSDATE' , :P_2 = 'DEPT_NO'
ThanksHello,
If you are using rwrun :
rwrun report=myreport destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
If you are using rwclient , just add server=<reports server name> :
rwclient server=myrepsevrername report=+myreport+ destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
Regards -
How do I pass parameters to a report thru Report Viewer?
hi,
I am moving from Crystal Reports 8.5 to XI in VB6.
How do I pass parameters to a report thru Report Viewer?
Old VB code:
crReport.ParameterFields(0) = "FrProp;" & Trim$(.FrProp) & ";TRUE"
crReport.ParameterFields(1) = "ThProp;" & Trim$(.ThProp) & ";TRUE"
crReport.ParameterFields(2) = "RunDate;date(" & Format(Cntl.Run_Date, "yyyy,mm,dd") & ");TRUE"
crReport.ParameterFields(3) = "FrDate;date(" & Format(.FrDate, "yyyy,mm,dd") & ");TRUE"
crReport.ParameterFields(4) = "ThDate;date(" & Format(.ThDate, "yyyy,mm,dd") & ");TRUE"
Bill toddHi Bill,
Download sample code from the following link:[https://boc.sdn.sap.com/codesamples]
Hope this helps!!
Regards,
Shweta -
Calling user defined function in Oracle BI Answers?
Hi
I am new in Oracle BI . I want to use the user defined function in Oracle BI Answers as a column,function written in Oracle database to calculate the Sales Revenue.
I am using Oracle BI Standard Edition One and Oracle 10g database.
Please suggest me.
Thanks
NusratSearch for EVALUATE function you can call function and pass parameters
Example:
EVALUATE Function
This function is intended for scalar and analytic
calculations.
Syntax: EVALUATE('DB_Function(%1)', {
Comma separated Expression})
Example: SELECT
e.lastname,sales.revenue,EVALUATE('dense_rank()
over(order by %1
)',sales.revenue) FROM sales s, employee e; -
Passing user-defined field to Backend system
Hi All,
Please advice how we can pass user-defined fields of shopping cart to same user-defined fields in purchase requisition/purchase order in backend R/3 system.
I know there is parameter IT_CUF_ITEM in BADI BBP_CREATE_REQ_BACK. If anyone know how to pass field values by this parameter or otherwise, it will be very helpful to me.
Thanks & Regards,
Kamaljit SinghHello Kamaljit,
If you want to pass the custom parameters then you can use the badi BBP_CREATE_PO_BACK/BBP_CREATE_REQ_BACK to fill the header/Item level parameters.
while building the item level parameters internal table, make sure that you are passing the header guid and the item number and the R/3 BackEnd table name,Fieldname(R/3 Custom Fieldname) with the value(SRM Custom field value).
Hope this information will be useful to you.
Regards,
Mani.
Please assign points for usefull answers
Message was edited by: Mani Sreedharala -
How to create user defined button in alv report
how to create user defined button in alv report
thnks in advance.Hi,
U can define it the the PF-STATUS ( Menu for ALV ).
For that u have to define it in the EVENTCAT.
form z_eventcat using p_i_eventcat type slis_t_event.
data: i_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = p_i_eventcat
exceptions
list_type_wrong = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
clear i_event.
read table p_i_eventcat with key name = slis_ev_top_of_page into
i_event.
if sy-subrc = 0.
move 'TOP_OF_PAGE' to i_event-form.
append i_event to p_i_eventcat.
endif.
read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
if sy-subrc = 0.
move 'SET_PF_STATUS' to i_event-form.
append i_event to p_i_eventcat.
endif.
clear i_event.
read table p_i_eventcat into i_event with key name = slis_ev_user_command .
if sy-subrc = 0.
move 'USER_COMMAND' to i_event-form.
append i_event to p_i_eventcat.
endif.
And in the DISPLAY
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = v_progname
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_grid_title = v_gridtitle
i_save = 'A'
is_layout = i_layout
it_fieldcat = i_fieldcat[]
it_sort = i_sortinfo
it_events = i_eventcat
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = it_final
exceptions
program_error = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
*MENU SETTINGS.
form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'ALV_MENU'.
endform. "SET_PF_STATUS
endform. " Z_EVENTCAT
Now double click on ALV MENU nad u can create a button in the application bar.
Regards,
Pritha. -
How to alter user defined objects in oracle
Hi all,
Can any one tell me how to alter user defined objects in oracle .
Thanks,
P Prakashprakash wrote:
Hi all,
Can any one tell me how to alter user defined objects in oracle .
DROP
then
CREATE
Handle: prakash
Email: [email protected]
Status Level: Newbie (80)
Registered: Feb 3, 2011
Total Posts: 185
Total Questions: 67 (65 unresolved)
so many questions & so few answers.
How SAD!
Edited by: sb92075 on Sep 22, 2011 9:22 AM -
USER DEFINED TABLES IN XL REPORTER
Hello,
I have a user defined field based on a user defined table with code and name. I call my user defined field in XL reporter. This field varied with the data that I report. I would like to know how I can add the name of the table in my XL report. We can call additionnal tables, but I don't know how I can write the instruction to do it with a variable field.
Thanks
Isabelle LAGUERRE
Serena
FranceIsabelle,
Usere Defined Tables are not supported by the XL Report Writer. There is not a method to import UTD's at this time. User Defined Fields (UDF's) are supported.
Eddy -
User defined table in XL Reporter
Hi Everyone,
Can a user defined table be used in XL Reporter. I know we can add user defined fields to be used in XL Reporter but can we also make use of user defined table to draw data in a XL Reporter report?
If yes, how can we add them.
Thank you for your help.
Regards,
PayalHi,
It does not seem that the information can be extracted from User Defined Tables in XL Reporter.
May be you can have a look at the Landing Page of XLR and check if you can find something relevant :
[XLR Landing Page|https://websmp106.sap-ag.de/~sapidb/011000358700001172792006E]
Kind Regards,
Jitin
SAP Business One Forum Team -
User defined fields in XL Reporter
Hi
I'm using SAP Business One 2007B PL:4,
I cant able to enable User defined fields in XL-Reporter. How to enable this.
Kindly help me in this.
Awaiting for your response.
Thanking You
Best Regards,
Gayathri.PCheck this SAP Note: 976218 Upgrading XL Reporter with user defined fields exposed
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E¬e_numm=976218] -
Make CFL for user defined tables in Crystal Report 8.8 ?
Hi Experts
Use Follwing qry for CFL ( user defined tables) in Crystal Report But its not Show CFL after run the Report in SAP B1 8.8
Period@Select T0.* from @OICC T0
Thanks & Regards
Dinesh LadeHi,
As far as i know, SBO can't figure out in such instance what are you doing, try linking it to an original table.
I usually use OADM for this purpose.
Hope this helps.
Regards,
Daniel -
Run report in Oracle Application from command line
Hi All,
I have a requirement that i have to generate a report through command line and save the output as pdf in a folder on the server. How can i achieve this task. Is any body have some idea plz reply quickly. We have a UAT at 10th of this month.
Thanx in Advance.
Saquib MahmoodHi,
You can use CONCSUB (or SQL*Plus with anonymous PL/SQL block calling fnd_request.submit_request) to submit concurrent request which is a report with output set to PDF, then get the pdf file from $APPLCSF/$APPLOUT/o<request_id>.out and copy to the folder on the server as xxxx.pdf.
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/ -
To run a report from command line, when using jdbc-odbc bridge
Hi,
How to run a report from command line, when using jdbc-odbc bridge?
Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
Please specify, what is command line arguments for jdbc-odbc bridge driver?
Environment : Oracle 9i Report Builder on WinNT
Database : Sybase
Regards,
RamananHello Ramanan,
Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
JDBC PDS allows user to connect one or more same or different kind of databases.
While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
rwrun eg :
rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
Server eg :
http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
http :
Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
With Regards
Reports Team -
Running Oracle Scripts from Command Line
Hi,
How can i run Oracle scripts from command line.
Actually i need to run these scripts from MSBuild before running Unit test projectsC:\>sqlplus @myscript
That would be the easiest variation
C:\>sqlplus user/passwd@tns_alias @myscript
would be an often used variation
And then there is of course the version with parameter passing:
C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
Dunno about MSBuild
Maybe you are looking for
-
What I am looking to do is use BPEL for messaging (and manipulation of said messages) in the backend for data synchronization to disparate sources. Currently, we are investigating the following: Oracle 9i DB with a stored procedure that accepts a num
-
Files and apps not opening by 2x click in Finder window?
Folks: No situation on my older G4 iBook running 10.4.11: I can't get files or applications to open or launch from a finder window by clicking on them; they do open by highlighting and then command + o. And any apps I have in the Dock launch by singl
-
HT3728 set password time capsule using windows
I lost the disk for the time capsule and am using a windows based computer. I would like to reset the time capsule password. How can I do that?
-
Change a costcenter company code when the transactional data is posted
Hi, we need to change the comapny code of a cost center. There are a few transacational data posted against the cost center. How can I change the cc of a cost center now? Please suggest. Thanks
-
Yaourt not finding AUR dependencies?
Trying to install the Iron build of Chromium: ==> Making package: iron 4.0.227-2 x86_64 (Wed Dec 9 14:26:24 EST 2009) ==> Checking Runtime Dependencies... ==> Installing missing dependencies... lib32-dbus-glib package not found, searching for group..