P_PRTEquipmentAssignment

DDL: P_PRTEQUIPMENTASSIGNMENT Type: view_entity COMPOSITE

P_PRTEquipmentAssignment is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_Equipment, I_EquipmentPRTByInternalKey, I_MaterialPRTByInternalKey) and exposes 7 fields with key fields ProductionResourceType, ProductionResourceInternalID, Equipment, ProductionResourceInternalID, Equipment.

Data Sources (3)

SourceAliasJoin Type
I_Equipment I_Equipment inner
I_EquipmentPRTByInternalKey I_EquipmentPRTByInternalKey from
I_MaterialPRTByInternalKey I_MaterialPRTByInternalKey union_all

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ProductionResourceType ProductionResourceType Object Type
KEY ProductionResourceInternalID ProductionResourceInternalID Object ID
KEY Equipment Equipment Equipment check
ProductionResourceType Object Type
KEY ProductionResourceInternalID I_MaterialPRTByInternalKey ProductionResourceInternalID Object ID
KEY Equipment I_Equipment Equipment Equipment check
ProductionResourceUsage I_MaterialPRTByInternalKey ProductionResourceUsage

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 P_PRTEquipmentAssignment.
-- 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 P_PRTEquipmentAssignment AS
SELECT
  ProductionResourceType,
  ProductionResourceInternalID,
  Equipment,
  I_MaterialPRTByInternalKey.ProductionResourceUsage AS ProductionResourceUsage
FROM I_EquipmentPRTByInternalKey
INNER JOIN I_Equipment ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_MaterialPRTByInternalKey
;