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

List to table

Former Member
0 Likes
1,035

Hi ,

Iam calling one report and returning one internal table data from the called program.By using the FMs 'List_from_memory' and 'List_to_ascii' Iam returning the list to ascii format.

Then now could you please let me know as how can I convert the same to internal table format.

7 REPLIES 7
Read only

Former Member
0 Likes
967

Which table?

Max

Read only

Former Member
0 Likes
967

in the FM you get the data in RFCRECORD.. right?

that is RAW (1000).

you can use that you access part by part using

gv_var0(10) or gv_var10(50) to access part by part

Read only

Former Member
0 Likes
967

Hi,

Iam returning back from called program exporting list to memory.so now using FM 'list_to_ascii' thereby passing the list.

So now how can I capture the data to internal table which is having the same format of the table retreived from called program

Read only

0 Likes
967

loop at the table that you got from the list.(using list_to_memory)

then in this loop pass one by one field to the internal tables(reqd format)'s work area like gs_it-f1 = gs_list-RFCRECORD+0(10)

then append it to the internal table you need.

Read only

0 Likes
967

Hi

I don't believe it's possible to do it: u need to convert the format from ASCII table by yourself

Max

Read only

Former Member
0 Likes
967

Hi,

Cannt I use 'list_convert_to_dat' for doing so?

Read only

0 Likes
967

I don't know that fm, u can try to use it

Max