Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

FM LIST_OF_MEMORY

thanks all.

i get the data in to <b>listobject</b>

but it in 2 columns , i want it seprate so i can find my data that i need.

i use the func asci? and it not solve it for me.

Tags:
replied

Hi again,

1. use it like this:

*----


Simple Example

1. Do two things

2. make one new simple program

named ZAM_TEMP01

code should be like this simple :

REPORT ZAM_TEMP01.

write :/ 'amit'.

*----


3. now create another program,

and just copy paste this code.

4.

report abc.

*----


data : ABAPLIST like table of ABAPLIST.

data : begin of itab occurs 0,

f(100) type c,

end of itab.

*----


start-of-selection.

submit zam_temp01 and return exporting list to memory.

*----


CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

LISTOBJECT = abaplist

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2.

CALL FUNCTION 'LIST_TO_ASCI'

TABLES

LISTASCI = itab

LISTOBJECT = abaplist

EXCEPTIONS

EMPTY_LIST = 1

LIST_INDEX_INVALID = 2

OTHERS = 3.

loop at itab.

write :/ itab-f.

endloop.

regards,

amit m.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question