I_CtrlgObjSettlmtDistrRule

DDL: I_CTRLGOBJSETTLMTDISTRRULE SQL: ICODISTRULE Type: view BASIC

Distribution Rule for CO Settlement

I_CtrlgObjSettlmtDistrRule is a Basic CDS View (Fact) that provides data about "Distribution Rule for CO Settlement" in SAP S/4HANA. It reads from 2 data sources (cobrb, I_CtrlgObjectSettlementRule) and exposes 92 fields with key fields ControllingObject, Ledger, LedgerGroup, SettlementDistributionRuleGrp, SettlmtDistrRuleSequence. It has 30 associations to related views.

Data Sources (2)

SourceAliasJoin Type
cobrb cobrb from
I_CtrlgObjectSettlementRule I_CtrlgObjectSettlementRule inner

Associations (30)

CardinalityTargetAliasCondition
[0..1] I_CtrlgObjectSettlementRule _CtrlgObjectSettlementRule $projection.ControllingObject = _CtrlgObjectSettlementRule.ControllingObject
[0..1] I_ControllingObject _ControllingObject $projection.ControllingObject = _ControllingObject.ControllingObject
[0..1] I_Ledger _Ledger $projection.Ledger = _Ledger.Ledger
[0..1] I_LedgerGroup _LedgerGroup $projection.LedgerGroup = _LedgerGroup.LedgerGroup
[0..1] I_SettlementType _SettlementType $projection.SettlementType = _SettlementType.SettlementType
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..*] I_CostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter
[0..1] I_AccountAssignmentTypeT _AccountAssignmentTypeT $projection.AccountAssignmentType = _AccountAssignmentTypeT.AccountAssignmentType and _AccountAssignmentTypeT.Language = $session.system_language
[0..1] I_SettlementTypeText _SettlementTypeText $projection.SettlementType = _SettlementTypeText.SettlementType and _SettlementTypeText.Language = $session.system_language
[0..1] I_WBSElementBasicData _WBSElementBasicData $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
[0..1] I_GLAccount _GLAccount $projection.GLAccount = _GLAccount.GLAccount and $projection.CompanyCode = _GLAccount.CompanyCode
[0..1] I_OrderBasic _OrderID $projection.OrderID = _OrderID.OrderID
[0..1] I_OrderBasic _ProjectNetwork $projection.ProjectNetwork = _ProjectNetwork.OrderID
[0..1] I_ControllingObject _ControllingObjectSettlmtRcvr $projection.SettlementReceiver = _ControllingObjectSettlmtRcvr.ControllingObject
[0..1] I_Currency _Currency $projection.SettlementAmountCurrency = _Currency.Currency
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_SettlementAutomGnrtnStrategy _SettlementAutomGnrtnStrategy $projection.SettlmtRuleAutomStrategyGnrtn = _SettlementAutomGnrtnStrategy.SettlmtRuleAutomStrategyGnrtn
[0..1] I_CtrlgStructureAssignment _SourceStructureAssignment $projection.SettlementSourceStructure = _SourceStructureAssignment.ControllingStructure and _SourceStructureAssignment.ControllingStructureType = 'U' and $projection.SettlmtDistrRuleSrceAssignment = _SourceStructureAssignment.ControllingStructureAssignment
[0..1] I_JntVntrMnpltnRuleRecoveryInd _JntVntrMnpltnRuleRecoveryInd $projection.SettlmtDistrManipulationRule = _JntVntrMnpltnRuleRecoveryInd.SettlmtDistrManipulationRule and $projection.ControllingArea = _JntVntrMnpltnRuleRecoveryInd.ControllingArea
[0..1] I_SettlmtTracingFctrDetnMethod _SettlmtTracingFctrDetnMethod $projection.SettlmtTracingFctrDetnMethod = _SettlmtTracingFctrDetnMethod.SettlmtTracingFctrDetnMethod
[0..1] I_SettlmtDistrAmountRuleType _SettlmtDistrAmountRuleType $projection.SettlementDistrAmountRuleType = _SettlmtDistrAmountRuleType.SettlementDistrAmountRuleType
[0..1] I_SettlmtTypeLanguageDependent _SettlmtTypeLanguageDependent $projection.SettlementType = _SettlmtTypeLanguageDependent.SettlementType and _SettlmtTypeLanguageDependent.Language = $session.system_language
[0..1] I_AssetTransactionType _AssetTransactionType $projection.AssetTransactionType = _AssetTransactionType.AssetTransactionType
[0..1] I_SalesOrderItem _SalesOrderItem $projection.SalesOrder = _SalesOrderItem.SalesOrder and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem
[0..1] I_AcctgServiceDocumentItem _AcctgServiceDocumentItem $projection.ServiceDocumentType = _AcctgServiceDocumentItem.ServiceDocumentType and $projection.ServiceDocument = _AcctgServiceDocumentItem.ServiceDocument and $projection.ServiceDocumentItem = _AcctgServiceDocumentItem.ServiceDocumentItem
[0..1] I_ServiceDocumentItem _ServiceDocumentItem $projection.ServiceDocumentType = _ServiceDocumentItem.ServiceDocumentType and $projection.ServiceDocument = _ServiceDocumentItem.ServiceDocument and $projection.ServiceDocumentItem = _ServiceDocumentItem.ServiceDocumentItem
[0..1] I_MasterFixedAsset _MasterFixedAsset $projection.CompanyCode = _MasterFixedAsset.CompanyCode and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset
[0..1] I_FixedAsset _FixedAsset $projection.CompanyCode = _FixedAsset.CompanyCode and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset
[0..1] I_BusinessProcess _BusinessProcess $projection.BusinessProcess = _BusinessProcess.BusinessProcess and $projection.ControllingArea = _BusinessProcess.ControllingArea
[0..*] I_ProfitCenter _ProfitCenter $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ControllingArea = _ProfitCenter.ControllingArea

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName ICODISTRULE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
AbapCatalog.buffering.type #NONE view
AbapCatalog.buffering.numberOfKeyFields 0 view
AbapCatalog.buffering.status #NOT_ALLOWED view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Distribution Rule for CO Settlement view

