Printing PDF attachment
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'
document_id = lv_docid
document_data = ls_foldinfo
object_header = lt_objhead
object_content = lt_objcontent
contents_hex = lt_content
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?