03-06-2009 1:04 PM
Hi experts,
Is it possible to call a programm using an internal table? When I execute this code...
SUBMIT ZPROGRAM WITH mytable.
It doesn't work, does anybody know why?
thanks a lot!
regards,
Rebeca
03-06-2009 1:43 PM
Hi Rebeca,
You can't send internal table when submiting other report. Statement
SUBMIT ZPROGRAM WITH SELECTION-TABLE table.
Is used only to fill selection screen of the program with default values for parameters and select options which reside in table here. The one you wrote is not the appropriate one.
If you want to pass your table content b/w reports use ABAP memory:
EXPORT tab_in_memory FROM my_table[] TO MEMORY ID 'MYTAB'.
Now in the second report you are submiting get it back from ABAP memory:
data: my_tab_in_program_2 ...
IMPORT tab_in_memory TO my_tab_in_program2[] FROM MEMORY ID 'MYTAB'.
Regards
Marcin
03-06-2009 1:11 PM
Hi Rebeca,
Just check this link out.
http://sapbrainsonline.com/sap-training/SAP-tutorial-pdf-material_425.html
http://help.sap.com/abapdocu/en/ABAPSUBMIT.htm
Hope this clears your doubt.
Regards,
Qamar.
03-06-2009 1:47 PM
03-06-2009 1:43 PM
Hi Rebeca,
You can't send internal table when submiting other report. Statement
SUBMIT ZPROGRAM WITH SELECTION-TABLE table.
Is used only to fill selection screen of the program with default values for parameters and select options which reside in table here. The one you wrote is not the appropriate one.
If you want to pass your table content b/w reports use ABAP memory:
EXPORT tab_in_memory FROM my_table[] TO MEMORY ID 'MYTAB'.
Now in the second report you are submiting get it back from ABAP memory:
data: my_tab_in_program_2 ...
IMPORT tab_in_memory TO my_tab_in_program2[] FROM MEMORY ID 'MYTAB'.
Regards
Marcin