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

Export /import internal table

Former Member
0 Likes
507

Hi All,

I have a requirement where i need to export the internal table itab to the memory id and each time loop is getting executed,i need to append that record to the memory id,and as per the logic each time loop is getting executed itab is getting initialised.so is there any way to append record to the itab in memory id.

4 REPLIES 4
Read only

Former Member
0 Likes
480

Hi,

Look at the below screen, you will understand how to do that one

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm

Regards

Sudheer

Read only

0 Likes
480

Hi Sudheer,

can you explain it a bit, actually i am not able to understand, if possible please give some example.

Read only

Former Member
0 Likes
480

hi,

i don't think it is possibl to append the memory id, as the export statement always overwrites the memory...so, what you can do is import first the int. table (which has some 10 records, let's say), append the new values to the int. table (5 records, so total it will have 15 records now), export the int. table...repeat the processes until all the data is exported/imported...here, i am doing the same for an int. table and a variable...hope it helps

IMPORT CHKMENGE I_SEG1 FROM MEMORY ID 'TRY'.

MOVE I_MSEG-ZEILE TO I_SEG1-ZEILE.

MOVE I_MSEG-BWART TO I_SEG1-BWART.

MOVE I_MSEG-MENGE TO I_SEG1-MENGE.

CHKMENGE = CHKMENGE + I_SEG1-MENGE.

APPEND I_SEG1.

  • CLEAR I_SEG1.

EXPORT CHKMENGE I_SEG1 TO MEMORY ID 'TRY'.

if helpful, reward

Sathish. R

Read only

Former Member
0 Likes
480

hi,

in loop every time when the import and export statement is executed the previous contents is lost and new contents will be placed in that memory id.

according to me the only posibility every time u up load the internal table whole contents.it is not possible to append to memory id.