2015 Feb 24 6:31 AM
Hello Experts,
I am trying to read the list output from FM'LIST_TO_ASCI' into table listasci = it_text but not able to read the whole data in the same.
here is my code:
TYPES: BEGIN OF ty_text,
line(9000),
END OF ty_text.
DATA: it_ABAPLIST type STANDARD TABLE OF ABAPLIST,
wa_text TYPE ty_text,
it_text TYPE TABLE OF ty_text.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = it_text
listobject = it_abaplist
Regards,
Anoop Singh Bhandari
2015 Feb 25 7:56 PM
Hi Anoop
When I used this function module , before I used the function module LIST_FROM_MEMORY to recover the table from memory.
For example :
SUBMIT Z*
EXPORTING LIST TO MEMORY
Condition....
CALL FUNCTION 'LIST FROM MEMORY'
TABLES
LISTOBJECT = IT_LIST
EXCEPTIONS
....
IF SY-SUBRC EQ 0.
CALL FUNCTION 'LIST_TO_ASCII'
EXPORTING
LIST_INDEX = -1
TABLES
LISTASCI = IT_TXT
LISTOBJECT = IT_LIST
EXCEPTION
.....
ENDIF.
After do it, you can process the table
Regards
Gregory
2015 Feb 26 8:48 AM