‎2006 Nov 30 10:35 PM
Hi All,
Can we export and import internal tables using SET and GET or any other method?
Thanks.
‎2006 Nov 30 10:39 PM
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
‎2006 Nov 30 10:39 PM
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
‎2006 Nov 30 10:51 PM
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