01-09-2008 6:31 AM
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
01-09-2008 7:00 AM
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.
01-09-2008 6:57 AM
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
01-09-2008 7:00 AM
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.
01-09-2008 7:10 AM