I_REConditionChangeReason

DDL: I_RECONDITIONCHANGEREASON SQL: IRECHGRSN Type: view_entity BASIC Package: VDM_RE_CD

Reason for Change

I_REConditionChangeReason is a Basic CDS View (Dimension) that provides data about "Reason for Change" in SAP S/4HANA. It reads from 1 data source (tivcdchgreas) and exposes 5 fields with key fields REConditionType, REReasonForChange. It has 2 associations to related views. Part of development package VDM_RE_CD.

Data Sources (1)

SourceAliasJoin Type
tivcdchgreas tivcdchgreas from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_RECndnChangeReasonText _Text $projection.REConditionType = _Text.REConditionType and $projection.REReasonForChange = _Text.REReasonForChange
[0..1] I_REConditionType _REConditionType $projection.REConditionType = _REConditionType.REConditionType

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.representativeKey REReasonForChange view
VDM.viewType #BASIC view
EndUserText.label Reason for Change view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY REConditionType condtype Condition Type
KEY REReasonForChange chgreason Change Reason
REChgIsNotRelevantForFrequency notadjmrhrel NotRel.Adj.Frq.
_Text _Text
_REConditionType _REConditionType

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_REConditionChangeReason.
-- 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: IRECHGRSN

CREATE VIEW I_REConditionChangeReason AS
SELECT
  condtype AS REConditionType,
  chgreason AS REReasonForChange,
  notadjmrhrel AS REChgIsNotRelevantForFrequency
FROM tivcdchgreas
LEFT OUTER JOIN I_RECndnChangeReasonText AS _Text ON REConditionType = _Text.REConditionType AND REReasonForChange = _Text.REReasonForChange  -- association [0..*]
LEFT OUTER JOIN I_REConditionType AS _REConditionType ON REConditionType = _REConditionType.REConditionType  -- association [0..1]
;