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 Command

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi Friends,

i am using the command

SUBMIT report EXPORTING LIST TO MEMORY AND RETURN.

i am not write/diplay any values.

now i want the submit program internal table values to the current program.

how i get the internal table values.

Thanks & Regards,

Vallamuthu.M

4 REPLIES 4

former_member491305
Active Contributor
0 Kudos

Hi,

For this you have to use memory id concept.In the called program you have to export the output internal table to one memory id.After that,In your calling Program after submit statement you have to import the ITAB content to the Memory id.

Eg:

In Called program,

EXPORT ITAB to Memory id 'ABCD'.

In calling Program,

SUBMIT report AND RETURN.

Import ITAB From Memory id 'ABCD'.

Note:ITAB name and its structure should be same at Calling and called program .

0 Kudos

I have no access to calling progrm.

thanks & Regards,

vallamuthu.m

Former Member
0 Kudos

Hi

REPORT report2.

DATA: text TYPE c LENGTH 10,

rspar_tab TYPE TABLE OF rsparams,

rspar_line LIKE LINE OF rspar_tab.

rspar_line-selname = 'SELCRIT1'.

rspar_line-kind = 'S'.

rspar_line-sign = 'I'.

rspar_line-option = 'EQ'.

rspar_line-low = 'ABAP'.

APPEND rspar_line TO rspar_tab.

SUBMIT report1 USING SELECTION-SCREEN '1100'

WITH SELECTION-TABLE rspar_tab

WITH selcrit2 BETWEEN 'H' AND 'K'

AND RETURN.

U can use the SUBMIT report WITH SELECTION-TABLE itab.

Here itab needs to be of type rspar.

Itab has the structure:

SELNAME (length 8),

KIND (length 1),

SIGN (length 1),

OPTION (length 2),

LOW (length 45),

HIGH (length 45).

U fill the itab with the parameters or select-options of the report to be called and the corresponding values and then submit it.

Former Member
0 Kudos

DATA: wa_rspar TYPE rsparams.

DATA: t_rspar LIKE TABLE OF wa_rspar.

(I loaded idoc info previously to it)

CLEAR wa_rspar.

wa_rspar-selname = 'P_IDOC'.

wa_rspar-kind = 'P'.

wa_rspar-sign = 'I'.

wa_rspar-option = 'EQ'.

wa_rspar-low = wa_docnum-docnum.

APPEND wa_rspar TO t_rspar.

SUBMIT PROGRAMNAME WITH SELECTION-TABLE t_rspar AND RETURN

EXPORTING LIST TO MEMORY.

Please reward points if helpful.