SAP Knowledge Base Article - Public

3754037 - Difference Quantity (DMENG) From Release Blocked Invoices Not Available In Standard CDS/API; Guidance To Obtain Via Custom CDS In Public Cloud

Symptom

  • In the Release Blocked Invoices app, the field Difference Quantity (ARSEG-DMENG) is available in the UI.
  • The user cannot find any standard CDS view or API in public cloud that exposes this field to build a custom report.

Environment

  • Product: SAP S/4HANA Cloud Public Edition
  • Logistics Invoice Verification (Public Cloud)

Reproducing the Issue

  1. Open the app Release Blocked Invoices.
  2. Select the relevant variant .
  3. Run the app and note that the Difference Quantity (DMENG) is shown in the app, but no standard CDS/API is available to extract it for custom reporting.

Cause

  • No standard Core Data Services view is available that exposes Difference Quantity (DMENG) for the Release Blocked Invoices scenario.

Resolution

  1. Acknowledge that there is no standard CDS exposing DMENG; a custom CDS/report is required.
  2. Retrieve supplier invoice item quantities from a released CDS that provides SupplierInvoiceItem information (for example, I_SupplierInvoiceItem or a released supplier invoice API view).
  3. Retrieve goods receipt quantities for the related purchase order item from a released Material Document Item CDS (for example, I_MaterialDocumentItem_2). If the process is not GR-based invoice verification, use purchase order quantity from released purchase order API views.
  4. Derive “difference quantity” by subtracting receipts (net of reversals/returns) from invoiced quantities. Ensure consistent units of measure.
  5. Identify blocked invoices and (optionally) blocking reasons using a released CDS that provides supplier invoice blocking information (for example, I_SupplierInvoiceBlockingReason or a released supplier invoice block API view).
  6. When designing the logic, consider real business scenarios such as partial GRs, partial invoicing, returns, reversals, GR-based IV settings, negative differences, and unit conversions to align closely with the standard behavior shown in the app.

See Also

Keywords

release blocked invoices, dmeng, difference quantity, ARSEG-DMENG, cds view, api, public cloud, blocked invoice, supplier invoice, quantity variance, I_SupplierInvoiceItem, I_MaterialDocumentItem_2, I_SupplierInvoiceBlockingReason, liv, mrbr , KBA , MM-IV-LIV-2CL , Logistics Invoice Verification (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions