C_ARunRule

DDL: C_ARUNRULE SQL: CARUNRULE Type: view CONSUMPTION Package: ARUN_RULE

Supply Assignment Rule

C_ARunRule is a Consumption CDS View that provides data about "Supply Assignment Rule" in SAP S/4HANA. It reads from 1 data source (I_ARunRuleTP) and exposes 51 fields with key field ARunRuleUUID. It has 8 associations to related views. It is exposed through 1 OData service (UI_RFM_ARUN_RULE_CONFIGURE). Part of development package ARUN_RULE.

Data Sources (1)

SourceAliasJoin Type
I_ARunRuleTP I_ARunRuleTP from

Associations (8)

CardinalityTargetAliasCondition
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..*] C_ARunRuleABOPVariant _UsageInVariant $projection.ARunRuleUUID = _UsageInVariant.ARunRuleUUID
[1..1] I_ARunDemandGroupRuleVH _GroupRuleTxt $projection.ARunDemandGroupRule = _GroupRuleTxt.ARunDemandGroupRule
[1..1] I_ARunSupProtMode _SupProtExecMode $projection.ARunSupProtExecMode = _SupProtExecMode.ARunSupProtExecMode and _SupProtExecMode.Language = $session.system_language
[1..1] I_ARunRuleDistributionStrategy _DistributionStrategy $projection.ARunDistributionStrategy = _DistributionStrategy.ARunDistributionStrategy and _DistributionStrategy.Language = $session.system_language
[1..1] I_ARunRuleGroupingStrategy _GroupingStrategy $projection.ARunGroupingStrategy = _GroupingStrategy.ARunGroupingStrategy and _GroupingStrategy.Language = $session.system_language
[1..1] I_ARunRuleFilterModeVH _RuleFilterMode $projection.ARunRuleFilterMode = _RuleFilterMode.ARunRuleFilterMode and _RuleFilterMode.Language = $session.system_language

Annotations (25)

NameValueLevelField
AbapCatalog.sqlViewName CARUNRULE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Supply Assignment Rule view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #CONSUMPTION view
ObjectModel.createEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.draftEnabled true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey ARunRuleUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
Metadata.allowExtensions true view
Search.searchable true view
UI.headerInfo.typeName Supply Assignment Rule view
UI.headerInfo.typeNamePlural Supply Assignment Rules view
UI.headerInfo.title.value ARunRuleName view
UI.headerInfo.description.value ARunRuleDescription view

OData Services (1)

ServiceBindingVersionContractRelease
UI_RFM_ARUN_RULE_CONFIGURE UI_RFM_ARUN_RULE_CONFIGURE V2 C1 NOT_RELEASED

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY ARunRuleUUID ARunRuleUUID ARun Rule UUID
ARunRuleName ARunRuleName Supply Assignment Rule
ARunRuleDescription ARunRuleDescription Description
ABOPStockSortRule ABOPStockSortRule Supply Sorting Rule
ABOPAllocReleaseIsRequired ABOPAllocReleaseIsRequired Release Check Required
ABOPSupplySelHorizonInDays ABOPSupplySelHorizonInDays Supply Horizon (Days)
ABOPAssignmentPreviewIsActive ABOPAssignmentPreviewIsActive Assignment Preview
ABOPSupplyReassignmentIsReqd ABOPSupplyReassignmentIsReqd Reassignment
ARunStkOverwriteIsRequired ARunStkOverwriteIsRequired Overwrite Supply Selection
ARunPhysicalStkIsSelected ARunPhysicalStkIsSelected Include Physical Stock
ARunPOStkIsSelected ARunPOStkIsSelected Include Purchase Orders
ARunASNStkIsSelected ARunASNStkIsSelected Include Shipping Notifications
ARunProdnOrdStkIsSelected ARunProdnOrdStkIsSelected Include Production Orders
ARunPurReqnStkIsSelected ARunPurReqnStkIsSelected Include Purchase Requisitions
ARunPlndOrdStkIsSelected ARunPlndOrdStkIsSelected Include Planned Orders
ARunSupplySelectionRuleUUID ARunSupplySelectionRuleUUID ARun Sel Rule UUID
ARunSupplySelectionRule ARunSupplySelectionRule Supply Selection Rule
ARunReleaseRule ARunReleaseRule Release Rule
ARunDistributionStrategy ARunDistributionStrategy Distribution Strategy
ARunGroupingStrategy ARunGroupingStrategy Grouping Strategy
ARunMinAssgmtPercent ARunMinAssgmtPercent Minimum Assignment(%)
ARunMaxAssgmtPercent ARunMaxAssgmtPercent Maximum Assignment(%)
ARunSupProtExecMode ARunSupProtExecMode Execution Mode
CreatedByUser CreatedByUser Created By
CreatedByUserDescription _CreatedByUser UserDescription Created By User Description
CreationDate CreationDate Created On
CreationDateTime CreationDateTime Timestamp
LastChangedByUser LastChangedByUser Changed By
LastChangedByUserDescription _LastChangedByUser UserDescription Changed By User Description
LastChangeDate LastChangeDate Changed On
LastChangeDateTime LastChangeDateTime Timestamp
ARunDemandGroupRuleUUID ARunDemandGroupRuleUUID ARun Group Rule UUID
ARunDemandGroupRule ARunDemandGroupRule Demand Group Rule
ARunDemandGroupRuleText _GroupRuleTxt ARunDemandGroupRuleText ARun Group Rule Text
ARunDemandGroupRuleIsVisible ARunDemandGroupRuleIsVisible
ARunIsRuleUsed ARunIsRuleUsed
ARunIgnoreStorLocChk ARunIgnoreStorLocChk Ignore S.loc Check
ARunIgnrCanclnDteSupDteChk ARunIgnrCanclnDteSupDteChk Ignr Canceln Dte Chk
ARunIgnrCanclnDteReqdDteChk ARunIgnrCanclnDteReqdDteChk Canceln Date Check
ARunIncludeIncmpltOrdChk ARunIncludeIncmpltOrdChk Incomplete Orders
ARunIgnoreBatchCheck ARunIgnoreBatchCheck Ignore Batch Check
ARunIgnorePastCanclnDateCheck ARunIgnorePastCanclnDateCheck Ignr Past Cancln Dte
ARunQtyRoundingStrgy ARunQtyRoundingStrgy Rounding Strategy
ARunRuleFilterMode ARunRuleFilterMode Filter Mode
ARunConfBsdSegmtnIsSeld ARunConfBsdSegmtnIsSeld Con-based Seg & Prio
_UsageInVariant _UsageInVariant
_GroupRuleTxt _GroupRuleTxt
_SupProtExecMode _SupProtExecMode
_DistributionStrategy _DistributionStrategy
_GroupingStrategy _GroupingStrategy
_RuleFilterMode _RuleFilterMode

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 C_ARunRule.
-- 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: CARUNRULE

