C_StockLevelMgmtTP

DDL: C_STOCKLEVELMGMTTP SQL: CSTKLVLMGMTTP Type: view CONSUMPTION

Manage Buffer Levels

C_StockLevelMgmtTP is a Consumption CDS View that provides data about "Manage Buffer Levels" in SAP S/4HANA. It reads from 2 data sources (also, I_StockLevelProposalTP) and exposes 100 fields with key fields MRPArea, Plant, Material, ProposalStartDate, ProposalVersion. It has 12 associations to related views.

Data Sources (2)

SourceAliasJoin Type
also filter inner
I_StockLevelProposalTP StockProposal from

Associations (12)

CardinalityTargetAliasCondition
[1..1] P_MRPAreaByAreaOfRespy _SDMAreaOfResponsibility $projection.MRPArea = _SDMAreaOfResponsibility.MRPArea and $projection.MRPController = _SDMAreaOfResponsibility.MRPController and _SDMAreaOfResponsibility.UserID = $session.user
[1..1] P_StockLevelMngNumFields _CalFields $projection.Material = _CalFields.Material and $projection.Plant = _CalFields.Plant and $projection.MRPArea = _CalFields.MRPArea ------------------------------ -- Object Page Facets -- -------------------------------
[1..*] C_MaterialDailyDemand _MaterialDailyDemand $projection.Material = _MaterialDailyDemand.Material and $projection.Plant = _MaterialDailyDemand.Plant and $projection.MRPArea = _MaterialDailyDemand.MRPArea
[1..*] C_ProposedBufferMatlBOM _ProposedBOM $projection.Material = _ProposedBOM.Material and $projection.Plant = _ProposedBOM.Plant and $projection.MRPArea = _ProposedBOM.MRPArea
[1..*] C_ProdBufPrflAndClassfctn _BufferClassifications $projection.Material = _BufferClassifications.Material and $projection.Plant = _BufferClassifications.Plant and $projection.MRPArea = _BufferClassifications.MRPArea ------------------------------ -- Dropdown Filters -- -------------------------------
[1..1] C_MatlConsumptionIndValHelp _MatlConsumptionIndValHelp $projection.ConsumptionCode = _MatlConsumptionIndValHelp.ConsumptionCode
[1..1] C_MatlLeadTimeIndValHelp _MatlLeadTimeIndValHelp $projection.ReplenishmentLeadTimeCode = _MatlLeadTimeIndValHelp.ReplenishmentLeadTimeCode
[1..1] C_MatlVariabilityIndValHelp _MatlVariabilityIndValHelp $projection.VariabilityCode = _MatlVariabilityIndValHelp.VariabilityCode
[1..1] C_MatlBOMUsageIndValHelp _MatlBOMUsageIndValHelp $projection.BOMUsageCode = _MatlBOMUsageIndValHelp.BOMUsageCode
[1..1] C_StockLevelProposalStatus _StockProposalStatus $projection.StockLevelProposalStatus = _StockProposalStatus.StockLevelProposalStatus
[1..1] C_MaterialProcurementTypeVH _MaterialProcurementTypeVH $projection.ProcurementType = _MaterialProcurementTypeVH.ProcurementType
[1..1] C_MatlPrpslAdjmtFctrIsAppld _AdjustmentFactor $projection.matlprpsladjmtfctrisapplied = _AdjustmentFactor.MatlPrpslAdjmtFctrIsApplied

Annotations (24)

NameValueLevelField
AbapCatalog.sqlViewName CSTKLVLMGMTTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Manage Buffer Levels view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
Search.searchable true view
UI.headerInfo.description.label Material ID view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value MaterialName view
UI.headerInfo.title.label Material Description view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value Material view
UI.headerInfo.typeNamePlural Buffers view
UI.headerInfo.typeName Buffer view
ObjectModel.compositionRoot true view
ObjectModel.draftEnabled true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled false view

Fields (100)