Fields (92)

KeyFieldSource TableSource FieldDescription
KEY ControllingObject cobrb objnr Val. Obj. No.
KEY Ledger cobrb lednr Ledger
KEY LedgerGroup cobrb ldgrp Target Ledger Group
KEY SettlementDistributionRuleGrp
KEY SettlmtDistrRuleSequence
SettlementType
AccountAssignmentType
SettlementReceiver
SettlementPercentageRate cobrb prozs Percentage
SettlementEquivalenceFactor
SettlementAmount cobrb betrr Return amount
SettlementAmountCurrency cobrb bwaer Ref.currency
SettlementTransaction cobrb avorg Sttlmt Trans.
SettlementDefaultRule cobrb dfreg Default Rule
ControllingArea
CostCenter
ProfitabilitySegment
ProfitabilitySegment_2
WBSElementInternalID
WBSElementExternalID _WBSElementBasicData WBSElementExternalID WBS Element External ID
ProjectNetwork cobrb nplnr Network
CostObject cobrb kstrg Cost Objects
BusinessProcess cobrb prznr Sender BProc
BusinessArea
AssetTransactionType cobrb anbwa Trans. type
SalesOrder cobrb kdauf SD Document
SalesOrderItem cobrb kdpos Sales Ord. Item
ServiceDocumentType cobrb service_doc_type Transaction Type
ServiceDocument cobrb service_doc_id Transaction ID
ServiceDocumentItem cobrb service_doc_item_id Service Doc. Item
OrderID cobrb aufnr SettlementOrder
OrderItem cobrb posnr WBS Element
CompanyCode
ProfitCenter cobrb prctr Profit Centers
MasterFixedAsset cobrb anln1 Asset
FixedAsset cobrb anln2 Sub-number
Plant cobrb werks Receiving Plant
Material cobrb matnr Vehicle Model
GLAccount cobrb hkont Transfer acct
ValidityStartFiscalPeriod cobrb gabpe Valid From
ValidityStartFiscalYear cobrb gabja Valid From
ValidityEndFiscalPeriod cobrb gbisp Valid To
ValidityEndFiscalYear cobrb gbisj Valid To
SettlmtRule1stUsgeFiscalPeriod cobrb erspe First Use
SettlmtRule1stUsageFiscalYear cobrb ersja First Use
SettlmtRuleLastUsgeFsclPeriod cobrb letpe Last Used
SettlmtRuleLastUsageFiscalYear cobrb letja Last Used
SettlmtDistributionRuleVersion cobrb versn Version
SettlmtTracingFctrDetnMethod cobrb strat Strategy Fields
SettlementDistrAmountRuleType
SettlmtDistrRuleSrceAssignment cobrb urzuo Source Assgnmnt
SettlmtDistributionRuleNumber
SettlmtDistrManipulationRule cobrb mrule MRULE
SettlmtRuleAutomStrategyGnrtn cobrb srstrat Strategy
SettlementDistrRuleRmngAmount cobrb brest Remaining Amt
SettlementDistrRuleInternalID cobrb aplzl Plan No.f.Oper.
OperationOrderRoutingNumber cobrb aufpl TaskList No.Ops
SettlmtDistrRuleIsUsedInLedger cobrb used_in_ledger Used in Ledger
SettlementDistributionRuleUUID cobrb unique_id Unique ID
SettlmtDistrRulePassDownUUID cobrb pass_down_uid Pass-Down UID
SettlementSourceStructure I_CtrlgObjectSettlementRule SettlementSourceStructure
_ControllingObject _ControllingObject
_CtrlgObjectSettlementRule _CtrlgObjectSettlementRule
_Ledger _Ledger
_LedgerGroup _LedgerGroup
_SettlementType _SettlementType
_ControllingArea _ControllingArea
_CostCenter _CostCenter
_AccountAssignmentTypeT _AccountAssignmentTypeT
_SettlementTypeText _SettlementTypeText
_WBSElementBasicData _WBSElementBasicData
_GLAccount _GLAccount
_OrderID _OrderID
_ProjectNetwork _ProjectNetwork
_ControllingObjectSettlmtRcvr _ControllingObjectSettlmtRcvr
_Currency _Currency
_CompanyCode _CompanyCode
_SettlementAutomGnrtnStrategy _SettlementAutomGnrtnStrategy
_SourceStructureAssignment _SourceStructureAssignment
_SourceStructure I_CtrlgObjectSettlementRule _SourceStructure
_JntVntrMnpltnRuleRecoveryInd _JntVntrMnpltnRuleRecoveryInd
_SettlmtTracingFctrDetnMethod _SettlmtTracingFctrDetnMethod
_SettlmtDistrAmountRuleType _SettlmtDistrAmountRuleType
_SettlmtTypeLanguageDependent _SettlmtTypeLanguageDependent
_AssetTransactionType _AssetTransactionType
_SalesOrderItem _SalesOrderItem
_AcctgServiceDocumentItem _AcctgServiceDocumentItem
_ServiceDocumentItem _ServiceDocumentItem
_MasterFixedAsset _MasterFixedAsset
_FixedAsset _FixedAsset
_BusinessProcess _BusinessProcess
_ProfitCenter _ProfitCenter

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_CtrlgObjSettlmtDistrRule.
-- 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: ICODISTRULE

