I_SupAssgmtDmndDets
Supply Assignment Demand Order Item Details
I_SupAssgmtDmndDets is a Composite CDS View that provides data about "Supply Assignment Demand Order Item Details" in SAP S/4HANA. It reads from 1 data source (P_SupAssgmtDmndDets) and exposes 59 fields with key fields RequirementDocumentNumber, RequirementDocumentItem, RequirementType. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SupAssgmtDmndDets | Demand | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_SupAssgmtByDmndItem | _Assgmt | Demand.RequirementDocumentNumber = _Assgmt.RequirementDocumentNumber and Demand.RequirementDocumentItem = _Assgmt.RequirementDocumentItem and Demand.RequirementType = _Assgmt.RequirementType and Demand.Material = _Assgmt.Material and Demand.Plant = _Assgmt.Plant |
| [1..1] | I_SupDmndOvwPlant | _SupDmndPlant | $projection.Plant = _SupDmndPlant.Plant |
| [0..1] | I_SalesDocumentItem | _SalesDocumentItem | Demand.RequirementDocumentNumber = _SalesDocumentItem.SalesDocument and Demand.RequirementDocumentItem = _SalesDocumentItem.SalesDocumentItem |
| [0..1] | I_StockTransportOrderItem | _STONumberItemBasic | Demand.RequirementDocumentNumber = _STONumberItemBasic.PurchaseOrder and Demand.PurchasingDocumentItem = _STONumberItemBasic.PurchaseOrderItem |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | ISUPASSGMTDMND | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| EndUserText.label | Supply Assignment Demand Order Item Details | view |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RequirementDocumentNumber | P_SupAssgmtDmndDets | RequirementDocumentNumber | |
| KEY | RequirementDocumentItem | P_SupAssgmtDmndDets | RequirementDocumentItem | |
| KEY | RequirementType | P_SupAssgmtDmndDets | RequirementType | Requirement Type |
| RequestedDeliveryDate | P_SupAssgmtDmndDets | RequestedDeliveryDate | Requested Delivery Date | |
| RequestedRqmtQtyInBaseUnit | RequestedRqmtQtyInBaseUnit | |||
| ConfirmedRqmtQtyInBaseUnit | ConfirmedRqmtQtyInBaseUnit | |||
| DeliveredQuantityInBaseUnit | DeliveredQuantityInBaseUnit | |||
| OpenDemandQuantity | ||||
| AssignedQuantityInBaseUnit | _Assgmt | AssignedQuantityInBaseUnit | ||
| FixedQuantityInBaseUnit | _Assgmt | FixedQuantityInBaseUnit | ||
| SupAssgmtReservedQtyInBaseUnit | _Assgmt | SupAssgmtReservedQtyInBaseUnit | ||
| OnHoldQuantityInBaseUnit | _Assgmt | OnHoldQuantityInBaseUnit | ||
| ReadyForReleaseQtyInBaseUnit | _Assgmt | ReadyForReleaseQtyInBaseUnit | ||
| InboundAssignedQuantityInBsUnt | _Assgmt | InboundAssignedQuantityInBsUnt | ||
| BaseUnit | P_SupAssgmtDmndDets | BaseUnit | Unit of Measure | |
| ActlAmt | ||||
| NetPriceAmount | P_SupAssgmtDmndDets | NetPriceAmount | Net Price | |
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| Material | P_SupAssgmtDmndDets | Material | Vehicle Model | |
| MaterialGroup | P_SupAssgmtDmndDets | MaterialGroup | Product Group | |
| CrossPlantConfigurableProduct | P_SupAssgmtDmndDets | CrossPlantConfigurableProduct | Cross-plant CP | |
| Plant | P_SupAssgmtDmndDets | Plant | Valuation Area | |
| SalesOrganizationendasSalesOrganization | ||||
| DivisionendasDivision | ||||
| SalesDistrictendasSalesDistrict | ||||
| CompanyCodeendasCompanyCode | ||||
| SoldToPartyendasCustomer | ||||
| ShippingPointendasShippingPoint | ||||
| FashionCancelDateHorizon | FashionCancelDateHorizon | |||
| SupAssgmtOrdStatus | SupAssgmtOrdStatus | |||
| SupAssgmtSource | ||||
| CustomerGroup | CustomerGroup | Customer Group | ||
| CreationDate | CreationDate | Time Stamp | ||
| FashionCancelDate | FashionCancelDate | |||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| RequirementSegment | RequirementSegment | Req. Segment | ||
| ProductSeasonYear | ProductSeasonYear | Season Year | ||
| ProductSeason | ProductSeason | Season | ||
| ProductCollection | ProductCollection | Collection | ||
| ProductTheme | ProductTheme | Theme | ||
| OrderType | OrderType | Order Type | ||
| OrderTypeName | OrderTypeName | |||
| StorageLocation | StorageLocation | StorageLocation | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| ShippingGroupRule | ShippingGroupRule | PSST Grouping Rule | ||
| ShippingGroupNumber | ShippingGroupNumber | PSST Group | ||
| ARunSupplyAssgmtReleaseRule | ARunSupplyAssgmtReleaseRule | Release Rule | ||
| PartnerFunction | PartnerFunction | Partner Functn | ||
| SalesDocumentItemCategory | SalesDocumentItemCategory | Item Category | ||
| DeliveryGroup | DeliveryGroup | Delivery Group | ||
| ItemBillingBlockReason | ItemBillingBlockReason | Billing Block | ||
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | ||
| Supplier | Supplier | Supplier | ||
| ARunPhysSupAssgdQtyInBsUnt | _Assgmt | ARunPhysSupAssgdQtyInBsUnt | ||
| ARunPhysSupReservedQtyInBsUnt | _Assgmt | ARunPhysSupReservedQtyInBsUnt | ||
| _SupDmndPlant | _SupDmndPlant | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _STONumberItemBasic | _STONumberItemBasic |
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_SupAssgmtDmndDets.
-- 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_SupAssgmtDmndDets AS
SELECT
Demand.RequirementDocumentNumber AS RequirementDocumentNumber,
Demand.RequirementDocumentItem AS RequirementDocumentItem,
Demand.RequirementType AS RequirementType,
Demand.RequestedDeliveryDate AS RequestedDeliveryDate,
RequestedRqmtQtyInBaseUnit,
ConfirmedRqmtQtyInBaseUnit,
DeliveredQuantityInBaseUnit,
( OpenDemandQuantity - coalesce( _Assgmt.AssignedQuantityInBaseUnit , 0 ) ) AS OpenDemandQuantity,
_Assgmt.AssignedQuantityInBaseUnit AS AssignedQuantityInBaseUnit,
_Assgmt.FixedQuantityInBaseUnit AS FixedQuantityInBaseUnit,
_Assgmt.SupAssgmtReservedQtyInBaseUnit AS SupAssgmtReservedQtyInBaseUnit,
_Assgmt.OnHoldQuantityInBaseUnit AS OnHoldQuantityInBaseUnit,
_Assgmt.ReadyForReleaseQtyInBaseUnit AS ReadyForReleaseQtyInBaseUnit,
_Assgmt.InboundAssignedQuantityInBsUnt AS InboundAssignedQuantityInBsUnt,
Demand.BaseUnit AS BaseUnit,
cast ( NetPriceAmount * OpenDemandQuantity as netwr ) AS ActlAmt,
Demand.NetPriceAmount AS NetPriceAmount,
DocumentCurrency,
Demand.Material AS Material,
Demand.MaterialGroup AS MaterialGroup,
Demand.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
Demand.Plant AS Plant,
case when Demand.SalesOrganization is initial then coalesce( _SupDmndPlant.SalesOrganization, '' ) else Demand.SalesOrganization end as SalesOrganization AS SalesOrganizationendasSalesOrganization,
case when Demand.Division is initial then coalesce( _SupDmndPlant.Division, '' ) else Demand.Division end as Division AS DivisionendasDivision,
case when Demand.SalesDistrict is initial then coalesce( _SupDmndPlant.SalesDistrict, '' ) else Demand.SalesDistrict end as SalesDistrict AS SalesDistrictendasSalesDistrict,
case when Demand.CompanyCode is initial then coalesce( _SupDmndPlant.CompanyCode, '' ) else Demand.CompanyCode end as CompanyCode AS CompanyCodeendasCompanyCode,
case when Demand.SoldToParty is initial then coalesce( _SupDmndPlant.PlantCustomer, '' ) else Demand.SoldToParty end as Customer AS SoldToPartyendasCustomer,
case when Demand.ShippingPoint is initial then coalesce( _SupDmndPlant.ShippingPoint, '' ) else Demand.ShippingPoint end as ShippingPoint AS ShippingPointendasShippingPoint,
FashionCancelDateHorizon,
SupAssgmtOrdStatus,
'01' AS SupAssgmtSource,
CustomerGroup,
CreationDate,
FashionCancelDate,
ShipToParty,
RequirementSegment,
ProductSeasonYear,
ProductSeason,
ProductCollection,
ProductTheme,
OrderType,
OrderTypeName,
StorageLocation,
ShippingCondition,
ShippingGroupRule,
ShippingGroupNumber,
ARunSupplyAssgmtReleaseRule,
PartnerFunction,
SalesDocumentItemCategory,
DeliveryGroup,
ItemBillingBlockReason,
PurchasingDocument,
PurchasingDocumentItem,
Supplier,
_Assgmt.ARunPhysSupAssgdQtyInBsUnt AS ARunPhysSupAssgdQtyInBsUnt,
_Assgmt.ARunPhysSupReservedQtyInBsUnt AS ARunPhysSupReservedQtyInBsUnt
FROM P_SupAssgmtDmndDets AS Demand
LEFT OUTER JOIN P_SupAssgmtByDmndItem AS _Assgmt ON Demand.RequirementDocumentNumber = _Assgmt.RequirementDocumentNumber AND Demand.RequirementDocumentItem = _Assgmt.RequirementDocumentItem AND Demand.RequirementType = _Assgmt.RequirementType AND Demand.Material = _Assgmt.Material AND Demand.Plant = _Assgmt.Plant -- association [0..1]
LEFT OUTER JOIN I_SupDmndOvwPlant AS _SupDmndPlant ON Plant = _SupDmndPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_SalesDocumentItem AS _SalesDocumentItem ON Demand.RequirementDocumentNumber = _SalesDocumentItem.SalesDocument AND Demand.RequirementDocumentItem = _SalesDocumentItem.SalesDocumentItem -- association [0..1]
LEFT OUTER JOIN I_StockTransportOrderItem AS _STONumberItemBasic ON Demand.RequirementDocumentNumber = _STONumberItemBasic.PurchaseOrder AND Demand.PurchasingDocumentItem = _STONumberItemBasic.PurchaseOrderItem -- 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