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: 

How to export multiple spools in SP01/SM37 into HTML or PDF?

Former Member
0 Kudos

Hi guys,

I am a total newbie in SAP but I have been tasked by my supervisor to download/export multiple spools that I have specified in SP01 or SM37. Basically there are 7 usernames to be downloaded for month end processing. at the moment I am download it via SM37 and clicking one by one and saving locally. I was thinking if there is an easier way to do this, since there are about a couple of hundreds of spool to be downloaded and some of the spools are more than 3000+++ pages. Can someone help me with this ?

I am very sorry for this is my first post and a total noob.

Regards

Archproject

10 REPLIES 10

Former Member
0 Kudos

Hi,

Instead of downloading the file one by one manually.

You can write a program instead

-> Get the spool details(LISTIDENT) based on username from table TBTCP.

-> LOOP the spool requests

         SUBMIT RSTXPDFT4 with spool = spool no.

                                                       PDF filename = (declare it as variable and concatenate spool no.)

Regards,

Vasanth

0 Kudos

HI Vasanth,

Thanks for your reply. ok that sounds good. But the specification for the spool search is 7 usernames and within a range of date (e.g. 31/07/2013 - 5/08/2013).

1) Can this be implemented into the program as well ?

2) instead of PDF can it be in HTML format ?

Regards

Shock@Archproject

arindam_m
Active Contributor
0 Kudos

Hi,

You can read the spool number from TBTCP and pass spool number FM WWW_LIST_TO_HTML to convert it to HTML format.

CALL FUNCTION 'WWW_LIST_TO_HTML'

   EXPORTING

       list_index = lv_lsind      List index

  TABLES

        html =                      ltab_w3html.

Cheers,

Arindam

Former Member
0 Kudos

Hi Arindam,

Thanks but I do not have that kind of privileges. Is there no other easier way to do this without creating programs or calling any function.

Regards

Shock

Former Member
0 Kudos

Hi Arindam,

Is there any way to do what i need to do without doing any calling of functions or creating a program ?

Regards

Shock

Former Member
0 Kudos

Hi Arindam,

Is there any way to do what i need to do without doing any calling of functions or creating a program ?

Regards

Shock

arindam_m
Active Contributor
0 Kudos

Not at the mass level that you are looking for. You can only do individual lists.

Cheers,

Arindam

0 Kudos

Hi Shock,

Using standard program RSTXPDFT4 we can download single Spool in to PDF.

Your requirement for multiple spool requests, i think there no standard program for that, through Y development only it is possible.......

0 Kudos

This message was moderated.

former_member209120
Active Contributor
0 Kudos

This message was moderated.