I_MasterRecipeHeaderTP

DDL: I_MASTERRECIPEHEADERTP SQL: IMRCHDRTP Type: view_entity TRANSACTIONAL Package: VDM_PP_MD_MRC

Master Recipe - Header

I_MasterRecipeHeaderTP is a Transactional CDS View that provides data about "Master Recipe - Header" in SAP S/4HANA. It reads from 2 data sources (I_MasterRecipeHeader, I_MasterRecipe) and exposes 37 fields with key fields MasterRecipeGroup, MasterRecipe, MasterRecipeInternalVersion. It has 5 associations to related views. Part of development package VDM_PP_MD_MRC.

Data Sources (2)

SourceAliasJoin Type
I_MasterRecipeHeader plko from
I_MasterRecipe plkz inner

Associations (5)

CardinalityTargetAliasCondition
[0..*] I_MasterRecipeMaterialAssgmtTP _MatlAssgmt $projection.MasterRecipeGroup = _MatlAssgmt.MasterRecipeGroup and $projection.MasterRecipe = _MatlAssgmt.MasterRecipe and $projection.ValidityEndDate >= _MatlAssgmt.ValidityStartDate and $projection.ValidityStartDate <= _MatlAssgmt.ValidityEndDate -- to Operations
[0..*] I_MasterRecipeOperationTP _Operation $projection.MasterRecipeGroup = _Operation.MasterRecipeGroup and $projection.MasterRecipe = _Operation.MasterRecipe and $projection.ValidityEndDate >= _Operation.ValidityStartDate and $projection.ValidityStartDate <= _Operation.ValidityEndDate -- to root node
[0..1] I_MasterRecipeMaterialCount _MatlCount $projection.MasterRecipeGroup = _MatlCount.MasterRecipeGroup and $projection.MasterRecipe = _MatlCount.MasterRecipe
[0..1] I_ChangeMaster _ChangeMaster $projection.ChangeNumber = _ChangeMaster.ChangeNumber
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Master Recipe - Header view
ObjectModel.representativeKey MasterRecipeInternalVersion view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY MasterRecipeGroup I_MasterRecipeHeader BillOfOperationsGroup Group
KEY MasterRecipe I_MasterRecipeHeader BillOfOperationsVariant Group Counter
KEY MasterRecipeInternalVersion I_MasterRecipeHeader BOOInternalVersionCounter
IsMarkedForDeletion I_MasterRecipe IsMarkedForDeletion Purch.org. data
BillOfOperationsDesc I_MasterRecipeHeader BillOfOperationsDesc
Plant I_MasterRecipeHeader Plant Valuation Area
BillOfOperationsUsage I_MasterRecipeHeader BillOfOperationsUsage
BillOfOperationsStatus I_MasterRecipeHeader BillOfOperationsStatus
ResponsiblePlannerGroup I_MasterRecipeHeader ResponsiblePlannerGroup
BillOfOperationsProfile I_MasterRecipeHeader BillOfOperationsProfile
MinimumLotSizeQuantity I_MasterRecipeHeader MinimumLotSizeQuantity Min. Lot Size
MaximumLotSizeQuantity I_MasterRecipeHeader MaximumLotSizeQuantity Max. Lot Size
BillOfOperationsUnit I_MasterRecipeHeader BillOfOperationsUnit
LongTextLanguageCode I_MasterRecipeHeader LongTextLanguageCode Language
PlainLongText I_MasterRecipeHeader PlainLongText Long Text
CreationDate I_MasterRecipeHeader CreationDate Time Stamp
CreatedByUser I_MasterRecipeHeader CreatedByUser User Name
LastChangeDate I_MasterRecipeHeader LastChangeDate Time Stamp
LastChangedByUser I_MasterRecipeHeader LastChangedByUser User Name
ValidityStartDate I_MasterRecipeHeader ValidityStartDate Validity Start Date
ValidityEndDate I_MasterRecipeHeader ValidityEndDate ValidTo
ChangeNumber I_MasterRecipeHeader ChangeNumber Change Number
ChangedDateTime _RcpTP ChangedDateTime Time Stamp
OperationReferenceQuantity I_MasterRecipeHeader OperationReferenceQuantity Base Quantity
OperationUnit I_MasterRecipeHeader OperationUnit Act/op UoM
OpQtyToBaseQtyNmrtr I_MasterRecipeHeader OpQtyToBaseQtyNmrtr
OpQtyToBaseQtyDnmntr I_MasterRecipeHeader OpQtyToBaseQtyDnmntr
ChangeNumberDescription _ChangeMaster ChangeNumberDescription
PlantName _Plant PlantName Plant Name
_MatlAssgmt _MatlAssgmt
_Operation _Operation
_RcpTP _RcpTP
_UsageText _UsageText
_StatusText _StatusText
_MatlCount _MatlCount
_ChangeMaster _ChangeMaster
_Plant _Plant

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_MasterRecipeHeaderTP.
-- 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: IMRCHDRTP

