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

There is an API for calling GETPDF for a billing Document but it only fetches latest PDF

AviralKumar761
Newcomer
0 Likes
383

Hi all, 

There is an API for calling GETPDF for a billing Document but it only fetches latest PDF whose status has been completed. Is there any way or Filter to fetch the Desired Template by filtering it in S4hana Public cloud.

/sap/opu/odata/SAP/API_BILLING_DOCUMENT_SRV/GetPDF  

API fo that

Accepted Solutions (0)

Answers (1)

Answers (1)

Stanislaw_Stefanowski
Active Participant
0 Likes

Hello,

In the API documentation, you can find the information that this is expected behavior:

"When a billing document has multiple output items containing a PDF, the service always fetches the newest PDF across all output items in output channels PRINT and EMAIL."

https://help.sap.com/docs/SAP_S4HANA_CLOUD/03c04db2a7434731b7fe21dca77440da/990f1ce2078f42e4b593d6d0...

I do not think that there is a simple way to change this functionality, especially in the public cloud. 

Best regards