I_PlndIndepRqmtItemHistoryBsc

DDL: I_PLNDINDEPRQMTITEMHISTORYBSC Type: view_entity BASIC

Planned Independent Requirement Item History Basics

I_PlndIndepRqmtItemHistoryBsc is a Basic CDS View that provides data about "Planned Independent Requirement Item History Basics" in SAP S/4HANA. It reads from 1 data source (pbhi) and exposes 14 fields with key fields PlndIndepRqmtInternalID, OrderEndDate, LastChangeDate, LastChangeTime. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
pbhi pbhi from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_PlndIndepRqmtByIntKey _PlndIndepRqmt $projection.PlndIndepRqmtInternalID = _PlndIndepRqmt.PlndIndepRqmtInternalID
[1..1] I_PlndIndepRqmtItemByIntKey _PlndIndepRqmtItem $projection.PlndIndepRqmtInternalID = _PlndIndepRqmtItem.PlndIndepRqmtInternalID and $projection.OrderEndDate = _PlndIndepRqmtItem.WorkingDayDate
[0..1] I_CalendarDate _OrderEndDate $projection.OrderEndDate = _OrderEndDate.CalendarDate
[0..1] I_CalendarDate _LastChangeDate $projection.LastChangeDate = _LastChangeDate.CalendarDate
[0..1] I_User _LastChangedUser $projection.LastChangedByUser = _LastChangedUser.UserID
[0..1] I_SalesDelivDateCategory _ForecastPeriodType $projection.ForecastPeriodType = _ForecastPeriodType.SalesDelivDateCategory
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.BaseUnit = _UnitOfMeasure.UnitOfMeasure

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Planned Independent Requirement Item History Basics view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY PlndIndepRqmtInternalID pbhi bdzei PIR Pointer
KEY OrderEndDate
KEY LastChangeDate pbhi laeda Last Change
KEY LastChangeTime pbhi uzeit Time
LastChangedByUser pbhi aenam User Name
BaseUnit _PlndIndepRqmtItem BaseUnit Unit of Measure
PlannedQuantity
WithdrawalQuantity pbhi entmg Withdrawal Qty
_PlndIndepRqmt _PlndIndepRqmt
_PlndIndepRqmtItem _PlndIndepRqmtItem
_OrderEndDate _OrderEndDate
_LastChangeDate _LastChangeDate
_LastChangedUser _LastChangedUser
_UnitOfMeasure _UnitOfMeasure

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_PlndIndepRqmtItemHistoryBsc.
-- 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_PlndIndepRqmtItemHistoryBsc AS
SELECT
  pbhi.bdzei AS PlndIndepRqmtInternalID,
  cast(pbhi.pdatu as pdatu preserving type) AS OrderEndDate,
  pbhi.laeda AS LastChangeDate,
  pbhi.uzeit AS LastChangeTime,
  pbhi.aenam AS LastChangedByUser,
  _PlndIndepRqmtItem.BaseUnit AS BaseUnit,
  cast(pbhi.plnmg as pph_plan_qty preserving type) AS PlannedQuantity,
  pbhi.entmg AS WithdrawalQuantity
FROM pbhi
LEFT OUTER JOIN I_PlndIndepRqmtByIntKey AS _PlndIndepRqmt ON PlndIndepRqmtInternalID = _PlndIndepRqmt.PlndIndepRqmtInternalID  -- association [1..1]
LEFT OUTER JOIN I_PlndIndepRqmtItemByIntKey AS _PlndIndepRqmtItem ON PlndIndepRqmtInternalID = _PlndIndepRqmtItem.PlndIndepRqmtInternalID AND OrderEndDate = _PlndIndepRqmtItem.WorkingDayDate  -- association [1..1]
LEFT OUTER JOIN I_CalendarDate AS _OrderEndDate ON OrderEndDate = _OrderEndDate.CalendarDate  -- association [0..1]
LEFT OUTER JOIN I_CalendarDate AS _LastChangeDate ON LastChangeDate = _LastChangeDate.CalendarDate  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedUser ON LastChangedByUser = _LastChangedUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_SalesDelivDateCategory AS _ForecastPeriodType ON ForecastPeriodType = _ForecastPeriodType.SalesDelivDateCategory  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON BaseUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
;