‎2008 Apr 09 4:39 PM
Dear All,
I want to submit a Standard Report from my Report.
After that, I want to use the Internal Table filled in the called Report in my (CALLING) Report.
How can I do this?
Please suggest the soluti.
Thanks in advance.
Kind Regards,
Prasad
‎2008 Apr 09 4:49 PM
Hi Prasad,
You can try filling the selection screen of the Called program through:
SUBMIT PROGRAM VIA SELECTION-SCREEN
WITH Selection creteria.
For more details please chk the link
http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm
Thanks and Best Regards,
Ruthra
‎2008 Apr 09 5:07 PM
Hi prasad,
sorry for telling this.we are not able to use the internal table which we declared in called program in our calling program. we are able show means execute another report from one report usign selection screen and without using selection screen.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 9, 2008 1:21 PM
‎2008 Apr 09 6:05 PM
Hi Prasad,
Go through the below sample code
data: begin of itab occurs 0,
datum type sy-datum,
end of itab.
ranges: r_datum for sy-datum.
create some data in ITAB
itab-datum = sy-datum.
do 10 times.
itab-datum = itab-datum + 1.
append itab.
enddo.
Build the range
clear r_datum. refresh r_datum.
loop at itab.
r_datum-sign = 'I'.
r_datum-option = 'EQ'.
r_datum-low = itab-datum.
append r_datum.
endloop.
submit zreport
with s_datum in r_datum
and return.
Regards
Sreeni
‎2008 Apr 09 6:12 PM
Hi Prasad,
Check the following points.
1.Without selection screen appearance
passing all selection-screen values through rspar table .check the structure RSPARAMS.
DATA:
rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.
2.Using Variant created for the called program.
SUBMIT demo_program_submit_rep1
WITH SELECTION-TABLE rspar
AND RETURN EXPORTING LIST TO MEMORY.
3.
Once you call the standard program from your program using those above statements, the table in the standard report which is being displayed..same needs to be define in your program.
Then use following program to read the memory in the calling program
LIST_FROM_MEMORY
WRITE_LIST
DISPLAY_LIST
I hope that it helps you .
Regards,
Venkat.O
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
USING SELECTION-SET 'VAR1'
AND RETURN.
SUBMIT demo_program_submit_rep1
USING SELECTION-SET 'VAR1'
AND RETURN EXPORTING LIST TO MEMORY.
‎2008 Apr 10 7:45 AM
Dear All,
I cannot use the EXPORTING LIST TO ME MORY option as the Standard Program is using ALV GRID Disply.
So, is there some other solution?
thanks in advance.
Kind Regards,
Prasad
‎2008 Apr 24 10:06 AM
Hi Prasad,
Did ypu find the solution to this problem.even i want to get the output of one report into an internal table.the report which i am submitting is using ALV.i need to get the ALV output into an internal table in the program that i am calling.
Please tell me the solution if u have already found it.
Thanks.
Sravya
‎2008 Apr 24 10:27 AM
Hi
In your called report( Standard ), use EXPORT and in your calling report use IMPORT.
EXPORT lt_itab TO MEMORY ID 'ONE'.
IMPORT lt_itab FROM MEMORY ID 'ONE'.