I_ProdnRsceToolMasterData

DDL: I_PRODNRSCETOOLMASTERDATA SQL: IPPPRTMD Type: view BASIC

Production Resource Tool Master Data

I_ProdnRsceToolMasterData (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_ProdnRsceToolMasterData is a Basic CDS View (Dimension) that provides data about "Production Resource Tool Master Data" in SAP S/4HANA. It reads from 1 data source (crfh) and exposes 53 fields with key fields ProductionResourceType, ProductionResourceInternalID. It has 19 associations to related views.

SAP Help Documentation

CategoryCDS Views for Basic Production Resource / Tools Data
Data CategoryBasic, Dimension
StatusReleased
Purpose
This CDS view provides the prerequisites for answering the following business questions: Which Production Resource Tools exist for a certain category ( Material , Equipment , Miscellaneous , Document )? Which Production Resource Tools are assigned to a certain Production Resource Tool Group ? Which Production Resource Tools can be used in a certain type of Bill of Operations (for example Routings )?

Prerequisites
You have authorizations to display: Production Resource Tool Master Data ( C_CRFH_BRG )

Structure
Measures and attributes The following main attributes are provided: Production Resource Tool Internal ID Production Resource Tool Category (Material, Equipment, Miscellaneous and Document) Production Resource Tool Group 1 and 2 Production Resource Tool Usage (e.g. Routing) Production Resource Tool Control Profile

Constraints
Since there are four different categories of production resource tools ( Material , Equipment , Miscellaneous and Document ) the data cannot be accessed with the external keys (e.g. material number). The internal key must be used. The view does not deliver deleted PRTs.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM-MD
CapabilitiesAssociation Target for Defining CDS Entities, Analytical Dimension, Data Source in SQL Select, Data Source for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Which Production Resource Tools exist for a certain category (Material, Equipment, Miscellaneous, Document)?</p></li> <li><p>Which Production Resource Tools are assigned to a certain Production Resource Tool Group?</p></li> <li><p>Which Production Resource Tools can be used in a certain type of Bill of Operations (for example Routings)?</p></li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
crfh crfh from

Associations (19)

CardinalityTargetAliasCondition
[1..1] I_ProductionResourceType _ProductionResourceType $projection.ProductionResourceType = _ProductionResourceType.ProductionResourceType
[1..1] I_ProdnRsceToolCategory _ProdnRsceToolCategory $projection.ProdnRsceToolCategory = _ProdnRsceToolCategory.ProdnRsceToolCategory
[1..1] I_ProdnRsceToolCategory _ProdnRsceToolCategory_2 $projection.ProdnRsceToolCategory_2 = _ProdnRsceToolCategory_2.ProdnRsceToolCategory
[1..1] I_ProdnRsceToolCategory_2 _ProdnRsceToolCategory_3 $projection.ProdnRsceToolCategory_2 = _ProdnRsceToolCategory_3.ProdnRsceToolCategory
[1..1] I_ProdnRsceToolGroup _ProdnRsceToolGroup1 $projection.ProductionResourceToolGroup1 = _ProdnRsceToolGroup1.ProductionResourceToolGroup
[1..1] I_ProdnRsceToolGroup _ProdnRsceToolGroup2 $projection.ProductionResourceToolGroup2 = _ProdnRsceToolGroup2.ProductionResourceToolGroup
[1..1] I_ProductionResourceUsage _ProductionResourceUsage $projection.ProductionResourceUsage = _ProductionResourceUsage.ProductionResourceUsage
[0..1] I_ProdnRsceToolControlProfile _ProdnRsceToolControlProfile $projection.ProdnRsceToolControlProfile = _ProdnRsceToolControlProfile.ProdnRsceToolControlProfile
[1..1] I_ProdnRsceToolStandardText _ProdnRsceToolStandardText $projection.ProdnRsceToolStandardTextCode = _ProdnRsceToolStandardText.ProdnRsceToolStandardTextCode
[0..1] I_ChangeMaster _ChangeMaster $projection.ChangeNumber = _ChangeMaster.ChangeNumber
[1..1] I_ProdnRsceToolQtyCalcFormula _ProdnRsceToolTotQtyCalcFmla $projection.ProdnRsceToolTotQtyCalcFormula = _ProdnRsceToolTotQtyCalcFmla.ProdnRsceToolQtyCalcFormula
[1..1] I_ProdnRsceToolQtyCalcFormula _ProdnRsceToolUsageQtyCalcFmla $projection.ProdnRsceToolUsageQtyCalcFmla = _ProdnRsceToolUsageQtyCalcFmla.ProdnRsceToolQtyCalcFormula
[1..1] I_OperationDateOffsetRefCode _StartDateOffsetReferenceCode $projection.StartDateOffsetReferenceCode = _StartDateOffsetReferenceCode.OperationDateOffsetRefCode
[1..1] I_OperationDateOffsetRefCode _EndDateOffsetReferenceCode $projection.EndDateOffsetReferenceCode = _EndDateOffsetReferenceCode.OperationDateOffsetRefCode
[0..1] I_UnitOfMeasure _StartDateOffsetDurationUnit $projection.StartDateOffsetDurationUnit = _StartDateOffsetDurationUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _EndDateOffsetDurationUnit $projection.EndDateOffsetDurationUnit = _EndDateOffsetDurationUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _ProdnRsceToolBaseUnit $projection.ProdnRsceToolBaseUnit = _ProdnRsceToolBaseUnit.UnitOfMeasure
[1..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName IPPPRTMD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #DIMENSION view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey ProductionResourceInternalID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
EndUserText.label Production Resource Tool Master Data view

Fields (53)

KeyFieldSource TableSource FieldDescription
KEY ProductionResourceType Production Resource Type
KEY ProductionResourceInternalID Internal ID of Production Resource/Tool
ProdnRsceToolCategory crfh fhmar Production Resources/Tools Category
ProdnRsceToolCategory_2 Production Resources/Tools Category
ProductionResourceToolGroup1 crfh fgru1 Grouping Key 1 for Production Resources/Tools
ProductionResourceToolGroup2 crfh fgru2 Grouping Key 2 for Production Resources/Tools
ProductionResourceUsage crfh planv Production Resource/Tool Usage
MiscPRTAuthorizationGroup crfh brgru Authorization Group
ProdnRsceToolControlProfile crfh steuf Control Profile for Management of Production Resources/Tools
ChangeNumber Change Number
ProdnRsceToolStandardTextCode crfh ktsch Standard Text Key for Production Resources/Tools
ProdnRsceToolTotQtyCalcFormula crfh mgform Formula for Calculating the Total Quantity of PRT
ProdnRsceToolUsageQtyCalcFmla crfh ewform Formula for Calculating the Total Usage Value of PRT
ProdnRsceToolBaseUnit crfh baseh Base Unit of Measure for Production Resources/Tools
CreationDate crfh andat Date Record Created On
CreatedByUser Created By User
LastChangeDate crfh aedat Last Changed On
LastChangedByUser crfh aenam Name of Person Who Changed Object
StartDateOffsetReferenceCode Reference Date for Start of PRT Usage
StartDateOffsetDuration Offset to Start of PRT Usage
StartDateOffsetDurationUnit crfh ehoffb Offset Unit for Start of Prodn Resource/Tool Usage
EndDateOffsetReferenceCode Reference Date for End of PRT Usage
EndDateOffsetDuration Offset to End of PRT Usage
EndDateOffsetDurationUnit crfh ehoffe Offset Unit for End of Production Resource/Tool Usage
EndDateOffsetDurnIsReferenced Offset to End of PRT Usage is Referenced
StartDateOffstDurnIsReferenced Offset to Start of PRT Usage is Referenced
EndDteOffstRefCodeIsReferenced Reference Date for End of PRT Usage is Referenced
StartDateOffsetRefCodeIsRefcd Reference Date for Start of PRT Usage is Referenced
PRTTotQtyCalcFmlaIsReferenced Formula for Calculating the Total PRT Quantity is Referenced
PRTUsgeQtyCalcFmlaIsReferenced Formula for Calculating Total PRT Usage Value is Referenced
PRTControlProfileIsReferenced Control Profile for Management of PRT is Referenced
PRTStdTextCodeIsReferenced Standard Text Key for PRT is Referenced
ShopFloorRtgPRTIsRegistrable crfh registrable Specifies that the PRT can be Registered in Execution
ProdPRTLoadRecordsAreCreated crfh kzkbl Indicator: Create load records for prod. resources/tools
_ProductionResourceType _ProductionResourceType
_ProdnRsceToolCategory _ProdnRsceToolCategory
_ProdnRsceToolCategory_2 _ProdnRsceToolCategory_2
_ProdnRsceToolCategory_3 _ProdnRsceToolCategory_3
_ProdnRsceToolGroup1 _ProdnRsceToolGroup1
_ProdnRsceToolGroup2 _ProdnRsceToolGroup2
_ProductionResourceUsage _ProductionResourceUsage
_ProdnRsceToolControlProfile _ProdnRsceToolControlProfile
_ProdnRsceToolStandardText _ProdnRsceToolStandardText
_ProdnRsceToolTotQtyCalcFmla _ProdnRsceToolTotQtyCalcFmla
_ProdnRsceToolUsageQtyCalcFmla _ProdnRsceToolUsageQtyCalcFmla
_StartDateOffsetReferenceCode _StartDateOffsetReferenceCode
_EndDateOffsetReferenceCode _EndDateOffsetReferenceCode
_StartDateOffsetDurationUnit _StartDateOffsetDurationUnit
_EndDateOffsetDurationUnit _EndDateOffsetDurationUnit
_ProdnRsceToolBaseUnit _ProdnRsceToolBaseUnit
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_ChangeMaster _ChangeMaster

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_ProdnRsceToolMasterData.
-- 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: IPPPRTMD

CREATE VIEW I_ProdnRsceToolMasterData AS
SELECT
  cast(crfh.objty as productionresourcetype preserving type) AS ProductionResourceType,
  cast(crfh.objid as pph_fhmid preserving type) AS ProductionResourceInternalID,
  crfh.fhmar AS ProdnRsceToolCategory,
  cast(crfh.fhmar as mpe_fhmar preserving type) AS ProdnRsceToolCategory_2,
  crfh.fgru1 AS ProductionResourceToolGroup1,
  crfh.fgru2 AS ProductionResourceToolGroup2,
  crfh.planv AS ProductionResourceUsage,
  crfh.brgru AS MiscPRTAuthorizationGroup,
  crfh.steuf AS ProdnRsceToolControlProfile,
  cast(crfh.aennr as changenumber preserving type) AS ChangeNumber,
  crfh.ktsch AS ProdnRsceToolStandardTextCode,
  crfh.mgform AS ProdnRsceToolTotQtyCalcFormula,
  crfh.ewform AS ProdnRsceToolUsageQtyCalcFmla,
  crfh.baseh AS ProdnRsceToolBaseUnit,
  crfh.andat AS CreationDate,
  cast(crfh.annam as vdm_createdbyuserid preserving type) AS CreatedByUser,
  crfh.aedat AS LastChangeDate,
  crfh.aenam AS LastChangedByUser,
  cast(crfh.bzoffb as startdateoffsetreferencecode preserving type) AS StartDateOffsetReferenceCode,
  cast(crfh.offstb as startdateoffsetduration preserving type) AS StartDateOffsetDuration,
  crfh.ehoffb AS StartDateOffsetDurationUnit,
  cast(crfh.bzoffe as enddateoffsetreferencecode preserving type) AS EndDateOffsetReferenceCode,
  cast(crfh.offste as enddateoffsetduration preserving type) AS EndDateOffsetDuration,
  crfh.ehoffe AS EndDateOffsetDurationUnit,
  cast(crfh.offste_ref as vdm_oekzr preserving type) AS EndDateOffsetDurnIsReferenced,
  cast(crfh.offstb_ref as vdm_obkzr preserving type) AS StartDateOffstDurnIsReferenced,
  cast(crfh.bzoffe_ref as vdm_bekzr preserving type) AS EndDteOffstRefCodeIsReferenced,
  cast(crfh.bzoffb_ref as vdm_bbkzr preserving type) AS StartDateOffsetRefCodeIsRefcd,
  cast(crfh.mgform_ref as vdm_mfkzr preserving type) AS PRTTotQtyCalcFmlaIsReferenced,
  cast(crfh.ewform_ref as vdm_efkzr preserving type) AS PRTUsgeQtyCalcFmlaIsReferenced,
  cast(crfh.steuf_ref as vdm_stkzr preserving type) AS PRTControlProfileIsReferenced,
  cast(crfh.ktsch_ref as vdm_ktkzr preserving type) AS PRTStdTextCodeIsReferenced,
  crfh.registrable AS ShopFloorRtgPRTIsRegistrable,
  crfh.kzkbl AS ProdPRTLoadRecordsAreCreated
FROM crfh
LEFT OUTER JOIN I_ProductionResourceType AS _ProductionResourceType ON ProductionResourceType = _ProductionResourceType.ProductionResourceType  -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolCategory AS _ProdnRsceToolCategory ON ProdnRsceToolCategory = _ProdnRsceToolCategory.ProdnRsceToolCategory  -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolCategory AS _ProdnRsceToolCategory_2 ON ProdnRsceToolCategory_2 = _ProdnRsceToolCategory_2.ProdnRsceToolCategory  -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolCategory_2 AS _ProdnRsceToolCategory_3 ON ProdnRsceToolCategory_2 = _ProdnRsceToolCategory_3.ProdnRsceToolCategory  -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolGroup AS _ProdnRsceToolGroup1 ON ProductionResourceToolGroup1 = _ProdnRsceToolGroup1.ProductionResourceToolGroup  -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolGroup AS _ProdnRsceToolGroup2 ON ProductionResourceToolGroup2 = _ProdnRsceToolGroup2.ProductionResourceToolGroup  -- association [1..1]
LEFT OUTER JOIN I_ProductionResourceUsage AS _ProductionResourceUsage ON ProductionResourceUsage = _ProductionResourceUsage.ProductionResourceUsage  -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolControlProfile AS _ProdnRsceToolControlProfile ON ProdnRsceToolControlProfile = _ProdnRsceToolControlProfile.ProdnRsceToolControlProfile  -- association [0..1]
LEFT OUTER JOIN I_ProdnRsceToolStandardText AS _ProdnRsceToolStandardText ON ProdnRsceToolStandardTextCode = _ProdnRsceToolStandardText.ProdnRsceToolStandardTextCode  -- association [1..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeMaster ON ChangeNumber = _ChangeMaster.ChangeNumber  -- association [0..1]
LEFT OUTER JOIN I_ProdnRsceToolQtyCalcFormula AS _ProdnRsceToolTotQtyCalcFmla ON ProdnRsceToolTotQtyCalcFormula = _ProdnRsceToolTotQtyCalcFmla.ProdnRsceToolQtyCalcFormula  -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolQtyCalcFormula AS _ProdnRsceToolUsageQtyCalcFmla ON ProdnRsceToolUsageQtyCalcFmla = _ProdnRsceToolUsageQtyCalcFmla.ProdnRsceToolQtyCalcFormula  -- association [1..1]
LEFT OUTER JOIN I_OperationDateOffsetRefCode AS _StartDateOffsetReferenceCode ON StartDateOffsetReferenceCode = _StartDateOffsetReferenceCode.OperationDateOffsetRefCode  -- association [1..1]
LEFT OUTER JOIN I_OperationDateOffsetRefCode AS _EndDateOffsetReferenceCode ON EndDateOffsetReferenceCode = _EndDateOffsetReferenceCode.OperationDateOffsetRefCode  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StartDateOffsetDurationUnit ON StartDateOffsetDurationUnit = _StartDateOffsetDurationUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _EndDateOffsetDurationUnit ON EndDateOffsetDurationUnit = _EndDateOffsetDurationUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ProdnRsceToolBaseUnit ON ProdnRsceToolBaseUnit = _ProdnRsceToolBaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [1..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
;