I_MDSubstnRule

DDL: I_MDSUBSTNRULE Type: view_entity BASIC Package: VDM_MD_SUBSTN_COMMON

Master Data Substitution Rule

I_MDSubstnRule is a Basic CDS View that provides data about "Master Data Substitution Rule" in SAP S/4HANA. It reads from 1 data source (mdsubrule) and exposes 14 fields with key field MDSubstnRule. It has 2 associations to related views. Part of development package VDM_MD_SUBSTN_COMMON.

Data Sources (1)

SourceAliasJoin Type
mdsubrule mdsubrule from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_MDSubstnRuleText _RuleText $projection.MDSubstnRule = _RuleText.MDSubstnRule
[0..1] I_MDSubstnSource _Source $projection.MDSubstnRule = _Source.MDSubstnRule

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Master Data Substitution Rule view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.entityBuffer.definitionAllowed true view
ObjectModel.representativeKey MDSubstnRule view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #A view
VDM.viewType #BASIC view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY MDSubstnRule rule_name Symbol.Name
MDSubstnRuleHasValdty has_validities Supports Time Range
MDSubstnRuleHasSet has_sets Supports Sets
MDSubstnRuleHasConversion has_conversions Supports Conversion Factor
MDSubstnRuleHasPctCnvrsn has_percent Supports Percentage Factor
MDSubstnRuleHasGroup has_groups Supports Groups
MDSubstnRuleHasVersion has_versions Supports Versions
MDSubstnIsRlvtForATPProd is_atp_prod aATP Relevant
MDSubstnIsRlvtForATPPlant is_atp_plant ATP Plant
MDSubstnIsRelevantForESPP is_espp eSPP Relevant
MDSubstnIsRlvtForATPStorageLoc is_atp_sloc ATP Storage Location
MDSubstnIsRlvtForATPMRPArea is_atp_mrp_area ATP MRP Area
_RuleText _RuleText
_Source _Source

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_MDSubstnRule.
-- 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_MDSubstnRule AS
SELECT
  rule_name AS MDSubstnRule,
  has_validities AS MDSubstnRuleHasValdty,
  has_sets AS MDSubstnRuleHasSet,
  has_conversions AS MDSubstnRuleHasConversion,
  has_percent AS MDSubstnRuleHasPctCnvrsn,
  has_groups AS MDSubstnRuleHasGroup,
  has_versions AS MDSubstnRuleHasVersion,
  is_atp_prod AS MDSubstnIsRlvtForATPProd,
  is_atp_plant AS MDSubstnIsRlvtForATPPlant,
  is_espp AS MDSubstnIsRelevantForESPP,
  is_atp_sloc AS MDSubstnIsRlvtForATPStorageLoc,
  is_atp_mrp_area AS MDSubstnIsRlvtForATPMRPArea
FROM mdsubrule
LEFT OUTER JOIN I_MDSubstnRuleText AS _RuleText ON MDSubstnRule = _RuleText.MDSubstnRule  -- association [0..*]
LEFT OUTER JOIN I_MDSubstnSource AS _Source ON MDSubstnRule = _Source.MDSubstnRule  -- association [0..1]
;