SAP Knowledge Base Article - Public

2976071 - QueryDocumentOutputRequestIn Returns no Results


You are trying to retrieve the document UUID of the Output Document (PDF) of a Customer Invoice via the web service QueryDocumentOutputRequestIn and the operation FindByElements but no results are displayed in the response payload.


SAP Business ByDesign

Reproducing the Issue

Step 1: Get the invoice UUID via web service QueryCustomerInvoiceIn to get the invoice UUID.

In our example we will query the customer invoice XYZ (XYZ represents the Invoice ID).


<soap:Envelope xmlns:soap="" xmlns:glob="">















Step 2: Retrieve the Invoice UUID from the Response  <UUID>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</UUID>

<soapenv:Envelope xmlns:soapenv="" xmlns:glob="">

















Step 3: get the Document UUID via the web service ‘QueryDocumentOutputRequestIn’ to get the document UUID.

operation name: FindByElements

Continuing with the example, the customer invoice UUID is 00163e7c-932c-1eea-b4f4-4e7dbffd5860


Step 4: no results returned in the response Payload

<soap-env:Envelope xmlns:soap-env="">



<n0:DocumentOutputRequestByElementsResponse_sync xmlns:n0="" xmlns:prx="">









  • The Output Document is only created when a customer invoice is released.
  • If the invoice is not released and no Output Document is created the web service will display no results. 

Customer Invoice XYZ is Not Released and therefore has no Output Document. Hence, no results are returned in the query QueryDocumentOutputRequestIn.


You need to ensure that the Customer Invoice you are querying is Released and the Output Document was created in the Output History of the Customer Invoice.

See Also

Blog: Web Service Calls to Get Customer Invoice PDF from ByDesign


QueryDocumentOutputRequestIn; Query; web service; PDF; Output; No results; No data; UUID; , KBA , AP-RC-OUT , Output Management , SRD-CRM-INV , Customer Invoicing , Problem


SAP Business ByDesign all versions