C_SupplyDemandItem

DDL: C_SUPPLYDEMANDITEM Type: view_entity CONSUMPTION

Supply And Demand Items

C_SupplyDemandItem is a Consumption CDS View that provides data about "Supply And Demand Items" in SAP S/4HANA. It reads from 1 data source (ppmrp_sup_dem_it) and exposes 69 fields with key fields RowIndex, MRPPlant, MRPArea, Material. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
ppmrp_sup_dem_it ppmrp_sup_dem_it from

Associations (1)

CardinalityTargetAliasCondition
[1] E_SupplyDemandItem _SupplyDemandItem $projection.RowIndex = _SupplyDemandItem.RowIndex

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Supply And Demand Items view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view

Fields (69)

KeyFieldSource TableSource FieldDescription
KEY RowIndex line VAT Return Line Item
KEY MRPPlant mrpplant Plant
KEY MRPArea mrparea MRP Area
KEY Material matnr Vehicle Model
MRPPlanningSegmentType
MRPPlanningSegment
MaterialShortageDefinition
MRPElementSupplyAggregation
MRPElementDemandAggregation
MaterialExternalID
MRPElement
MRPElementItem
MRPElementScheduleLine
MRPElementCategory
MRPElementCategoryShortName
MRPElementAvailyOrRqmtDate
MRPAvailableQuantity
MRPElementOpenQuantity
MRPElementQuantityIsFirm
MRPElementDocumentType
StorageLocation
Assembly
ProductionVersion
SourceMRPElement
SourceMRPElementItem
SourceMRPElementScheduleLine
SourceMRPElementCategory
MRPElementBusinessPartner
MRPElementBusinessPartnerName
MRPElementBusinessPartnerType
MaterialBaseUnit
UnitOfMeasureCommercialName
TargetQuantityUnitDcmls
MaterialBaseUnitDesc
UnitOfMeasureName
MRPElementIsReleased
MRPElementIsPartiallyDelivered
MRPRequestStatus
MRPRequestStatusText
MRPRequestSupplierResponse
MRPRequestSupplierResponseText
MRPAvailability
MRPEvaluationHorizonInDays
MaterialSafetyStockQty
MRPElementDocumentTypeName
MRPElementCategoryGroup
MRPElementCategoryGroupName
SupplyIsInThePast
NumberOfAggregatedMRPElements
TargetQuantityUnitDisplayDcmls
ProductionPlant
PlanningPlant
ExceptionMessageNumber
ExceptionMessageText
ExceptionMessageNumber2
ExceptionMessageText2
NumberOfMRPShortagePeriods
MRPElementReschedulingDate
ExcessStockQty
PlndIndepRqmtVersion
ExternalApprovalStatus
ExternalApprovalStatusText
MaterialShortageStartDate
MaterialShortageEndDate
MinAvailableQtyAtShortage
MRPElementName
MRPElementAdditionalInfoText
PlanningTimeFenceIsManuallySet
ManualFirmingDate

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 C_SupplyDemandItem.
-- 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 C_SupplyDemandItem AS
SELECT
  line AS RowIndex,
  MRPPlant,
  MRPArea,
  matnr AS Material,
  cast('' as plaab) AS MRPPlanningSegmentType,
  cast('' as planr) AS MRPPlanningSegment,
  cast('' as char15) AS MaterialShortageDefinition,
  cast(0 as supplyaggregation preserving type) AS MRPElementSupplyAggregation,
  cast(0 as demandaggregation preserving type) AS MRPElementDemandAggregation,
  cast ('' as matnr ) AS MaterialExternalID,
  cast ('' as del12 ) AS MRPElement,
  cast ('' as delps ) AS MRPElementItem,
  cast ('' as delet ) AS MRPElementScheduleLine,
  cast ('' as delkz ) AS MRPElementCategory,
  cast ('' as delb0 ) AS MRPElementCategoryShortName,
  cast ('' as dat00 ) AS MRPElementAvailyOrRqmtDate,
  cast (0 as lmeng ) AS MRPAvailableQuantity,
  cast (0 as lmeng ) AS MRPElementOpenQuantity,
  cast ('' as flag preserving type) AS MRPElementQuantityIsFirm,
  cast ('' as char4 ) AS MRPElementDocumentType,
  cast ('' as char4 ) AS StorageLocation,
  cast ('' as baugr ) AS Assembly,
  cast ('' as verid ) AS ProductionVersion,
  cast ('' as del12 ) AS SourceMRPElement,
  cast ('' as posvr ) AS SourceMRPElementItem,
  cast ('' as einvr ) AS SourceMRPElementScheduleLine,
  cast ('' as delkz ) AS SourceMRPElementCategory,
  cast ('' as char10 ) AS MRPElementBusinessPartner,
  cast ('' as char35 ) AS MRPElementBusinessPartnerName,
  cast ('' as char1 preserving type) AS MRPElementBusinessPartnerType,
  cast ('' as meins ) AS MaterialBaseUnit,
  cast ('' as mseh3 ) AS UnitOfMeasureCommercialName,
  cast (0 as decan) AS TargetQuantityUnitDcmls,
  cast ('' as mseh6 ) AS MaterialBaseUnitDesc,
  cast ('' as mseh3 ) AS UnitOfMeasureName,
  cast ('' as char1 preserving type) AS MRPElementIsReleased,
  cast ('' as char1 preserving type) AS MRPElementIsPartiallyDelivered,
  cast ('' as char2 ) AS MRPRequestStatus,
  cast ('' as char30 ) AS MRPRequestStatusText,
  cast ('' as char2 ) AS MRPRequestSupplierResponse,
  cast ('' as char30 ) AS MRPRequestSupplierResponseText,
  cast ('' as vrfkz preserving type) AS MRPAvailability,
  cast (0 as int4 ) AS MRPEvaluationHorizonInDays,
  cast (0 as lmeng ) AS MaterialSafetyStockQty,
  cast ('' as char60 ) AS MRPElementDocumentTypeName,
  cast ('' as demandcategorygroup preserving type) AS MRPElementCategoryGroup,
  cast ('' as val_text ) AS MRPElementCategoryGroupName,
  cast ('' as char1 preserving type) AS SupplyIsInThePast,
  cast ('' as numc3 ) AS NumberOfAggregatedMRPElements,
  cast (0 as andec ) AS TargetQuantityUnitDisplayDcmls,
  cast ('' as werks_d ) AS ProductionPlant,
  cast ('' as werks_d ) AS PlanningPlant,
  cast ('' as char2 ) AS ExceptionMessageNumber,
  cast ('' as char60 ) AS ExceptionMessageText,
  cast ('' as char2 ) AS ExceptionMessageNumber2,
  cast ('' as char60 ) AS ExceptionMessageText2,
  cast (0 as andec ) AS NumberOfMRPShortagePeriods,
  cast ('' as dat00 ) AS MRPElementReschedulingDate,
  cast (0 as rdmng ) AS ExcessStockQty,
  cast ('' as versb ) AS PlndIndepRqmtVersion,
  cast ('' as char1 preserving type) AS ExternalApprovalStatus,
  cast ('' as char60 ) AS ExternalApprovalStatusText,
  cast ('' as materialshortagestartdate) AS MaterialShortageStartDate,
  cast ('' as materialshortageenddate) AS MaterialShortageEndDate,
  cast (0 as materialshortagequantity) AS MinAvailableQtyAtShortage,
  cast ('' as mrpelementname ) AS MRPElementName,
  cast ('' as mrpelementtext ) AS MRPElementAdditionalInfoText,
  cast ('' as mfhkz preserving type ) AS PlanningTimeFenceIsManuallySet,
  cast ('' as mfxdt ) AS ManualFirmingDate
FROM ppmrp_sup_dem_it
LEFT OUTER JOIN E_SupplyDemandItem AS _SupplyDemandItem ON RowIndex = _SupplyDemandItem.RowIndex  -- association [1]
;