KeyFieldSource TableSource FieldDescription
KEY MRPArea I_StockLevelProposalTP MRPArea MRP Area
KEY Plant I_StockLevelProposalTP Plant Valuation Area
KEY Material I_StockLevelProposalTP Material Product
KEY ProposalStartDate I_StockLevelProposalTP ProposalStartDate
KEY ProposalVersion I_StockLevelProposalTP ProposalVersion
UserID _SDMAreaOfResponsibility UserID User Name
MaterialName
PlantName
MRPAreaText _SDMAreaOfResponsibility MRPAreaText
BaseUnit I_StockLevelProposalTP MaterialBaseUnit Valuation Unit
StockLevelProposalID I_StockLevelProposalTP StockLevelProposalID
StockLevelProposalStatus I_StockLevelProposalTP StockLevelProposalStatus
ProposalStatusDescription
CurrentRedZone _CalFields CurrentRedZone Current
OriglProposedRedZone I_StockLevelProposalTP OriglProposedRedZone Proposed
PrevRedZoneAdjustmentFctr I_StockLevelProposalTP PrevRedZoneAdjustmentFctr Adjustment Factor On Proposal
RedZoneDifference _CalFields RedZoneDifference Change
ProposedRedZone I_StockLevelProposalTP ProposedRedZone Adjust Current to
CurRedZoneAdjustmentFctr I_StockLevelProposalTP CurRedZoneAdjustmentFctr Adjustment Factor
CurrentYellowZone _CalFields CurrentYellowZone Current
OriglProposedYellowZone I_StockLevelProposalTP OriglProposedYellowZone Proposed
PrevYellowZoneAdjustmentFctr I_StockLevelProposalTP PrevYellowZoneAdjustmentFctr Adjustment Factor On Proposal
YellowZoneDifference _CalFields YellowZoneDifference Change
ProposedYellowZone I_StockLevelProposalTP ProposedYellowZone Adjust Current to
CurYellowZoneAdjustmentFctr I_StockLevelProposalTP CurYellowZoneAdjustmentFctr Adjustment Factor
CurrentGreenZone _CalFields CurrentGreenZone Current
OriglProposedGreenZone I_StockLevelProposalTP OriglProposedGreenZone Proposed
PrevGreenZoneAdjustmentFctr I_StockLevelProposalTP PrevGreenZoneAdjustmentFctr Adjustment Factor On Proposal
GreenZoneDifference _CalFields GreenZoneDifference Change
ProposedGreenZone I_StockLevelProposalTP ProposedGreenZone Adjust Current to
CurGreenZoneAdjustmentFctr I_StockLevelProposalTP CurGreenZoneAdjustmentFctr Adjustment Factor
MaxStockDifference _CalFields MaxStockDifference
MaxStockDeviationRate _CalFields MaxStockDeviationRate Max Stock Deviation
UnitOfMeasure _CalFields UnitOfMeasure Unit Protected Qty
CurrentAverageDailyUsage _CalFields CurrentAverageDailyUsage
ProposedAverageDailyUsage _CalFields ProposedAverageDailyUsage
AvgDailyUsageDifference _CalFields AvgDailyUsageDifference
AvgDailyUsageDeviationRate _CalFields AvgDailyUsageDeviationRate
CurrentVariabilityFactor _CalFields CurrentVariabilityFactor
ProposedVariabilityFactor _CalFields ProposedVariabilityFactor
VariabilityFactorDeviationRate _CalFields VariabilityFactorDeviationRate
VariabilityFactorDifference _CalFields VariabilityFactorDifference
CurrentLeadTime _CalFields CurrentLeadTime
ProposedLeadTime _CalFields ProposedLeadTime
LeadTimeDifference _CalFields LeadTimeDifference
LeadTimeDeviationRate _CalFields LeadTimeDeviationRate
CurrentLeadTimeFactor _CalFields CurrentLeadTimeFactor
ProposedLeadTimeFactor _CalFields ProposedLeadTimeFactor
LeadTimeFactorDifference _CalFields LeadTimeFactorDifference
LeadTimeFactorDeviationRate _CalFields LeadTimeFactorDeviationRate
DifferenceInDays _CalFields DifferenceInDays
MaterialGroup Product Group
MRPController I_StockLevelProposalTP MRPController MRP Controller
PurchasingGroup I_StockLevelProposalTP PurchasingGroup Purchasing Group
MRPGroup I_StockLevelProposalTP MRPGroup MRP Group
MatlPrpslAdjmtFctrIsApplied _CalFields MatlPrpslAdjmtFctrIsApplied Adjustment Factor Exists
NormalizedCurrentGreenZone _CalFields NormalizedCurrentGreenZone
NormalizedCurrentYellowZone _CalFields NormalizedCurrentYellowZone
NormalizedCurrentRedZone _CalFields NormalizedCurrentRedZone
NormalizedProposedGreenZone _CalFields NormalizedProposedGreenZone
NormalizedProposedYellowZone _CalFields NormalizedProposedYellowZone
NormalizedProposedRedZone _CalFields NormalizedProposedRedZone
MRPAreaCategory
HorizonDaysInPast _CalFields HorizonDaysInPast
AvgDailyUsageHorizonEndDate _CalFields AvgDailyUsageHorizonEndDate
AvgDailyUsageHorizonStartDate _CalFields AvgDailyUsageHorizonStartDate
ProposedMaterialBufferProfile _CalFields ProposedMaterialBufferProfile
ProposedMatlBufferProfileText _CalFields ProposedMatlBufferProfileText
BOMUsageCode I_StockLevelProposalTP BOMUsageCode
BOMUsageDescription
ConsumptionCode I_StockLevelProposalTP ConsumptionCode
ConsumptionDescription
VariabilityCode I_StockLevelProposalTP VariabilityCode
VariabilityQuantity _CalFields VariabilityQuantity
VariabilityDescription _CalFields VariabilityDescription
ReplenishmentLeadTimeCode I_StockLevelProposalTP ReplenishmentLeadTimeCode
ReplenishmentLeadTimeValue _CalFields ReplenishmentLeadTimeValue
ReplenishmentLeadTimeDesc _CalFields ReplenishmentLeadTimeDesc
ProcurementType I_StockLevelProposalTP ProcurementType Procurement Type
ProcurementTypeDescription _CalFields ProcurementTypeDescription
CurrentMatlVariabilityCode _CalFields CurrentMatlVariabilityCode
ProposedMatlVariabilityCode I_StockLevelProposalTP VariabilityCode
ProposedMatlVariabilityQty _CalFields ProposedMatlVariabilityQty
ProposedMatlVariabilityUnit _CalFields ProposedMatlVariabilityUnit
CurrentMatlLeadTimeCode _CalFields CurrentMatlLeadTimeCode
ProposedMatlLeadTimeCode I_StockLevelProposalTP ReplenishmentLeadTimeCode
ProposedMatlLeadTime _CalFields ProposedMatlLeadTime
BOMExplosionDate I_StockLevelProposalTP BOMExplosionDate
BufLvlProposalHorizonStartDate _CalFields BufLvlProposalHorizonStartDate
_MatlConsumptionIndValHelp _MatlConsumptionIndValHelp
_MatlLeadTimeIndValHelp _MatlLeadTimeIndValHelp
_MatlVariabilityIndValHelp _MatlVariabilityIndValHelp
_MatlBOMUsageIndValHelp _MatlBOMUsageIndValHelp
_StockProposalStatus _StockProposalStatus
_MaterialProcurementTypeVH _MaterialProcurementTypeVH
_AdjustmentFactor _AdjustmentFactor
_MaterialDailyDemand _MaterialDailyDemand
_ProposedBOM _ProposedBOM
_BufferClassifications _BufferClassifications
_BufMatPlant I_StockLevelProposalTP _BufMatPlant

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_StockLevelMgmtTP.
-- 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.
-- SQL view name: CSTKLVLMGMTTP

