‎2007 Apr 23 11:21 AM
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,
‎2007 Apr 23 11:23 AM
hi Nishu,
U can use ABAP MEMORY concept eport / import the internal tables.
regards
sreeni
‎2007 Apr 23 11:23 AM
hi Nishu,
U can use ABAP MEMORY concept eport / import the internal tables.
regards
sreeni
‎2007 Apr 23 11:24 AM
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 .
‎2007 Apr 23 11:24 AM
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