I_BillOfOpVersionDefectCode

DDL: I_BILLOFOPVERSIONDEFECTCODE Type: view_entity BASIC Package: MPE_PLAN_RTG_VERS

Version BOO Defect Code Assignment

I_BillOfOpVersionDefectCode is a Basic CDS View (Dimension) that provides data about "Version BOO Defect Code Assignment" in SAP S/4HANA. It reads from 1 data source (mpe_rtg_defect) and exposes 16 fields with key fields BillOfOperationsType, BillOfOperationsGroup, BillOfOperationsVariant, BillOfOperationsVersion, DefectCodeGroup. It has 7 associations to related views. Part of development package MPE_PLAN_RTG_VERS.

Data Sources (1)

SourceAliasJoin Type
mpe_rtg_defect mpe_rtg_defect from

Associations (7)

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_DefectCodeGroup _DefectCodeGroup $projection.DefectCodeGroup = _DefectCodeGroup.DefectCodeGroup
[1..1] I_DefectCode _DefectCode $projection.DefectCodeGroup = _DefectCode.DefectCodeGroup and $projection.DefectCode = _DefectCode.DefectCode
[1..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.representativeKey BillOfOperationsVersion view
EndUserText.label Version BOO Defect Code Assignment view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY BillOfOperationsType plnty Task List Type
KEY BillOfOperationsGroup plnnr Task List Group
KEY BillOfOperationsVariant plnal Referenced BOO Variant
KEY BillOfOperationsVersion versn Version
KEY DefectCodeGroup Code Group
KEY DefectCode Water Hazard Cl.
CreationDateTime created_at Uploaded On
LastChangedByUser User Name
LastChangeDateTime changed_at Timestamp
_DefectCodeGroup _DefectCodeGroup
_DefectCode _DefectCode
_BillOfOperations _BillOfOperations
_BillOfOperationsGroup _BillOfOperationsGroup
_BillOfOperationsType _BillOfOperationsType
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser

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_BillOfOpVersionDefectCode.
-- 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_BillOfOpVersionDefectCode AS
SELECT
  plnty AS BillOfOperationsType,
  plnnr AS BillOfOperationsGroup,
  plnal AS BillOfOperationsVariant,
  versn AS BillOfOperationsVersion,
  cast( codegruppe as vdm_qfegrp preserving type ) AS DefectCodeGroup,
  cast( code as vdm_qfecod preserving type ) AS DefectCode,
  created_at AS CreationDateTime,
  cast(changed_by as vdm_lastchangedbyuserid preserving type) AS LastChangedByUser,
  changed_at AS LastChangeDateTime
FROM mpe_rtg_defect
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_DefectCodeGroup AS _DefectCodeGroup ON DefectCodeGroup = _DefectCodeGroup.DefectCodeGroup  -- association [1..1]
LEFT OUTER JOIN I_DefectCode AS _DefectCode ON DefectCodeGroup = _DefectCode.DefectCodeGroup AND DefectCode = _DefectCode.DefectCode  -- association [1..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]
;