Application Development 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: 

To get data from a spool number of ABAP List format into a internal table.

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use FM RSPO_RETURN_ABAP_SPOOLJOB

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

Use FM RSPO_RETURN_ABAP_SPOOLJOB

0 Kudos

Thanks Prem for your quick reply.

My problem was solved by GTREN's reply. Didnt get a chance to try your solution.