CREATE VIEW C_StockLevelMgmtTP AS
SELECT
  StockProposal.MRPArea AS MRPArea,
  StockProposal.Plant AS Plant,
  StockProposal.Material AS Material,
  StockProposal.ProposalStartDate AS ProposalStartDate,
  StockProposal.ProposalVersion AS ProposalVersion,
  _SDMAreaOfResponsibility.UserID AS UserID,
  StockProposal._BufMatPlant._Material._Text[1:Language=$session.system_language].ProductName AS MaterialName,
  StockProposal._BufMatPlant._Plant.PlantName AS PlantName,
  _SDMAreaOfResponsibility.MRPAreaText AS MRPAreaText,
  StockProposal.MaterialBaseUnit AS BaseUnit,
  StockProposal.StockLevelProposalID AS StockLevelProposalID,
  StockProposal.StockLevelProposalStatus AS StockLevelProposalStatus,
  StockProposal._StatusText.ProposalStatusDescription AS ProposalStatusDescription,
  _CalFields.CurrentRedZone AS CurrentRedZone,
  StockProposal.OriglProposedRedZone AS OriglProposedRedZone,
  StockProposal.PrevRedZoneAdjustmentFctr AS PrevRedZoneAdjustmentFctr,
  _CalFields.RedZoneDifference AS RedZoneDifference,
  StockProposal.ProposedRedZone AS ProposedRedZone,
  StockProposal.CurRedZoneAdjustmentFctr AS CurRedZoneAdjustmentFctr,
  _CalFields.CurrentYellowZone AS CurrentYellowZone,
  StockProposal.OriglProposedYellowZone AS OriglProposedYellowZone,
  StockProposal.PrevYellowZoneAdjustmentFctr AS PrevYellowZoneAdjustmentFctr,
  _CalFields.YellowZoneDifference AS YellowZoneDifference,
  StockProposal.ProposedYellowZone AS ProposedYellowZone,
  StockProposal.CurYellowZoneAdjustmentFctr AS CurYellowZoneAdjustmentFctr,
  _CalFields.CurrentGreenZone AS CurrentGreenZone,
  StockProposal.OriglProposedGreenZone AS OriglProposedGreenZone,
  StockProposal.PrevGreenZoneAdjustmentFctr AS PrevGreenZoneAdjustmentFctr,
  _CalFields.GreenZoneDifference AS GreenZoneDifference,
  StockProposal.ProposedGreenZone AS ProposedGreenZone,
  StockProposal.CurGreenZoneAdjustmentFctr AS CurGreenZoneAdjustmentFctr,
  _CalFields.MaxStockDifference AS MaxStockDifference,
  _CalFields.MaxStockDeviationRate AS MaxStockDeviationRate,
  _CalFields.UnitOfMeasure AS UnitOfMeasure,
  _CalFields.CurrentAverageDailyUsage AS CurrentAverageDailyUsage,
  _CalFields.ProposedAverageDailyUsage AS ProposedAverageDailyUsage,
  _CalFields.AvgDailyUsageDifference AS AvgDailyUsageDifference,
  _CalFields.AvgDailyUsageDeviationRate AS AvgDailyUsageDeviationRate,
  _CalFields.CurrentVariabilityFactor AS CurrentVariabilityFactor,
  _CalFields.ProposedVariabilityFactor AS ProposedVariabilityFactor,
  _CalFields.VariabilityFactorDeviationRate AS VariabilityFactorDeviationRate,
  _CalFields.VariabilityFactorDifference AS VariabilityFactorDifference,
  _CalFields.CurrentLeadTime AS CurrentLeadTime,
  _CalFields.ProposedLeadTime AS ProposedLeadTime,
  _CalFields.LeadTimeDifference AS LeadTimeDifference,
  _CalFields.LeadTimeDeviationRate AS LeadTimeDeviationRate,
  _CalFields.CurrentLeadTimeFactor AS CurrentLeadTimeFactor,
  _CalFields.ProposedLeadTimeFactor AS ProposedLeadTimeFactor,
  _CalFields.LeadTimeFactorDifference AS LeadTimeFactorDifference,
  _CalFields.LeadTimeFactorDeviationRate AS LeadTimeFactorDeviationRate,
  _CalFields.DifferenceInDays AS DifferenceInDays,
  StockProposal._BufMatPlant._Material.ProductGroup AS MaterialGroup,
  StockProposal.MRPController AS MRPController,
  StockProposal.PurchasingGroup AS PurchasingGroup,
  StockProposal.MRPGroup AS MRPGroup,
  _CalFields.MatlPrpslAdjmtFctrIsApplied AS MatlPrpslAdjmtFctrIsApplied,
  _CalFields.NormalizedCurrentGreenZone AS NormalizedCurrentGreenZone,
  _CalFields.NormalizedCurrentYellowZone AS NormalizedCurrentYellowZone,
  _CalFields.NormalizedCurrentRedZone AS NormalizedCurrentRedZone,
  _CalFields.NormalizedProposedGreenZone AS NormalizedProposedGreenZone,
  _CalFields.NormalizedProposedYellowZone AS NormalizedProposedYellowZone,
  _CalFields.NormalizedProposedRedZone AS NormalizedProposedRedZone,
  StockProposal._MatMRPArea._MRPArea.MRPAreaCategory AS MRPAreaCategory,
  _CalFields.HorizonDaysInPast AS HorizonDaysInPast,
  _CalFields.AvgDailyUsageHorizonEndDate AS AvgDailyUsageHorizonEndDate,
  _CalFields.AvgDailyUsageHorizonStartDate AS AvgDailyUsageHorizonStartDate,
  _CalFields.ProposedMaterialBufferProfile AS ProposedMaterialBufferProfile,
  _CalFields.ProposedMatlBufferProfileText AS ProposedMatlBufferProfileText,
  StockProposal.BOMUsageCode AS BOMUsageCode,
  StockProposal._BOMUsgText.BOMUsageDescription AS BOMUsageDescription,
  StockProposal.ConsumptionCode AS ConsumptionCode,
  StockProposal._ConsumptionText.ConsumptionDescription AS ConsumptionDescription,
  StockProposal.VariabilityCode AS VariabilityCode,
  _CalFields.VariabilityQuantity AS VariabilityQuantity,
  _CalFields.VariabilityDescription AS VariabilityDescription,
  StockProposal.ReplenishmentLeadTimeCode AS ReplenishmentLeadTimeCode,
  _CalFields.ReplenishmentLeadTimeValue AS ReplenishmentLeadTimeValue,
  _CalFields.ReplenishmentLeadTimeDesc AS ReplenishmentLeadTimeDesc,
  StockProposal.ProcurementType AS ProcurementType,
  _CalFields.ProcurementTypeDescription AS ProcurementTypeDescription,
  _CalFields.CurrentMatlVariabilityCode AS CurrentMatlVariabilityCode,
  StockProposal.VariabilityCode AS ProposedMatlVariabilityCode,
  _CalFields.ProposedMatlVariabilityQty AS ProposedMatlVariabilityQty,
  _CalFields.ProposedMatlVariabilityUnit AS ProposedMatlVariabilityUnit,
  _CalFields.CurrentMatlLeadTimeCode AS CurrentMatlLeadTimeCode,
  StockProposal.ReplenishmentLeadTimeCode AS ProposedMatlLeadTimeCode,
  _CalFields.ProposedMatlLeadTime AS ProposedMatlLeadTime,
  StockProposal.BOMExplosionDate AS BOMExplosionDate,
  _CalFields.BufLvlProposalHorizonStartDate AS BufLvlProposalHorizonStartDate,
  StockProposal._BufMatPlant AS _BufMatPlant
