I_RoutingMaterialSearchModel

DDL: I_ROUTINGMATERIALSEARCHMODEL Type: view_entity BASIC Package: PPH_ROUTING

Material assgmt. to BOO

I_RoutingMaterialSearchModel is a Basic CDS View that provides data about "Material assgmt. to BOO" in SAP S/4HANA. It reads from 1 data source (mapl) and exposes 37 fields with key fields Material, Plant, BillOfOperationsType, BillOfOperationsGroup, BillOfOperationsVariant. It has 14 associations to related views. Part of development package PPH_ROUTING.

Data Sources (1)

SourceAliasJoin Type
mapl mapl from

Associations (14)

CardinalityTargetAliasCondition
[1..1] I_BillOfOperationsType _BillOfOperationsType $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
[1..1] I_BillOfOperationsGroup _BillOfOperationsGroup $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup
[1..1] I_BillOfOperations _BillOfOperations $projection.BillOfOperationsType = _BillOfOperations.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant
[1..1] I_BOOMaterialAssignment _BOOMaterialAssignment $projection.Plant = _BOOMaterialAssignment.Plant and $projection.Material = _BOOMaterialAssignment.Material and $projection.BillOfOperationsType = _BOOMaterialAssignment.BillOfOperationsType and $projection.BillOfOperationsGroup = _BOOMaterialAssignment.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BOOMaterialAssignment.BillOfOperationsVariant and $projection.BOOToMaterialInternalID = _BOOMaterialAssignment.BOOToMaterialInternalID
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_SalesOrder _SalesOrder $projection.SalesOrder = _SalesOrder.SalesOrder
[0..1] I_SalesOrderItem _SalesOrderItem $projection.SalesOrder = _SalesOrderItem.SalesOrder and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem
[0..1] I_WBSElementByInternalKey _WBSElement $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID
[0..1] I_ChangeMaster _ChangeMaster $projection.ChangeNumber = _ChangeMaster.ChangeNumber -- for ESH
[1..1] I_Product _Product $projection.Material = _Product.Product
[1..1] I_ProductPlant _ProductPlant $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
ObjectModel.representativeKey BOOMatlInternalVersionCounter view
Analytics.technicalName IRTGMATSRCHMOD view
EndUserText.label Material assgmt. to BOO view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY Material mapl matnr Vehicle Model
KEY Plant mapl werks Receiving Plant
KEY BillOfOperationsType mapl plnty Task List Type
KEY BillOfOperationsGroup mapl plnnr Task List Group
KEY BillOfOperationsVariant mapl plnal Referenced BOO Variant
KEY BOOToMaterialInternalID mapl zkriz Add. Crit. Cntr
KEY BOOMatlInternalVersionCounter mapl zaehl Sort pos.
ValidityStartDate mapl datuv Valid-from date
ValidityEndDate mapl valid_to Validity End Time
ChangeNumber mapl aennr Change Number
CreationDate mapl andat Created On
CreatedByUser
LastChangeDate mapl aedat Obsolete
LastChangedByUser
IsDeleted mapl loekz Status
IsImplicitlyDeleted mapl loekz_inherited Deletion Ind.
Supplier mapl lifnr Vendor no.
Customer mapl kunr Customer
SalesOrder mapl vbeln SD Sched. Agmt
SalesOrderItem mapl posnr WBS Element
WBSElementInternalID
BOOSearchText suchfeld Search Field
BillOfOperationsVersion mapl versn Version
_Material _Material
_Plant _Plant
_BillOfOperationsType _BillOfOperationsType
_BillOfOperationsGroup _BillOfOperationsGroup
_BillOfOperations _BillOfOperations
_BOOMaterialAssignment _BOOMaterialAssignment
_Supplier _Supplier
_Customer _Customer
_SalesOrder _SalesOrder
_SalesOrderItem _SalesOrderItem
_WBSElement _WBSElement
_ChangeMaster _ChangeMaster
_Product _Product
_ProductPlant _ProductPlant

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_RoutingMaterialSearchModel.
-- 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_RoutingMaterialSearchModel AS
SELECT
  mapl.matnr AS Material,
  mapl.werks AS Plant,
  mapl.plnty AS BillOfOperationsType,
  mapl.plnnr AS BillOfOperationsGroup,
  mapl.plnal AS BillOfOperationsVariant,
  mapl.zkriz AS BOOToMaterialInternalID,
  mapl.zaehl AS BOOMatlInternalVersionCounter,
  mapl.datuv AS ValidityStartDate,
  mapl.valid_to AS ValidityEndDate,
  mapl.aennr AS ChangeNumber,
  mapl.andat AS CreationDate,
  cast(mapl.annam as vdm_createdbyuserid preserving type) AS CreatedByUser,
  mapl.aedat AS LastChangeDate,
  cast(mapl.aenam as vdm_lastchangedbyuserid preserving type) AS LastChangedByUser,
  mapl.loekz AS IsDeleted,
  mapl.loekz_inherited AS IsImplicitlyDeleted,
  mapl.lifnr AS Supplier,
  mapl.kunr AS Customer,
  mapl.vbeln AS SalesOrder,
  mapl.posnr AS SalesOrderItem,
  cast(mapl.pspnr as pph_pspel preserving type) AS WBSElementInternalID,
  suchfeld AS BOOSearchText,
  mapl.versn AS BillOfOperationsVersion
FROM mapl
LEFT OUTER JOIN I_BillOfOperationsType AS _BillOfOperationsType ON BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType  -- association [1..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup ON BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup  -- association [1..1]
LEFT OUTER JOIN I_BillOfOperations AS _BillOfOperations ON BillOfOperationsType = _BillOfOperations.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant  -- association [1..1]
LEFT OUTER JOIN I_BOOMaterialAssignment AS _BOOMaterialAssignment ON Plant = _BOOMaterialAssignment.Plant AND Material = _BOOMaterialAssignment.Material AND BillOfOperationsType = _BOOMaterialAssignment.BillOfOperationsType AND BillOfOperationsGroup = _BOOMaterialAssignment.BillOfOperationsGroup AND BillOfOperationsVariant = _BOOMaterialAssignment.BillOfOperationsVariant AND BOOToMaterialInternalID = _BOOMaterialAssignment.BOOToMaterialInternalID  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_SalesOrder AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder  -- association [0..1]
LEFT OUTER JOIN I_SalesOrderItem AS _SalesOrderItem ON SalesOrder = _SalesOrderItem.SalesOrder AND SalesOrderItem = _SalesOrderItem.SalesOrderItem  -- association [0..1]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeMaster ON ChangeNumber = _ChangeMaster.ChangeNumber  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant  -- association [1..1]
;