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

problem in exporting internal table to memory

former_member189410
Participant
0 Likes
702

Hi,

I have to export two internal tables (thead and titem) from a report (RFTBCF00) to memory which i will import in my function module can anyone letme know hw it cud b done .

Points will b assigned

Thnx,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
673

hi Nishu,

U can use ABAP MEMORY concept eport / import the internal tables.

regards

sreeni

3 REPLIES 3
Read only

Former Member
0 Likes
674

hi Nishu,

U can use ABAP MEMORY concept eport / import the internal tables.

regards

sreeni

Read only

Former Member
0 Likes
673

You can take the help of this example:

report  z_82235_test1                           .

types: begin of tab1,
         a(1),
         b(1),
       end of tab1.

types: begin of tab2,
         c(1),
         d(1),
       end of tab2.

data: itab1 type table of tab1,
      wa1 like line of itab1,
      itab2 type table of tab2,
      wa2 like line of itab2.

wa1-a = '1'.
wa1-b = '2'.
append wa1 to itab1.
clear wa1.

wa1-a = '3'.
wa1-b = '4'.
append wa1 to itab1.
clear wa1.


export itab1 to memory id '001'.
export itab2 to memory id '002'.

submit z_82235_test2 and return exporting list to memory .

Read only

Former Member
0 Likes
673

Hi Nishu,

Since the program RFTBCF00 is a standard one, you cannot modify the program to export whatever internal tables you want.

YOu can export the output of that program to a memory location if you want.

submit RFTBCF00 ....exporting list to memory.

later you can use the fm LIST_FROM_MEMORY to get the exported output table.

Regards,

Ravi