cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issues with PDF Documents Containing Images or URLs in SAP

Mateo_gr
Newcomer
0 Kudos
278

Hello SAP Community,

I am encountering a persistent issue when working with PDF documents in SAP, and I would appreciate any insights or solutions you might have.

Situation: I have been using the transaction CG3Z to upload PDF documents to the SAP server. After obtaining the document's information in a binary table (type BAPICONTEN = RAW 1022), I attempt to upload this information to a document using the function module SRM_DOCUMENT_CHECKIN_VIA_TAB. The document appears to be generated correctly. However, when I try to open it using the function module SRM_DOCUMENT_DISPLAY, I encounter a read error.

Observations:

  • PDFs containing only text can be viewed correctly without any issues.
  • If the PDF contains images, the document appears blank when opened.
  • I have also tested with other documents containing images, hyperlinks, etc., and I encounter the same read error.
  • If a local document is used instead of one from the SAP server, it works correctly regardless of the elements within the document (images, hyperlinks, etc.).

Accepted Solutions (0)

Answers (0)