CREATE VIEW I_CtrlgObjSettlmtDistrRule AS
SELECT
  cobrb.objnr AS ControllingObject,
  cobrb.lednr AS Ledger,
  cobrb.ldgrp AS LedgerGroup,
  cast(cobrb.bureg as fco_brsgr preserving type) AS SettlementDistributionRuleGrp,
  cast(cobrb.lfdnr as fco_br_lfdnr preserving type) AS SettlmtDistrRuleSequence,
  cast (cobrb.perbz as perbz) AS SettlementType,
  cast (cobrb.konty as fis_obart) AS AccountAssignmentType,
  cast(cobrb.rec_objnr1 as fco_srec_objnr preserving type) AS SettlementReceiver,
  cobrb.prozs AS SettlementPercentageRate,
  cast(cobrb.aqzif as fco_aqzif preserving type) AS SettlementEquivalenceFactor,
  cobrb.betrr AS SettlementAmount,
  cobrb.bwaer AS SettlementAmountCurrency,
  cobrb.avorg AS SettlementTransaction,
  cobrb.dfreg AS SettlementDefaultRule,
  cast(cobrb.kokrs as fis_kokrs preserving type ) AS ControllingArea,
  cast(cobrb.kostl as fis_kostl preserving type ) AS CostCenter,
  cast(cobrb.paobjnr as rkeobjnr_char) AS ProfitabilitySegment,
  cast(cobrb.paobjnr as rkeobjnr_char ) AS ProfitabilitySegment_2,
  cast(cobrb.ps_psp_pnr as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
  _WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID,
  cobrb.nplnr AS ProjectNetwork,
  cobrb.kstrg AS CostObject,
  cobrb.prznr AS BusinessProcess,
  cast(cobrb.gsber as fis_rbusa preserving type ) AS BusinessArea,
  cobrb.anbwa AS AssetTransactionType,
  cobrb.kdauf AS SalesOrder,
  cobrb.kdpos AS SalesOrderItem,
  cobrb.service_doc_type AS ServiceDocumentType,
  cobrb.service_doc_id AS ServiceDocument,
  cobrb.service_doc_item_id AS ServiceDocumentItem,
  cobrb.aufnr AS OrderID,
  cobrb.posnr AS OrderItem,
  cast(cobrb.bukrs as fis_bukrs preserving type ) AS CompanyCode,
  cobrb.prctr AS ProfitCenter,
  cobrb.anln1 AS MasterFixedAsset,
  cobrb.anln2 AS FixedAsset,
  cobrb.werks AS Plant,
  cobrb.matnr AS Material,
  cobrb.hkont AS GLAccount,
  cobrb.gabpe AS ValidityStartFiscalPeriod,
  cobrb.gabja AS ValidityStartFiscalYear,
  cobrb.gbisp AS ValidityEndFiscalPeriod,
  cobrb.gbisj AS ValidityEndFiscalYear,
  cobrb.erspe AS SettlmtRule1stUsgeFiscalPeriod,
  cobrb.ersja AS SettlmtRule1stUsageFiscalYear,
  cobrb.letpe AS SettlmtRuleLastUsgeFsclPeriod,
  cobrb.letja AS SettlmtRuleLastUsageFiscalYear,
  cobrb.versn AS SettlmtDistributionRuleVersion,
  cobrb.strat AS SettlmtTracingFctrDetnMethod,
  cast(cobrb.brtyp as fco_brtyp preserving type) AS SettlementDistrAmountRuleType,
  cobrb.urzuo AS SettlmtDistrRuleSrceAssignment,
  cast(cobrb.extnr as fco_cobr_extnr preserving type) AS SettlmtDistributionRuleNumber,
  cobrb.mrule AS SettlmtDistrManipulationRule,
  cobrb.srstrat AS SettlmtRuleAutomStrategyGnrtn,
  cobrb.brest AS SettlementDistrRuleRmngAmount,
  cobrb.aplzl AS SettlementDistrRuleInternalID,
  cobrb.aufpl AS OperationOrderRoutingNumber,
  cobrb.used_in_ledger AS SettlmtDistrRuleIsUsedInLedger,
  cobrb.unique_id AS SettlementDistributionRuleUUID,
  cobrb.pass_down_uid AS SettlmtDistrRulePassDownUUID,
  I_CtrlgObjectSettlementRule.SettlementSourceStructure AS SettlementSourceStructure,
  I_CtrlgObjectSettlementRule._SourceStructure AS _SourceStructure
FROM cobrb
INNER JOIN I_CtrlgObjectSettlementRule ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CtrlgObjectSettlementRule AS _CtrlgObjectSettlementRule ON ControllingObject = _CtrlgObjectSettlementRule.ControllingObject  -- association [0..1]
LEFT OUTER JOIN I_ControllingObject AS _ControllingObject ON ControllingObject = _ControllingObject.ControllingObject  -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger  -- association [0..1]
LEFT OUTER JOIN I_LedgerGroup AS _LedgerGroup ON LedgerGroup = _LedgerGroup.LedgerGroup  -- association [0..1]
LEFT OUTER JOIN I_SettlementType AS _SettlementType ON SettlementType = _SettlementType.SettlementType  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND CostCenter = _CostCenter.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_AccountAssignmentTypeT AS _AccountAssignmentTypeT ON AccountAssignmentType = _AccountAssignmentTypeT.AccountAssignmentType AND _AccountAssignmentTypeT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SettlementTypeText AS _SettlementTypeText ON SettlementType = _SettlementTypeText.SettlementType AND _SettlementTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_GLAccount AS _GLAccount ON GLAccount = _GLAccount.GLAccount AND CompanyCode = _GLAccount.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_OrderBasic AS _OrderID ON OrderID = _OrderID.OrderID  -- association [0..1]
LEFT OUTER JOIN I_OrderBasic AS _ProjectNetwork ON ProjectNetwork = _ProjectNetwork.OrderID  -- association [0..1]
LEFT OUTER JOIN I_ControllingObject AS _ControllingObjectSettlmtRcvr ON SettlementReceiver = _ControllingObjectSettlmtRcvr.ControllingObject  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON SettlementAmountCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_SettlementAutomGnrtnStrategy AS _SettlementAutomGnrtnStrategy ON SettlmtRuleAutomStrategyGnrtn = _SettlementAutomGnrtnStrategy.SettlmtRuleAutomStrategyGnrtn  -- association [0..1]
LEFT OUTER JOIN I_CtrlgStructureAssignment AS _SourceStructureAssignment ON SettlementSourceStructure = _SourceStructureAssignment.ControllingStructure AND _SourceStructureAssignment.ControllingStructureType = 'U' AND SettlmtDistrRuleSrceAssignment = _SourceStructureAssignment.ControllingStructureAssignment  -- association [0..1]
LEFT OUTER JOIN I_JntVntrMnpltnRuleRecoveryInd AS _JntVntrMnpltnRuleRecoveryInd ON SettlmtDistrManipulationRule = _JntVntrMnpltnRuleRecoveryInd.SettlmtDistrManipulationRule AND ControllingArea = _JntVntrMnpltnRuleRecoveryInd.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_SettlmtTracingFctrDetnMethod AS _SettlmtTracingFctrDetnMethod ON SettlmtTracingFctrDetnMethod = _SettlmtTracingFctrDetnMethod.SettlmtTracingFctrDetnMethod  -- association [0..1]
LEFT OUTER JOIN I_SettlmtDistrAmountRuleType AS _SettlmtDistrAmountRuleType ON SettlementDistrAmountRuleType = _SettlmtDistrAmountRuleType.SettlementDistrAmountRuleType  -- association [0..1]
LEFT OUTER JOIN I_SettlmtTypeLanguageDependent AS _SettlmtTypeLanguageDependent ON SettlementType = _SettlmtTypeLanguageDependent.SettlementType AND _SettlmtTypeLanguageDependent.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_AssetTransactionType AS _AssetTransactionType ON AssetTransactionType = _AssetTransactionType.AssetTransactionType  -- association [0..1]
LEFT OUTER JOIN I_SalesOrderItem AS _SalesOrderItem ON SalesOrder = _SalesOrderItem.SalesOrder AND SalesOrderItem = _SalesOrderItem.SalesOrderItem  -- association [0..1]
LEFT OUTER JOIN I_AcctgServiceDocumentItem AS _AcctgServiceDocumentItem ON ServiceDocumentType = _AcctgServiceDocumentItem.ServiceDocumentType AND ServiceDocument = _AcctgServiceDocumentItem.ServiceDocument AND ServiceDocumentItem = _AcctgServiceDocumentItem.ServiceDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentItem AS _ServiceDocumentItem ON ServiceDocumentType = _ServiceDocumentItem.ServiceDocumentType AND ServiceDocument = _ServiceDocumentItem.ServiceDocument AND ServiceDocumentItem = _ServiceDocumentItem.ServiceDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_MasterFixedAsset AS _MasterFixedAsset ON CompanyCode = _MasterFixedAsset.CompanyCode AND MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset  -- association [0..1]
LEFT OUTER JOIN I_FixedAsset AS _FixedAsset ON CompanyCode = _FixedAsset.CompanyCode AND MasterFixedAsset = _FixedAsset.MasterFixedAsset AND FixedAsset = _FixedAsset.FixedAsset  -- association [0..1]
LEFT OUTER JOIN I_BusinessProcess AS _BusinessProcess ON BusinessProcess = _BusinessProcess.BusinessProcess AND ControllingArea = _BusinessProcess.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ProfitCenter = _ProfitCenter.ProfitCenter AND ControllingArea = _ProfitCenter.ControllingArea  -- association [0..*]
;