I_CurrentAssignments

DDL: I_CURRENTASSIGNMENTS Type: view_entity COMPOSITE

Current Pegging Assignments

I_CurrentAssignments is a Composite CDS View that provides data about "Current Pegging Assignments" in SAP S/4HANA. It reads from 1 data source (I_PeggingAssignmentForDisplay) and exposes 68 fields with key fields MRPArea, MatlStkOwnrGrpgWBSElmntIntID, ReplenishmentElement, ReplenishmentDate, RequirementDate. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PeggingAssignmentForDisplay I_PeggingAssignmentForDisplay from

Associations (9)

CardinalityTargetAliasCondition
[0..1] I_MRPController _MRPController $projection.Plant = _MRPController.Plant and $projection.mrpcontroller = _MRPController.MRPController
[0..1] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language
[0..1] I_MaterialExcessAssgmtMethod _MaterialExcessAssgmtMethod $projection.MaterialExcessAssgmtMethod = _MaterialExcessAssgmtMethod.MaterialExcessAssgmtMethod and _MaterialExcessAssgmtMethod.Language = $session.system_language
[1..1] I_MaterialScrapAssgmtMethod _MaterialScrapAssgmtMethod $projection.MaterialScrapAssgmtMethod = _MaterialScrapAssgmtMethod.MaterialScrapAssgmtMethod and _MaterialScrapAssgmtMethod.Language = $session.system_language
[1..1] I_MaterialLossAssgmtMethod _MaterialLossAssgmtMethod $projection.MaterialLossAssgmtMethod = _MaterialLossAssgmtMethod.MaterialLossAssgmtMethod and _MaterialLossAssgmtMethod.Language = $session.system_language
[1..1] I_MaterialStockAndCnsmpnSts _MaterialStockAndCnsmpnSts $projection.MaterialStockAndConsumptionSts = _MaterialStockAndCnsmpnSts.MaterialStockAndConsumptionSts and _MaterialStockAndCnsmpnSts.Language = $session.system_language
[1..1] I_OriginOfPeggingAssignment _OriginOfPeggingAssignment $projection.OriginOfPeggingAssignment = _OriginOfPeggingAssignment.OriginOfPeggingAssignment and _OriginOfPeggingAssignment.Language = $session.system_language
[0..1] I_PggngPurgDocumentCategory _MRPEleDocumentCategory $projection.MRPElementIDForDisplay = _MRPEleDocumentCategory.MRPElementIDForDisplay
[0..1] I_PggngPurgDocumentCategory _NextHigherDocumentCategory $projection.NextHigherMRPElmntIDForDisplay = _NextHigherDocumentCategory.MRPElementIDForDisplay

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Current Pegging Assignments view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view

Fields (68)

