Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Printing PDF attachment

Hello.

I'd like to print pdf document that is stored in SAP database as attachment to material record.

I am able to successfully read content of attachment thanks to FM SO_DOCUMENT_READ_API1

CALL FUNCTION 'SO_DOCUMENT_READ_API1'
       EXPORTING
         document_id                = lv_docid
       IMPORTING
         document_data              = ls_foldinfo
       TABLES
         object_header              = lt_objhead
         object_content             = lt_objcontent
         contents_hex               = lt_content
       EXCEPTIONS
         document_id_not_exist      = 1
         operation_no_authorization = 2
         x_error                    = 3
         OTHERS                     = 4.


I guess above function returns the content of pdf document in lt_content variable (DATA lt_content TYPE TABLE OF solix).

How can I send the content to spool?


Best regards,

Pawel


Not what you were looking for? View more on this topic or Ask a question