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

ITAB prob...! !

naveenvishal
Contributor
0 Likes
694

How to retain the itab values even after program finishes execution...

ive the requirement of storing itab data and append/modifying the itab on each run...

prog 1 -


> progr2 -


> apppend itabA (progr2 ends and return, not prg1)

prog 1 -


> progr2 -


> apppend itabA (progr2 ends and return, not prg1)

prog 1 -


> progr2 -


> apppend itabA (progr2 ends and return, not prg1)

prog 1 -


> progr2 -


> apppend itabA (progr2 ends and return, not prg1)

at last ,

prog1 prints the entire itabA...

i need somthing like global itab...

Thanx,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
660

Hi

U can use SAP Memory SET/GET or

ABAP Memory IMPORT/EXPORT

NARENDRA

4 REPLIES 4
Read only

Former Member
0 Likes
660

Hi Naveen,

For this type of task you can use the ABAP memory. But make sure when your program finishes then you have to free the memory id aswell.

Read only

Former Member
0 Likes
660

Export your entries to memory and then import them ...

or write them to a file and download to desktop/app server ..

and again upload to the internal table ..

Read only

JozsefSzikszai
Active Contributor
0 Likes
660

hi Naveen,

just create a Z... table in SE11 and save the data into it from your program. At each run, you read out the entries from there, work with them and modify accordingly. There is no other way...

If you export the data into memory, you will loose it, when the session finishes (if my understanding is right you want to keep it for several runs).

hope this helps

ec

Read only

Former Member
0 Likes
661

Hi

U can use SAP Memory SET/GET or

ABAP Memory IMPORT/EXPORT

NARENDRA