KeyFieldSource TableSource FieldDescription
KEY MRPArea MRPArea MRP Area
KEY MatlStkOwnrGrpgWBSElmntIntID MatlStkOwnrGrpgWBSElmntIntID
KEY ReplenishmentElement ReplenishmentElement
KEY ReplenishmentDate ReplenishmentDate
KEY RequirementDate RequirementDate Requirement Date
KEY AssignedWBSElementInternalID AssignedWBSElementInternalID WBS Element
KEY MaterialStockAndConsumptionSts MaterialStockAndConsumptionSts
KEY AlternateCostAssignmentObject AlternateCostAssignmentObject
KEY NextHigherAssemblyObject NextHigherAssemblyObject
KEY TopLevelRequirementObject TopLevelRequirementObject
Plant Plant Valuation Area
Material Material Vehicle Model
AcctAsgtGroupingWBSElmntIntID AcctAsgtGroupingWBSElmntIntID
AlternateCostAssignmentObjType AlternateCostAssignmentObjType
WBSElmntAssgdMatlQuantity WBSElmntAssgdMatlQuantity
WBSElmntAssgdMatlExssQuantity WBSElmntAssgdMatlExssQuantity
WBSElmntAssgdMatlScrapQuantity WBSElmntAssgdMatlScrapQuantity
WBSElmntAssgdMatlLossQuantity WBSElmntAssgdMatlLossQuantity
WBSElmntMatlCarryFwdQuantity WBSElmntMatlCarryFwdQuantity
MaterialBaseUnit MaterialBaseUnit Valuation Unit
MaterialExcessAssgmtMethod MaterialExcessAssgmtMethod
MaterialLossAssgmtMethod MaterialLossAssgmtMethod
MaterialScrapAssgmtMethod MaterialScrapAssgmtMethod
ReplnmtElmntTotalOrderQuantity ReplnmtElmntTotalOrderQuantity
TopLevelRequirementObjQuantity TopLevelRequirementObjQuantity
TopLevelRqmtObjQuantityUnit TopLevelRqmtObjQuantityUnit
TopLevelRequirementObjRqmtDate TopLevelRequirementObjRqmtDate
LeadingOrderOfCollectiveOrder LeadingOrderOfCollectiveOrder
ReplnmtElmntIsStockGain ReplnmtElmntIsStockGain
OriginOfPeggingAssignment OriginOfPeggingAssignment
ShippingNotice ShippingNotice
CreationDateTime CreationDateTime Timestamp
LastChangeDateTime LastChangeDateTime Timestamp
MRPElementCategory MRPElementCategory MRP Elmnt Ind.
NextHigherMRPElementCategory NextHigherMRPElementCategory
TopLevelMRPElementCategory TopLevelMRPElementCategory
MaterialName _MaterialText MaterialName Material Description
PlantName _Plant PlantName Plant Name
MRPController _MaterialPlant MRPController MRP Controller
MRPControllerName
MaterialBaseUnitDesc
MRPElementIDForDisplay MRPElementIDForDisplay
MRPElementCategoryName MRPElementCategoryName
PurchasingDocumentCategory _MRPEleDocumentCategory PurchasingDocumentCategory Doc. Category
NextHigherMRPElmntIDForDisplay NextHigherMRPElmntIDForDisplay
NextHigherMRPElementCatName NextHigherMRPElementCatName
NextHigherAssyPurgDocCat _NextHigherDocumentCategory PurchasingDocumentCategory Doc. Category
TopLevelMRPElementIDForDisplay TopLevelMRPElementIDForDisplay
TopLevelMRPElementCategoryName TopLevelMRPElementCategoryName
AlternateCostAssgmtObjExtID AlternateCostAssgmtObjExtID
AlternateCostAssgmtObjTypeName AlternateCostAssgmtObjTypeName
_AcctAsgtGrpgWBSElmnt _AcctAsgtGrpgWBSElmnt
_StkOwnrGrpgWBSElmnt _StkOwnrGrpgWBSElmnt
_AlternateCostAssgmtWBSElmnt _AlternateCostAssgmtWBSElmnt
_AssignedWBSElmnt _AssignedWBSElmnt
_Material _Material
_MaterialPlant _MaterialPlant
_MaterialText _MaterialText
_MatlQtyBaseUnit _MatlQtyBaseUnit
_MRPElemAccountAssgmtTypeText _MRPElemAccountAssgmtTypeText
_MRPElemCategoryText _MRPElemCategoryText
_Plant _Plant
_MRPController _MRPController
_MaterialExcessAssgmtMethod _MaterialExcessAssgmtMethod
_MaterialScrapAssgmtMethod _MaterialScrapAssgmtMethod
_MaterialLossAssgmtMethod _MaterialLossAssgmtMethod
_MaterialStockAndCnsmpnSts _MaterialStockAndCnsmpnSts
_OriginOfPeggingAssignment _OriginOfPeggingAssignment

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_CurrentAssignments.
-- 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_CurrentAssignments AS
SELECT
  MRPArea,
  MatlStkOwnrGrpgWBSElmntIntID,
  ReplenishmentElement,
  ReplenishmentDate,
  RequirementDate,
  AssignedWBSElementInternalID,
  MaterialStockAndConsumptionSts,
  AlternateCostAssignmentObject,
  NextHigherAssemblyObject,
  TopLevelRequirementObject,
  Plant,
  Material,
  AcctAsgtGroupingWBSElmntIntID,
  AlternateCostAssignmentObjType,
  WBSElmntAssgdMatlQuantity,
  WBSElmntAssgdMatlExssQuantity,
  WBSElmntAssgdMatlScrapQuantity,
  WBSElmntAssgdMatlLossQuantity,
  WBSElmntMatlCarryFwdQuantity,
  MaterialBaseUnit,
  MaterialExcessAssgmtMethod,
  MaterialLossAssgmtMethod,
  MaterialScrapAssgmtMethod,
  ReplnmtElmntTotalOrderQuantity,
  TopLevelRequirementObjQuantity,
  TopLevelRqmtObjQuantityUnit,
  TopLevelRequirementObjRqmtDate,
  LeadingOrderOfCollectiveOrder,
  ReplnmtElmntIsStockGain,
  OriginOfPeggingAssignment,
  ShippingNotice,
  CreationDateTime,
  LastChangeDateTime,
  MRPElementCategory,
  NextHigherMRPElementCategory,
  TopLevelMRPElementCategory,
  _MaterialText.MaterialName AS MaterialName,
  _Plant.PlantName AS PlantName,
  _MaterialPlant.MRPController AS MRPController,
  _MaterialPlant._MRPController.MRPControllerName AS MRPControllerName,
  _MatlQtyBaseUnit._Text[ 1: Language = $session.system_language ].UnitOfMeasureName AS MaterialBaseUnitDesc,
  MRPElementIDForDisplay,
  MRPElementCategoryName,
  _MRPEleDocumentCategory.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  NextHigherMRPElmntIDForDisplay,
  NextHigherMRPElementCatName,
  _NextHigherDocumentCategory.PurchasingDocumentCategory AS NextHigherAssyPurgDocCat,
  TopLevelMRPElementIDForDisplay,
  TopLevelMRPElementCategoryName,
  AlternateCostAssgmtObjExtID,
  AlternateCostAssgmtObjTypeName