FROM I_StockLevelProposalTP AS StockProposal
INNER JOIN also AS filter ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_MRPAreaByAreaOfRespy AS _SDMAreaOfResponsibility ON MRPArea = _SDMAreaOfResponsibility.MRPArea AND MRPController = _SDMAreaOfResponsibility.MRPController AND _SDMAreaOfResponsibility.UserID = $session.user  -- association [1..1]
LEFT OUTER JOIN P_StockLevelMngNumFields AS _CalFields ON Material = _CalFields.Material AND Plant = _CalFields.Plant AND MRPArea = _CalFields.MRPArea  -- association [1..1]
LEFT OUTER JOIN C_MaterialDailyDemand AS _MaterialDailyDemand ON Material = _MaterialDailyDemand.Material AND Plant = _MaterialDailyDemand.Plant AND MRPArea = _MaterialDailyDemand.MRPArea  -- association [1..*]
LEFT OUTER JOIN C_ProposedBufferMatlBOM AS _ProposedBOM ON Material = _ProposedBOM.Material AND Plant = _ProposedBOM.Plant AND MRPArea = _ProposedBOM.MRPArea  -- association [1..*]
LEFT OUTER JOIN C_ProdBufPrflAndClassfctn AS _BufferClassifications ON Material = _BufferClassifications.Material AND Plant = _BufferClassifications.Plant AND MRPArea = _BufferClassifications.MRPArea  -- association [1..*]
LEFT OUTER JOIN C_MatlConsumptionIndValHelp AS _MatlConsumptionIndValHelp ON ConsumptionCode = _MatlConsumptionIndValHelp.ConsumptionCode  -- association [1..1]
LEFT OUTER JOIN C_MatlLeadTimeIndValHelp AS _MatlLeadTimeIndValHelp ON ReplenishmentLeadTimeCode = _MatlLeadTimeIndValHelp.ReplenishmentLeadTimeCode  -- association [1..1]
LEFT OUTER JOIN C_MatlVariabilityIndValHelp AS _MatlVariabilityIndValHelp ON VariabilityCode = _MatlVariabilityIndValHelp.VariabilityCode  -- association [1..1]
LEFT OUTER JOIN C_MatlBOMUsageIndValHelp AS _MatlBOMUsageIndValHelp ON BOMUsageCode = _MatlBOMUsageIndValHelp.BOMUsageCode  -- association [1..1]
LEFT OUTER JOIN C_StockLevelProposalStatus AS _StockProposalStatus ON StockLevelProposalStatus = _StockProposalStatus.StockLevelProposalStatus  -- association [1..1]
LEFT OUTER JOIN C_MaterialProcurementTypeVH AS _MaterialProcurementTypeVH ON ProcurementType = _MaterialProcurementTypeVH.ProcurementType  -- association [1..1]
LEFT OUTER JOIN C_MatlPrpslAdjmtFctrIsAppld AS _AdjustmentFactor ON matlprpsladjmtfctrisapplied = _AdjustmentFactor.MatlPrpslAdjmtFctrIsApplied  -- association [1..1]
;