cancel
Showing results for 
Search instead for 
Did you mean: 

spool read data (sapscript output value)

Former Member
0 Kudos

Hi Gurus,

I need to read spool data. I tried following program ;

DATA : mem_tab LIKE abaplist OCCURS 0 WITH HEADER LINE.

DATA : BEGIN OF itab OCCURS 0,

data(2000),

END OF itab.

SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN

WITH rqident = '158593'

WITH first = '1'.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = mem_tab."( TABLE LIKE TABLE OF abaplist ).

break xkbahar.

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.

and [;

but doesn't help me. Because i want to read sapscript output value in spool.

anybody have idea ? how do i read my sapscript output data in spool? Any function any program?

Please help me with the solution.

Regards

Emre.

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

Well, I wonder why you read an already formatted spool instead of reading the original data, but you can use RSPO_RETURN_SPOOLJOB which reads the spool. It will be in OTF or RDI format according to how you generated it.

You may use CONVERT_OTF to convert to text for example. Search SDN for more information on these FMs.

Former Member
0 Kudos

thanks a lot Sandra, your answer is very usefull. 🐵

Edited by: emre karakurum on May 28, 2010 4:58 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

By selecting print icon of your form output ur able to generate spool of the document.

Ex: va03->provide orden no ->frm menu -> Sales Document -> issue output to-> select output type-> click on print icon(ctrl+p).

Spool of the form will be creatted for u, Check the same in SPO1 transaction.

For further details you can debug the same after selecting print icon.

If you need further details, Provide me the exact business requirement.

Regards,

Bysani.