Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SUBMIT

Former Member
0 Likes
996

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

7 REPLIES 7
Read only

Former Member
0 Likes
965

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

Read only

Former Member
0 Likes
965

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

Read only

Former Member
0 Likes
965

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

Read only

venkat_o
Active Contributor
0 Likes
965

Hi Prasad, Check the following points. 1.Without selection screen appearance

DATA:
rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.
passing all selection-screen values through rspar table .check the structure RSPARAMS.
SUBMIT demo_program_submit_rep1
WITH SELECTION-TABLE rspar
AND RETURN EXPORTING LIST TO MEMORY.
2.Using Variant created for the called program.
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.
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

Read only

Former Member
0 Likes
965

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

Read only

0 Likes
965

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

Read only

asik_shameem
Active Contributor
0 Likes
965

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'.