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

SET/GET

former_member445996
Participant
0 Likes
388

Hi All,

Can we export and import internal tables using SET and GET or any other method?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
358

SET / GET is only for parameter ids (Screen Fields of transactions) I believe, you can use IMPORT and EXPORT for internal tables & work areas.

Examples for SET/ GET of parameters,

<b>SET PARAMETER ID 'KTN' FIELD lv_vbeln.

GET PARAMETER ID 'KTN' FIELD lv_vbeln.</b>

Examples for IMPORT and EXPORT of Internal Tables

<b>EXPORT I_MARA TO MEMORY ID 'MYID'.

IMPORT I_MARA FROM MEMORY ID 'MYID'. </b>

Regards

Kathirvel

2 REPLIES 2
Read only

Former Member
0 Likes
359

SET / GET is only for parameter ids (Screen Fields of transactions) I believe, you can use IMPORT and EXPORT for internal tables & work areas.

Examples for SET/ GET of parameters,

<b>SET PARAMETER ID 'KTN' FIELD lv_vbeln.

GET PARAMETER ID 'KTN' FIELD lv_vbeln.</b>

Examples for IMPORT and EXPORT of Internal Tables

<b>EXPORT I_MARA TO MEMORY ID 'MYID'.

IMPORT I_MARA FROM MEMORY ID 'MYID'. </b>

Regards

Kathirvel

Read only

raja_thangamani
Active Contributor
0 Likes
358

Hi,

You can use SET/GET if you have <b>Parameter ID</b> associated with the Screen Fields.

For any other purpose if you need to hold the data the you can use EXPORT...To MEMORY ID.

<b>To Export Itab:</b>

EXPORT (itab) TO MEMORY ID id.

<b>To Import the Itab:</b>

IMPORT tab = itab

MEMORY ID 'TABLE'.

Hope it will be helpful.

Raja T

Message was edited by:

Raja T

Message was edited by:

Raja T