cancel
Showing results for 
Search instead for 
Did you mean: 

Generating the PDF Preview of several Documents via SDK

former_member634114
Participant
0 Kudos

Hello,

I am using the SDK for SAP ByD and I need the PDF document that is generated in some documents (Purchase Orders, Service Orders) but in the querys there is not always an available PDF with the DocumentOutputrequest.


Can I retrieve the "preview" of the document that is showed in the QA via code in the SDK?

Greetings.

Accepted Solutions (1)

Accepted Solutions (1)

jravnik
Participant

Hi Fernando,

please refer to this blog post: https://blogs.sap.com/2017/05/23/how-to-get-pdf-binary-content/

Best regards
Jürgen

former_member634114
Participant
0 Kudos

Thank you! That solved my problem.

Answers (1)

Answers (1)

dhem
Active Participant

Hi Fernando,

I'm assuming you're using the SAP Cloud SDK for Java here?

In general, the generated VDM for the respective OData APIs offers all the operations that are described in that service's metadata. That means that if a service offers a way to get such a preview, the SDK should help you to get it. That also means that if there's no way to do it with the SDK, the service does not offer that functionality. Should find a case where this is not true, then please let us know so that we can take a look at it.

Personally, I'm not familiar with the specific APIs, so I cannot comment on those. Hope that helps!

Best regards,

Dennis