CREATE VIEW C_ARunRule AS
SELECT
  ARunRuleUUID,
  ARunRuleName,
  ARunRuleDescription,
  ABOPStockSortRule,
  ABOPAllocReleaseIsRequired,
  ABOPSupplySelHorizonInDays,
  ABOPAssignmentPreviewIsActive,
  ABOPSupplyReassignmentIsReqd,
  ARunStkOverwriteIsRequired,
  ARunPhysicalStkIsSelected,
  ARunPOStkIsSelected,
  ARunASNStkIsSelected,
  ARunProdnOrdStkIsSelected,
  ARunPurReqnStkIsSelected,
  ARunPlndOrdStkIsSelected,
  ARunSupplySelectionRuleUUID,
  ARunSupplySelectionRule,
  ARunReleaseRule,
  ARunDistributionStrategy,
  ARunGroupingStrategy,
  ARunMinAssgmtPercent,
  ARunMaxAssgmtPercent,
  ARunSupProtExecMode,
  CreatedByUser,
  _CreatedByUser.UserDescription AS CreatedByUserDescription,
  CreationDate,
  CreationDateTime,
  LastChangedByUser,
  _LastChangedByUser.UserDescription AS LastChangedByUserDescription,
  LastChangeDate,
  LastChangeDateTime,
  ARunDemandGroupRuleUUID,
  ARunDemandGroupRule,
  _GroupRuleTxt.ARunDemandGroupRuleText AS ARunDemandGroupRuleText,
  ARunDemandGroupRuleIsVisible,
  ARunIsRuleUsed,
  ARunIgnoreStorLocChk,
  ARunIgnrCanclnDteSupDteChk,
  ARunIgnrCanclnDteReqdDteChk,
  ARunIncludeIncmpltOrdChk,
  ARunIgnoreBatchCheck,
  ARunIgnorePastCanclnDateCheck,
  ARunQtyRoundingStrgy,
  ARunRuleFilterMode,
  ARunConfBsdSegmtnIsSeld
FROM I_ARunRuleTP
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN C_ARunRuleABOPVariant AS _UsageInVariant ON ARunRuleUUID = _UsageInVariant.ARunRuleUUID  -- association [0..*]
LEFT OUTER JOIN I_ARunDemandGroupRuleVH AS _GroupRuleTxt ON ARunDemandGroupRule = _GroupRuleTxt.ARunDemandGroupRule  -- association [1..1]
LEFT OUTER JOIN I_ARunSupProtMode AS _SupProtExecMode ON ARunSupProtExecMode = _SupProtExecMode.ARunSupProtExecMode AND _SupProtExecMode.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_ARunRuleDistributionStrategy AS _DistributionStrategy ON ARunDistributionStrategy = _DistributionStrategy.ARunDistributionStrategy AND _DistributionStrategy.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_ARunRuleGroupingStrategy AS _GroupingStrategy ON ARunGroupingStrategy = _GroupingStrategy.ARunGroupingStrategy AND _GroupingStrategy.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_ARunRuleFilterModeVH AS _RuleFilterMode ON ARunRuleFilterMode = _RuleFilterMode.ARunRuleFilterMode AND _RuleFilterMode.Language = $session.system_language  -- association [1..1]
;