CREATE VIEW I_MasterRecipeHeaderTP AS
SELECT
  plko.BillOfOperationsGroup AS MasterRecipeGroup,
  plko.BillOfOperationsVariant AS MasterRecipe,
  plko.BOOInternalVersionCounter AS MasterRecipeInternalVersion,
  plkz.IsMarkedForDeletion AS IsMarkedForDeletion,
  plko.BillOfOperationsDesc AS BillOfOperationsDesc,
  plko.Plant AS Plant,
  plko.BillOfOperationsUsage AS BillOfOperationsUsage,
  plko.BillOfOperationsStatus AS BillOfOperationsStatus,
  plko.ResponsiblePlannerGroup AS ResponsiblePlannerGroup,
  plko.BillOfOperationsProfile AS BillOfOperationsProfile,
  plko.MinimumLotSizeQuantity AS MinimumLotSizeQuantity,
  plko.MaximumLotSizeQuantity AS MaximumLotSizeQuantity,
  plko.BillOfOperationsUnit AS BillOfOperationsUnit,
  plko.LongTextLanguageCode AS LongTextLanguageCode,
  plko.PlainLongText AS PlainLongText,
  plko.CreationDate AS CreationDate,
  plko.CreatedByUser AS CreatedByUser,
  plko.LastChangeDate AS LastChangeDate,
  plko.LastChangedByUser AS LastChangedByUser,
  plko.ValidityStartDate AS ValidityStartDate,
  plko.ValidityEndDate AS ValidityEndDate,
  plko.ChangeNumber AS ChangeNumber,
  _RcpTP.ChangedDateTime AS ChangedDateTime,
  plko.OperationReferenceQuantity AS OperationReferenceQuantity,
  plko.OperationUnit AS OperationUnit,
  plko.OpQtyToBaseQtyNmrtr AS OpQtyToBaseQtyNmrtr,
  plko.OpQtyToBaseQtyDnmntr AS OpQtyToBaseQtyDnmntr,
  _ChangeMaster.ChangeNumberDescription AS ChangeNumberDescription,
  _Plant.PlantName AS PlantName
FROM I_MasterRecipeHeader AS plko
INNER JOIN I_MasterRecipe AS plkz ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MasterRecipeMaterialAssgmtTP AS _MatlAssgmt ON MasterRecipeGroup = _MatlAssgmt.MasterRecipeGroup AND MasterRecipe = _MatlAssgmt.MasterRecipe AND ValidityEndDate >= _MatlAssgmt.ValidityStartDate AND ValidityStartDate <= _MatlAssgmt.ValidityEndDate  -- association [0..*]
LEFT OUTER JOIN I_MasterRecipeOperationTP AS _Operation ON MasterRecipeGroup = _Operation.MasterRecipeGroup AND MasterRecipe = _Operation.MasterRecipe AND ValidityEndDate >= _Operation.ValidityStartDate AND ValidityStartDate <= _Operation.ValidityEndDate  -- association [0..*]
LEFT OUTER JOIN I_MasterRecipeMaterialCount AS _MatlCount ON MasterRecipeGroup = _MatlCount.MasterRecipeGroup AND MasterRecipe = _MatlCount.MasterRecipe  -- association [0..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeMaster ON ChangeNumber = _ChangeMaster.ChangeNumber  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
;