FROM I_PeggingAssignmentForDisplay
LEFT OUTER JOIN I_MRPController AS _MRPController ON Plant = _MRPController.Plant AND mrpcontroller = _MRPController.MRPController  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MaterialExcessAssgmtMethod AS _MaterialExcessAssgmtMethod ON MaterialExcessAssgmtMethod = _MaterialExcessAssgmtMethod.MaterialExcessAssgmtMethod AND _MaterialExcessAssgmtMethod.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MaterialScrapAssgmtMethod AS _MaterialScrapAssgmtMethod ON MaterialScrapAssgmtMethod = _MaterialScrapAssgmtMethod.MaterialScrapAssgmtMethod AND _MaterialScrapAssgmtMethod.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_MaterialLossAssgmtMethod AS _MaterialLossAssgmtMethod ON MaterialLossAssgmtMethod = _MaterialLossAssgmtMethod.MaterialLossAssgmtMethod AND _MaterialLossAssgmtMethod.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_MaterialStockAndCnsmpnSts AS _MaterialStockAndCnsmpnSts ON MaterialStockAndConsumptionSts = _MaterialStockAndCnsmpnSts.MaterialStockAndConsumptionSts AND _MaterialStockAndCnsmpnSts.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_OriginOfPeggingAssignment AS _OriginOfPeggingAssignment ON OriginOfPeggingAssignment = _OriginOfPeggingAssignment.OriginOfPeggingAssignment AND _OriginOfPeggingAssignment.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_PggngPurgDocumentCategory AS _MRPEleDocumentCategory ON MRPElementIDForDisplay = _MRPEleDocumentCategory.MRPElementIDForDisplay  -- association [0..1]
LEFT OUTER JOIN I_PggngPurgDocumentCategory AS _NextHigherDocumentCategory ON NextHigherMRPElmntIDForDisplay = _NextHigherDocumentCategory.MRPElementIDForDisplay  -- association [0..1]
;