Application Development and Automation 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: 
Read only

Passing internal table through Submit

Former Member
0 Likes
5,683

Hi,

How do i pass an internal table through Submit statement.

i dnt want to declare a select-options for this purpose.

Is ther any other way??

Answers will be rewarded

Regards,

Rohan

7 REPLIES 7
Read only

Former Member
0 Likes
1,563

Use the EXPORT TO MEMORY ID and IMPORT FROM MEMORY ID commands. Use the EXPORT statement in the calling program and IMPORT in the called program.

Manoj

Read only

Former Member
0 Likes
1,563

HI,

You dont have to pass thru SUBMIT.

Use

EXPORT itab to MEMORY ID 'ZIDY'.

SUBMIT ZPROGRAM.

In the calling program i.e. ZPROGRAM, import itab as follows:

IMPORT ITAB from MEMORY ID 'ZIDY'.

CLEAR ZIDY.

REFRESH ZIDY.

Best regards,

Prashant

Read only

Former Member
0 Likes
1,563

hi rohan,

Which program yuou want to pass your internal table. Is there ne selection screen interface b/w that.

Regards

Azad.

Read only

Former Member
0 Likes
1,563

You can do it by 'submit via selection screen' command. Use import & export to memory id to passing the internal table. Submit will pas the control in other program.

Read only

Former Member
0 Likes
1,563

Hi rohan,

Yes you can pass an internal table through IMPORT and EXPORT statement.

You can use EXPORT itab TO MEMORY ID 'ABC'.

then IMPORT itab FROM MEMORY ID 'ABC'.

You can do this for select options as well.

Rewards Points if helpful.

Regards

Sourabh Verma

Read only

former_member189059
Active Contributor
0 Likes
1,563

Hello Rohan...

to export a table use the following

DATA: wa_indx TYPE indx.

EXPORT tab = itab TO DATABASE indx(xy) FROM wa_indx CLIENT

SY-MANDT

ID 'DETAILLIST'.

  • to import use this

  • imports from database the list sent by the calling program

IMPORT tab = itab FROM DATABASE indx(xy) TO wa_indx CLIENT sy-mandt

ID 'DETAILLIST'.

  • deletes the data to save wastage of memory

DELETE FROM DATABASE indx(xy)

CLIENT sy-mandt

ID 'DETAILLIST'.

Read only

Former Member
0 Likes
1,563

Hi,

SUBMIT RMCB0300 WITH SL_WERKS-LOW EQ SO_WERKS-LOW

WITH SL_MATNR IN SO_MATNR

WITH VA EQ 'X'

WITH SL_SPMON-LOW EQ W_BUDAT1

WITH SL_SPMON-HIGH EQ W_BUDAT1

WITH SL_MTART-LOW EQ 'ROH'

WITH SLV_NO EQ 'STOCK'

EXPORTING LIST TO MEMORY AND RETURN.

Pls reward points.

Regards,

Ameet