I_DSD_SettlementQuantityDiff
Settlement Quantity Differences
I_DSD_SettlementQuantityDiff (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Manufacturing
I_DSD_SettlementQuantityDiff is a Basic CDS View that provides data about "Settlement Quantity Differences" in SAP S/4HANA. It reads from 1 data source (/dsd/sl_sld_qbal) and exposes 44 fields with key fields DSD_SettlementDocument, Material. It has 11 associations to related views. Part of development package DSDV.
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Manufacturing |
| Application Component | LE-DSD |
| Capabilities | Data Source for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Manufacturing for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /dsd/sl_sld_qbal | _QuantityDifferences | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [0..1] | I_Batch | _Batch | $projection.Plant = _Batch.Plant and $projection.Material = _Batch.Material and $projection.Batch = _Batch.Batch |
| [0..1] | I_UnitOfMeasure | _UnitOfMeasure | $projection.UnitOfMeasure = _UnitOfMeasure.UnitOfMeasure |
| [0..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
| [0..1] | I_DSD_DifferenceEvaluation | _CheckOutEvaluation | $projection.CheckOutDiffWithinTolerance = _CheckOutEvaluation.DifferenceEvaluation |
| [0..1] | I_DSD_DifferenceEvaluation | _CheckInEvaluation | $projection.CheckInDiffWithinTolerance = _CheckInEvaluation.DifferenceEvaluation |
| [0..1] | I_DSD_DifferenceEvaluation | _ConfirmationEvaluation | $projection.LoadgConfDiffWithinTolerance = _ConfirmationEvaluation.DifferenceEvaluation |
| [0..1] | I_DSD_DifferenceEvaluation | _FinalEvaluation | $projection.FinalDifferenceWithinTolerance = _FinalEvaluation.DifferenceEvaluation |
| [0..1] | I_DSD_TourControlParameter | _ControlParameter | $projection.CtrlParamForQuantityDifference = _ControlParameter.CtrlParamForQuantityDifference |
| [0..1] | I_DSD_SettlementToleranceGroup | _ToleranceGroup | $projection.SettlementToleranceGroup = _ToleranceGroup.SettlementToleranceGroup |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Settlement Quantity Differences | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DSD_SettlementDocument | sld_doc_id | DSD: Settlement Document Number | |
| KEY | Material | matnr | Material Number | |
| TargetQuantity | quan_planned | DSD - RA: Target Quantity | ||
| SettlementCheckOutQuantity | quan_checkout | Settlement: Check-Out Quantity | ||
| SettlmtCheckOutDiffQuantity | quan_diff | DSD: Settlement Quantity Difference for Check-Out | ||
| SettlementDeliveryQuantity | quan_delivered | Settlement: Delivered Quantity | ||
| SettlementReturnedQuantity | quan_return | Settlement: Quantity Taken Back | ||
| SettlementCheckInQuantity | quan_checkin | Settlement: Quantity for Check-In | ||
| SettlementFinalDiffQuantity | quan_final_diff | DSD: Settlement Final Difference | ||
| UnitOfMeasure | uom_for_quan | Unit | ||
| QuantityDifferenceAmount | value_fin_diff | Amount of the Quantity Differences | ||
| Currency | currency_fin_dif | Currency Key | ||
| Plant | plant | Valuation Area | ||
| Batch | charg | Chargeable Proc. | ||
| ValuationType | bwtar | Valuation Type | ||
| CtrlParamForQuantityDifference | spec_return | Control Parameters | ||
| CheckOutDiffWithinTolerance | co_diff_eval | Check-Out Difference Within/Outside of Tolerance | ||
| SettlmtPlannedCheckInQuantity | quan_checkin_pln | Settlement: Planned Quantity for Check-In | ||
| SettlementCheckInDiffQuantity | quan_checkin_dif | Settlement: Difference Quantity at Check-In | ||
| CheckInDiffWithinTolerance | ci_diff_eval | Check-In Difference Within/Outside of Tolerance | ||
| SettlementLoadingConfQuantity | quan_lc_init | Settlement: Quantity for Initial Loading Confirmation | ||
| SettlmtLoadgConfDiffQuantity | quan_lc_init_dif | Settlement: Difference Quantity for Initial Loading Conf. | ||
| SettlmtPlannedReloadQuantity | quan_rld_plan | Settlement: Planned Quantity for Reload | ||
| SettlmtReloadCheckInQuantity | quan_rld_ci | Settlement: Quantity for Check-In Reload | ||
| SettlmtRldLoadingConfQuantity | quan_rld_lc | Settlement: Quantity for Loading Confirmation Reload | ||
| SettlmtRldLoadgConfDiffQty | quan_rld_lc_diff | Settlement: Difference Qty for Loading Confirmation Reload | ||
| SettlmtReloadCheckOutQuantity | quan_rld_co | Settlement: Quantity for Check-Out Reload | ||
| SettlmtRldCheckOutDiffQuantity | quan_rld_co_diff | Settlement: Difference Quantity for Check-Out Reload | ||
| LoadgConfDiffWithinTolerance | lc_diff_eval | Loading Confirmation Difference within/outside of Tolerance | ||
| SettlmtPlndCheckOutCheckInQty | quan_final_plan | Settlement: Planned Check-Out plus Check-In Quantity | ||
| SettlmtCheckOutCheckInQuantity | quan_final | Settlement: Check-Out plus Check-In Quantity | ||
| FinalDifferenceWithinTolerance | final_diff_eval | Final Difference within/outside of Tolerance | ||
| SettlementToleranceGroup | tolgrp_id | Tolerance Group | ||
| _Plant | _Plant | |||
| _Product | _Product | |||
| _Batch | _Batch | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _Currency | _Currency | |||
| _ControlParameter | _ControlParameter | |||
| _ToleranceGroup | _ToleranceGroup | |||
| _CheckOutEvaluation | _CheckOutEvaluation | |||
| _CheckInEvaluation | _CheckInEvaluation | |||
| _ConfirmationEvaluation | _ConfirmationEvaluation | |||
| _FinalEvaluation | _FinalEvaluation |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_DSD_SettlementQuantityDiff.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW I_DSD_SettlementQuantityDiff AS
SELECT
sld_doc_id AS DSD_SettlementDocument,
matnr AS Material,
quan_planned AS TargetQuantity,
quan_checkout AS SettlementCheckOutQuantity,
quan_diff AS SettlmtCheckOutDiffQuantity,
quan_delivered AS SettlementDeliveryQuantity,
quan_return AS SettlementReturnedQuantity,
quan_checkin AS SettlementCheckInQuantity,
quan_final_diff AS SettlementFinalDiffQuantity,
uom_for_quan AS UnitOfMeasure,
value_fin_diff AS QuantityDifferenceAmount,
currency_fin_dif AS Currency,
Plant,
charg AS Batch,
bwtar AS ValuationType,
spec_return AS CtrlParamForQuantityDifference,
co_diff_eval AS CheckOutDiffWithinTolerance,
quan_checkin_pln AS SettlmtPlannedCheckInQuantity,
quan_checkin_dif AS SettlementCheckInDiffQuantity,
ci_diff_eval AS CheckInDiffWithinTolerance,
quan_lc_init AS SettlementLoadingConfQuantity,
quan_lc_init_dif AS SettlmtLoadgConfDiffQuantity,
quan_rld_plan AS SettlmtPlannedReloadQuantity,
quan_rld_ci AS SettlmtReloadCheckInQuantity,
quan_rld_lc AS SettlmtRldLoadingConfQuantity,
quan_rld_lc_diff AS SettlmtRldLoadgConfDiffQty,
quan_rld_co AS SettlmtReloadCheckOutQuantity,
quan_rld_co_diff AS SettlmtRldCheckOutDiffQuantity,
lc_diff_eval AS LoadgConfDiffWithinTolerance,
quan_final_plan AS SettlmtPlndCheckOutCheckInQty,
quan_final AS SettlmtCheckOutCheckInQuantity,
final_diff_eval AS FinalDifferenceWithinTolerance,
tolgrp_id AS SettlementToleranceGroup
FROM /dsd/sl_sld_qbal AS _QuantityDifferences
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Plant = _Batch.Plant AND Material = _Batch.Material AND Batch = _Batch.Batch -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON UnitOfMeasure = _UnitOfMeasure.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_DSD_DifferenceEvaluation AS _CheckOutEvaluation ON CheckOutDiffWithinTolerance = _CheckOutEvaluation.DifferenceEvaluation -- association [0..1]
LEFT OUTER JOIN I_DSD_DifferenceEvaluation AS _CheckInEvaluation ON CheckInDiffWithinTolerance = _CheckInEvaluation.DifferenceEvaluation -- association [0..1]
LEFT OUTER JOIN I_DSD_DifferenceEvaluation AS _ConfirmationEvaluation ON LoadgConfDiffWithinTolerance = _ConfirmationEvaluation.DifferenceEvaluation -- association [0..1]
LEFT OUTER JOIN I_DSD_DifferenceEvaluation AS _FinalEvaluation ON FinalDifferenceWithinTolerance = _FinalEvaluation.DifferenceEvaluation -- association [0..1]
LEFT OUTER JOIN I_DSD_TourControlParameter AS _ControlParameter ON CtrlParamForQuantityDifference = _ControlParameter.CtrlParamForQuantityDifference -- association [0..1]
LEFT OUTER JOIN I_DSD_SettlementToleranceGroup AS _ToleranceGroup ON SettlementToleranceGroup = _ToleranceGroup.SettlementToleranceGroup -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA