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

how to set Spool request type

Former Member
0 Likes
1,697

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

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,109

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.)

3 REPLIES 3
Read only

Former Member
0 Likes
1,109

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

Read only

0 Likes
1,109

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.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,110

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.)