06-05-2009 1:01 PM
Hi ,
I am looking for a function module to get data in a spool number (format ABAP List) to a internal table.
I tried using FM : RSPO_RETURN_SPOOLJOB
But it gave a dump saying ,
" Type conflict when calling the function module "SO_SOLIXTAB_TO_SOLITAB". "
This FM works fine for OTF data but not for ABAP List.
Any help leading to a solution is welcome.
Kindly help me in this ASAP.
Thanks in advance.
06-05-2009 1:17 PM
06-05-2009 1:10 PM
The below mentioned code was answered by one of the members. I am copy pasting this here as i am not aware of how to attach other threads.
use the below code to get spool data into internal table.
data: begin of itab occurs,
data(2000),
end of itab.
SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN
WITH rqident = 'spool number'
WITH first = '1'
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = mem_tab (table LIKE TABLE OF abaplist.)
IF NOT mem_tab[] IS INITIAL.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
List_index = -1
TABLES
listasci = itab
listobject = mem_tab (LIKE TABLE OF abaplist)
endif.
by the above code you can get the data into internal table itab.
06-05-2009 1:17 PM
06-05-2009 2:20 PM
Thanks Prem for your quick reply.
My problem was solved by GTREN's reply. Didnt get a chance to try your solution.