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

Former Member
0 Kudos
97

Hi,

how can i pass an internal table from one program to other using the submit statment?

Thanks,

Rakesh.

4 REPLIES 4

Former Member
0 Kudos
61

Hi,

use the syntax

SUBMIT <prog> WITH <rangetab> IN <table>.

for details check the link

http://help.sap.com/saphelp_webas620/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htm

Regards,

Anirban

0 Kudos
61

i want to submit an internal table declared in the program not select-option.

Former Member
0 Kudos
61

Hi,

You can add EXPORTING LIST TO MEMORY in addition to SUBMIT command and use FM LIST_FROM_MEMORY to get the table


DATA list_tab TYPE TABLE OF abaplist. 

SUBMIT report EXPORTING LIST TO MEMORY 
              AND RETURN. 

CALL FUNCTION 'LIST_FROM_MEMORY' 
  TABLES 
    listobject = list_tab 
  EXCEPTIONS 
    not_found  = 1 
    OTHERS     = 2. 

IF sy-subrc = 0. 
  CALL FUNCTION 'WRITE_LIST' 
    TABLES 
      listobject = list_tab. 
ENDIF. 

Hope this helps

//Kothand

bpawanchand
Active Contributor
0 Kudos
61

Hi

Check this sample snippet it gives you an idea

EXPORT F1 FROM F1

F2 FROM F2

ITAB3 FROM ITAB3

TO INTERNAL TABLE ITAB.

Regards

pavan