SAP Knowledge Base Article - Public

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


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


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


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


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.


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


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