‎2010 May 03 2:41 PM
Hello all,
The type of spool request generated in SP01 transaction is of PDF type. Where can i find to change this type? I want to generate spool request with type Microsoft document, how it can be done?
regards,
abhijeet
‎2010 May 03 11:16 PM
SAP cannot convert documents into many formats. It can't convert PDF files at all (it can just convert ABAP list or OTF into PDF, that's all). You must purchase another software which will be able to do that. Another thing you can do is to embed the file into Word document (the PDF will be a simple clickable icon in the word document), using OLE2 (ABAP statements CREATE OBJECT, CALL METHOD OF, etc.)
‎2010 May 03 3:23 PM
Hi,
Spool contains the data of type BLOB.
Fetch the Spool data into internal Table of type SOLI....
DATA: IT_BUFFER TYPE TABLE OF SOLI WITH HEADER LINE
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
RQIDENT = L_SPOOLID
FIRST_LINE = 1
LAST_LINE =
DESIRED_TYPE = 'OTF'
IMPORTING
REAL_TYPE =
SP_LANG =
TABLES
BUFFER = IT_BUFFER
and then Convert it to your desired format (with CONVERT_OTF*) FM's.
Hope this may help you..
--
Krishna Chaitanya G
‎2010 May 03 5:28 PM
Hi Krishna,
I cant find any FM to convert spool object to word doc format. Moreover my spool object type is in PDF so executing FM 'RSPO_RETURN_SPOOLJOB' with DESIRED_TYPE = 'OTF' gives error that given spool id is not suitable for type OTF (not even for PDF). I went through other threads to find there is no straight forward method to convert spool object in word format. You may convert it into text but it looses all formatting information in original document.
‎2010 May 03 11:16 PM
SAP cannot convert documents into many formats. It can't convert PDF files at all (it can just convert ABAP list or OTF into PDF, that's all). You must purchase another software which will be able to do that. Another thing you can do is to embed the file into Word document (the PDF will be a simple clickable icon in the word document), using OLE2 (ABAP statements CREATE OBJECT, CALL METHOD OF, etc.)