‎2008 Jun 20 4:54 PM
Hi Gurus,
I am calling a report from another report. Inside report_2 i am using,
SUBMIT report_1
AND RETURN.
I am getting one more screen,with one parameter which can be filled dynamically.
I want to hard code this in my code itself just to make sure i get the output.
How do i do that? I am not able to find the name of the paramter that comes up on screen.
How do i pass the value.
I am using:
rspar_line-selname = 'INPUT'. // using input as i donot know the parameter name
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABC'. // 'ABC' is say, the hard coded value i want to pass
APPEND rspar_line TO rspar_tab.
Then i do,
SUBMIT report_1
WITH SELECTION-TABLE rspar_tab
AND RETURN.
How do i proceed?
In the function module, i found that the value goes into a feild symbol 'input'
name of parametr i cud not get
Thanks,
Rashmi
‎2008 Jun 20 6:35 PM
Hi,
You can simply double click on the program report_1 and see
what are the selection-screen parameters and select-options
in that program.
Then you can also try this way
submit report report_1
with <parameter name> = <YOur value>
and return.
Regards,
Ravi Kanth
‎2008 Jun 20 4:59 PM
hi chech this and pass the fields like this
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit.htm
‎2008 Jun 20 6:31 PM
Execute Report_1 only and set the cursor on the field you would pass the parameter to. Hit F1 and go to technical settings, that should tell you the name of the screen field which you need to pass the value for.
Hope that helps,
Michael
‎2008 Jun 20 6:35 PM
Hi,
You can simply double click on the program report_1 and see
what are the selection-screen parameters and select-options
in that program.
Then you can also try this way
submit report report_1
with <parameter name> = <YOur value>
and return.
Regards,
Ravi Kanth
‎2008 Jun 20 6:38 PM
when is a selection-screen you use in
submit report report_name
with <selection_screen> in <table>
and return.
‎2008 Jun 23 1:03 PM
Thank you gurus.
I made the changes accordingly.
but, there are 2 stages to get output from my 1st report.
When i execute report1, i enter some values(now i have hard-coded them in program)
then again, i get PRINT DIALOG BOX
Here i need to enter the put device name. and again exceute.
I am not able to automate this in my program. Could you suggest?
Through F1 help, i found the screen_field name to be 'SFPOUTPAR-DEST'
and i enter default output device 'PDEST'
where do i give this?
and also, after this, i need to do a 'Print Preview' and see if file is opening up.
Can i automate these actions?
Thanks a lot. The previous inputs did help me.
Regards,
Rashmi