2008 Jul 04 5:03 AM
Hi,
I want to know whether it is possible to download (i.e either thru' some customisation) the output from the spool request to a excel sheet without any manual intervention ie.automatically.
Thanks
Suresh
2008 Jul 04 5:14 AM
Hi,
It is possible. You can use the folowing FM for converting the Spool to PDF
CONVERT_ABAPSPOOLJOB_2_PDF
CONVERT_OTFSPOOLJOB_2_PDF
If not you can get the Tempse id of the spool and use the FM
RSTS_OPEN_RB
RSTS_READ
This will give you the contents of the spool. Tempse object for the Spool can be found in the Spool Request Header
2008 Jul 04 5:14 AM
Hi,
It is possible. You can use the folowing FM for converting the Spool to PDF
CONVERT_ABAPSPOOLJOB_2_PDF
CONVERT_OTFSPOOLJOB_2_PDF
If not you can get the Tempse id of the spool and use the FM
RSTS_OPEN_RB
RSTS_READ
This will give you the contents of the spool. Tempse object for the Spool can be found in the Spool Request Header
2008 Jul 04 8:20 AM
Hi Siva,
Thanks for your reply,
I tried to use FM: CONVERT_ABAPSPOOLJOB_2_PDF but the value in SRC_SPOOLID field is getting displayed as 30,611 instead of 30611 and because of this, the file is not downloaded.
Thanks
Suresh
2008 Jul 04 8:48 AM
Hi,
Try passing the Spool ID programatically? That will not have separators and should work.
or else hard code the spool number.
Edited by: Siva Prakash on Jul 7, 2008 1:47 AM
2009 Jun 03 11:13 AM