Application Development and Automation 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: 
Read only

Saving spool to excel

marcin_cholewczuk
Active Contributor
0 Likes
10,439

Hello all,

Does anybody know how can I write spool to excel file? I know that FM 'LIST_DOWNLOAD' can save what's currently on screen but first I would have to display spool as transaction SP01 does and it's not that ease as I thought. Any ideas ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,111

Hi,

Check this link it will help you.

https://forums.sdn.sap.com/click.jspa?searchID=5891689&messageID=3856705

Thanks,

Reward If Helpful.

Hello all,

Does anybody know how can I write spool to excel file? I know that FM 'LIST_DOWNLOAD' can save what's currently on screen but first I would have to display spool as transaction SP01 does and it's not that ease as I thought. Any ideas ?

5 REPLIES 5
Read only

Former Member
0 Likes
3,112

Hi,

Check this link it will help you.

https://forums.sdn.sap.com/click.jspa?searchID=5891689&messageID=3856705

Thanks,

Reward If Helpful.

Read only

Former Member
0 Likes
3,111

Hi,

SUBMIT rm07idif WITH SELECTION-TABLE li_selection

EXPORTING LIST TO MEMORY AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = li_listobject

EXCEPTIONS

not_found = 1

OTHERS = 2.

CHECK sy-subrc = 0.

CALL FUNCTION 'WRITE_LIST'

TABLES

listobject = li_listobject

EXCEPTIONS

empty_list = 1

OTHERS = 2.

IF sy-subrc <> 0.

ENDIF.

Or here you can send the spool to Excel.

Try this link

http://www.geocities.com/victorav15/sapr3/abapfun.html#ole

OR

Use Function RSPO_DISPLAY_SPOOLJOB

to automate the process of display.

Try SeE37 RSPO_DISPLAY_SPOOLJOB single test

nothing could be easier.

RSPO_DOWNLOAD_SPOOLJOB downloads to a flat file

That could be processed to CSV & captured into Excel.

Reward points if useful

Read only

amit_khare
Active Contributor
0 Likes
3,111

Check the related links -

Regards,

Amit

Reward all helpful replies.

Read only

former_member404244
Active Contributor
0 Likes
3,111
Read only

Former Member
3,111

hi

good

There is a possibility of download the spool file as txt-file. .

Use Tranx SP01 - select the spool entry -->"spool request --> forward as text . You will find the file in your SAP work directory as <sid><spool#>.

http://www.sap-img.com/abap/download-in-background-in-excel-format.htm

or use fm RSPO_DOWNLOAD_SPOOLJOB.

reward point if helpful.

thanks

mrutyun^