05-14-2009 11:37 AM
Hi experts,
can i pass table as parameters in report ( something similar as in function module ) ?
I would like to use "my" structure for table as parameters.
Thanks in advance
Martin
05-14-2009 11:42 AM
Hi,
Internal tables are generating at run time.
For a report first we need to fetch data from the database using select queries and then only we can able to process the internal tables
05-14-2009 11:44 AM
Hi
you can use FM in your report and can pass table as parameter in that.
please specify your questionh
05-14-2009 11:51 AM
I want to call report by using table parameters
submit report
with i_table = table
and return.
05-14-2009 11:54 AM
Hi,
Normally, we call a report as follows:
Submit report
with p_field1 = 'val1'
with p_field2 = 'val2'
with r_range1 in R_range.
We can use ranges but i don't think that have tables in report selection screens.
05-14-2009 11:56 AM
You can use 'exporting list to memory' options in addition with SUBMIT statement and use call function 'LIST_FROM_MEMORY' :
press F1 in submit statement.
submit report
with exporting list to memory
and return.
With luck,
Pritam.
Edited by: Pritam Ghosh on May 14, 2009 1:00 PM
05-14-2009 11:56 AM
If both reports are Z reports you can use EXPORT & IMPORT statements.
In first report.
EXPORT gt_item FROM gt_item to memory id 'ITEM'.
SUBMIT zreport2 AND RETURN.
and in second report.
IMPORT gt_item TO gt_item from MEMORY id 'ITEM'.
Regards
Sathar