SAP Knowledge Base Article - Public

3018964 - Billing Document - Read, Cancel, GetPDF API cannot fetch PDF document - SAP S/4HANA Cloud

Symptom

There are 2 output items in billing document - the former one is a PDF with print channel and the later one doesn't contain a valid PDF. When the status for the second output item is not yet 'Completed', the PDF can be fetched by the API request of Billing Document - Read, Cancel, GetPDF. However, when the second line is set to be 'Completed', the PDF cannot be fetched anymore with the following error:

  • PDF file could not be created - V_O2C/118

Environment

  • SAP S/4HANA Cloud 2011
  • SAP S/4HANA Cloud 2102

Cause

It's a known issue and it will be fixed in CE2105.

Resolution

By CE2105, as a temporary workaround, our proposal is as below:

  1. Add a new output item to the billing document 3590000227, with a print queue having the format PDF. 
  2. Try again and get this newest PDF with the service API_BILLING_DOCUMENT_SRV/GetPDF.

Keywords

KBA , SD-BIL-GF-OC , Output Control Billing , Product Enhancement

Product

SAP S/4HANA Cloud 2011 ; SAP S/4HANA Cloud 2102