Hi Gurus,
I have a problem can anyone share ideas
I have fetched output data from RFITEMAR by using list_from_memory and list_to_asci and now the out put is present in internal table "writes" and this is in string format my problem is how to fetch those data and put in my internal table.
my sample code is as below
DATA: listobj LIKE abaplist OCCURS 0 WITH HEADER LINE.
DATA: writes LIKE listzeile OCCURS 0 WITH HEADER LINE.
TYPES: BEGIN OF st_out,
END OF
START-OF-SELECTION.
SUBMIT rfitemar
EXPORTING LIST TO MEMORY AND RETURN.
REFRESH listobj.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobj
EXCEPTIONS
not_found = 1.
IF sy-subrc <> 0.
ENDIF.
REFRESH writes.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listasci = writes
listobject = listobj
EXCEPTIONS
empty_list = 1.
IF sy-subrc <> 0.
WRITE: / 'LIST_TO_ASCI error'(098).
ENDIF.
data:g_tabix type n.
IF writes IS NOT INITIAL. "i have to delete 1-11 lines from internal table"
DELETE writes INDEX 1.
DELETE writes INDEX 1.
DELETE writes INDEX 1.
DESCRIBE TABLE writes LINES g_tabix.
ENDIF.