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 with an internal table

former_member384574
Active Participant
0 Kudos

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

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos

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

3 REPLIES 3

qamar_javed
Participant
0 Kudos

0 Kudos

Thanks a lot!!

Regards,

Rebeca

MarcinPciak
Active Contributor
0 Kudos

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