P_SupAssgmtByDmndItem

DDL: P_SUPASSGMTBYDMNDITEM Type: view COMPOSITE

P_SupAssgmtByDmndItem is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_SupAssgmtByDmnd) and exposes 17 fields.

Data Sources (1)

SourceAliasJoin Type
P_SupAssgmtByDmnd Assgmt from

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PSUPASSGMTDITM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view

Fields (17)

KeyFieldSource TableSource FieldDescription
RequirementDocumentNumber RequirementDocumentNumber
RequirementDocumentItem RequirementDocumentItem
RequirementType RequirementType RequirementType
RequestedDate
Material Material Vehicle Model
Plant Plant Valuation Area
ProductAvailabilityDate
NumberOfLateSupplies
AssignedQuantityInBaseUnit
FixedQuantityInBaseUnit
SupAssgmtReservedQtyInBaseUnit
OnHoldQuantityInBaseUnit
ReadyForReleaseQtyInBaseUnit
InboundAssignedQuantityInBsUnt
BaseUnit BaseUnit Unit of Measure
ARunPhysSupAssgdQtyInBsUnt
ARunPhysSupReservedQtyInBsUnt

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 P_SupAssgmtByDmndItem.
-- 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 P_SupAssgmtByDmndItem AS
SELECT
  RequirementDocumentNumber,
  RequirementDocumentItem,
  RequirementType,
  min(RequestedDate) AS RequestedDate,
  Material,
  Plant,
  min(ProductAvailabilityDate) AS ProductAvailabilityDate,
  sum(NumberOfLateSupplies) AS NumberOfLateSupplies,
  sum(AssignedQuantityInBaseUnit) AS AssignedQuantityInBaseUnit,
  sum(FixedQuantityInBaseUnit) AS FixedQuantityInBaseUnit,
  sum(SupAssgmtReservedQtyInBaseUnit) AS SupAssgmtReservedQtyInBaseUnit,
  sum(OnHoldQuantityInBaseUnit) AS OnHoldQuantityInBaseUnit,
  sum(ReadyForReleaseQtyInBaseUnit) AS ReadyForReleaseQtyInBaseUnit,
  sum(InboundAssignedQuantityInBsUnt) AS InboundAssignedQuantityInBsUnt,
  BaseUnit,
  sum(ARunPhysSupAssgdQtyInBsUnt) AS ARunPhysSupAssgdQtyInBsUnt,
  sum(ARunPhysSupReservedQtyInBsUnt) AS ARunPhysSupReservedQtyInBsUnt
FROM P_SupAssgmtByDmnd AS Assgmt
;