Application Development 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: 

Submit statment

Former Member
0 Kudos

hi guys,

I am calling a report program from another report program using

SUBMIT statment

the calling program(1st program) returns 3 statment like

1st table updated

2nd table updated

3rd table updated

the three statements which returns from the 1st program is simply a write statement in the 1st program

when i am using the submit statment like this in the 2nr program

submit '1stprogram' with sel_screen in int_table and return.

it return correctly(3 statements) and stops after the satament.

i also need to do some process aftet the statment and then only i need to print the (3)statement in the 2nd program

i want that 3 statment to be printed in the 2ndprogram..

How can i do this using submit statement?

Regards

senthil

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

try this addition of Submit statement

... EXPORTING LIST TO MEMORY

Effect

This addition stores the basic list for the program accessed in the ABAP Memory. It can only be used together with the addition AND RETURN.

The list is stored in the ABAP Memory as an internal table of the row type ABAPLIST, ABAPLIST being a structured data type in the ABAP Dictionary.

The calling program can access the list stored once program access is completed, using function modules belonging to the function group SLST.

The function module LIST_FROM_MEMORY loads the list from the ABAP Memory to an internal table of the row type ABAPLIST.

The function module WRITE_LIST inserts the content of an internal table of the row type ABAPLIST in the current list.

The function module DISPLAY_LIST displays the content of an internal table of the row type ABAPLIST in a separate list screen.

3 REPLIES 3

Former Member
0 Kudos

Hi Senthil Kumar,

Instead of using Write in first program, EXPORT those three statement to MEMORY... (by passing them in three variables and storing it in memory)

In second program, after completing your processing, IMPORT those variables FROM MEMORY and write them.

Regards,

Mohaiyuddin

Former Member
0 Kudos

hi,

try this addition of Submit statement

... EXPORTING LIST TO MEMORY

Effect

This addition stores the basic list for the program accessed in the ABAP Memory. It can only be used together with the addition AND RETURN.

The list is stored in the ABAP Memory as an internal table of the row type ABAPLIST, ABAPLIST being a structured data type in the ABAP Dictionary.

The calling program can access the list stored once program access is completed, using function modules belonging to the function group SLST.

The function module LIST_FROM_MEMORY loads the list from the ABAP Memory to an internal table of the row type ABAPLIST.

The function module WRITE_LIST inserts the content of an internal table of the row type ABAPLIST in the current list.

The function module DISPLAY_LIST displays the content of an internal table of the row type ABAPLIST in a separate list screen.

0 Kudos

thank you very much probelm solved.