I_InternalOrderSettlementRule

DDL: I_INTERNALORDERSETTLEMENTRULE Type: view_entity COMPOSITE

Internal Order Settlement Rule

I_InternalOrderSettlementRule is a Composite CDS View that provides data about "Internal Order Settlement Rule" in SAP S/4HANA. It reads from 2 data sources (I_CtrlgObjectSettlementRule, I_InternalOrder) and exposes 55 fields with key field ControllingObject. It has 7 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_CtrlgObjectSettlementRule I_CtrlgObjectSettlementRule from
I_InternalOrder I_InternalOrder inner

Associations (7)

CardinalityTargetAliasCondition
[0..*] I_IntOrderSettlementDistrRule _IntOrderSettlementDistrRule $projection.ControllingObject = _IntOrderSettlementDistrRule.ControllingObject
[0..*] I_LdgrSpcfcAllocStruc _LdgrSpcfcAllocStruc $projection.AllocationStructure = _LdgrSpcfcAllocStruc.AllocationStructure and ( $projection.CompanyCode = _LdgrSpcfcAllocStruc.CompanyCode or _LdgrSpcfcAllocStruc.CompanyCode = '' )
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_InternalOrderType _InternalOrderType $projection.OrderType = _InternalOrderType.OrderType
[0..1] I_StatusObjectStatusBasic _IntOrdIsMarkedForDeletion $projection.ControllingObject = _IntOrdIsMarkedForDeletion.StatusObject and _IntOrdIsMarkedForDeletion.StatusCode = 'I0013'
[0..1] I_StatusObjectStatusBasic _IntOrdDeletionFlagIsSet I_InternalOrder.ControllingObject = _IntOrdDeletionFlagIsSet.StatusObject and _IntOrdDeletionFlagIsSet.StatusCode = 'I0076'
[0..1] I_StatusObjectStatusBasic _InternalOrderIsLocked I_InternalOrder.ControllingObject = _InternalOrderIsLocked.StatusObject and _InternalOrderIsLocked.StatusCode = 'I0043'

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Internal Order Settlement Rule view

Fields (55)

KeyFieldSource TableSource FieldDescription
KEY ControllingObject I_CtrlgObjectSettlementRule ControllingObject
CreatedByUser I_CtrlgObjectSettlementRule CreatedByUser
CreationDate I_CtrlgObjectSettlementRule CreationDate
LastChangedByUser
LastChangeDate I_CtrlgObjectSettlementRule LastChangeDate
CtrlgObjectSettlementRuleName I_CtrlgObjectSettlementRule CtrlgObjectSettlementRuleName
AllocationStructure I_CtrlgObjectSettlementRule AllocationStructure
SettlementGLAccount I_CtrlgObjectSettlementRule SettlementGLAccount
SettlementSourceStructure I_CtrlgObjectSettlementRule SettlementSourceStructure
SettlementIsProportional I_CtrlgObjectSettlementRule SettlementIsProportional
SettlementRuleHasUpdateError I_CtrlgObjectSettlementRule SettlementRuleHasUpdateError
ControllingSettlementProfile I_CtrlgObjectSettlementRule ControllingSettlementProfile
SettlementSequentialNumber I_CtrlgObjectSettlementRule SettlementSequentialNumber
AssetValueDate I_CtrlgObjectSettlementRule AssetValueDate
ProfitabilityAcctgTransfStruc I_CtrlgObjectSettlementRule ProfitabilityAcctgTransfStruc
SettlmtRuleLastUsgeFsclPeriod I_CtrlgObjectSettlementRule SettlmtRuleLastUsgeFsclPeriod
SettlmtRuleLastUsageFiscalYear I_CtrlgObjectSettlementRule SettlmtRuleLastUsageFiscalYear
SettlmtRuleProcessingSequence I_CtrlgObjectSettlementRule SettlmtRuleProcessingSequence
SettlementRuleCreationDateTime I_CtrlgObjectSettlementRule SettlementRuleCreationDateTime
SettlmtRuleAutoGnrtnStrgySqnc I_CtrlgObjectSettlementRule SettlmtRuleAutoGnrtnStrgySqnc
SettlmtWithFreeDefinedCurrency I_CtrlgObjectSettlementRule SettlmtWithFreeDefinedCurrency
InternalOrder I_InternalOrder InternalOrder
InternalOrderDescription
OrderType I_InternalOrder OrderType
ControllingArea I_InternalOrder ControllingArea
InternalOrderLastChangedByUser
InternalOrderLastChangeDate
CompanyCode I_InternalOrder CompanyCode
IsStatisticalOrder I_InternalOrder IsStatisticalOrder
InternalOrderControllingObject I_InternalOrder ControllingObject
IntOrderSystemStatusShortName
InternalOrderSystemStatusName
_AllocationStructure I_CtrlgObjectSettlementRule _AllocationStructure
_ControllingObject I_CtrlgObjectSettlementRule _ControllingObject
_SourceStructure I_CtrlgObjectSettlementRule _SourceStructure
_CreatedByUser I_CtrlgObjectSettlementRule _CreatedByUser
_CtrlgObjSettlmtDistrRule I_CtrlgObjectSettlementRule _CtrlgObjSettlmtDistrRule
_LastChangedByUser I_CtrlgObjectSettlementRule _LastChangedByUser
_PrftbltyAcctgTransfStructure I_CtrlgObjectSettlementRule _PrftbltyAcctgTransfStructure
_ControllingSettlementProfile I_CtrlgObjectSettlementRule _ControllingSettlementProfile
_SettlmtAutomGnrtnStrgySqnc I_CtrlgObjectSettlementRule _SettlmtAutomGnrtnStrgySqnc
_SettlmtWithFreeDfndCurrency I_CtrlgObjectSettlementRule _SettlmtWithFreeDfndCurrency
_InternalOrderTypeText I_InternalOrder _InternalOrderTypeText
_CompanyCode I_InternalOrder _CompanyCode
_IntOrderLastChangedByUser I_InternalOrder _LastChangedByUser
_IntOrderActiveSystemStatus I_InternalOrder _IntOrderActiveSystemStatus
_IntOrderActiveUserStatus I_InternalOrder _IntOrderActiveUserStatus
_SystemStatus I_InternalOrder _SystemStatus
_ControllingArea _ControllingArea
_InternalOrderType _InternalOrderType
_IntOrderSettlementDistrRule _IntOrderSettlementDistrRule
_IntOrdIsMarkedForDeletion _IntOrdIsMarkedForDeletion
_IntOrdDeletionFlagIsSet _IntOrdDeletionFlagIsSet
_InternalOrderIsLocked _InternalOrderIsLocked
_LdgrSpcfcAllocStruc _LdgrSpcfcAllocStruc
@AccessControl.authorizationCheck: #CHECK
@AccessControl.privilegedAssociations: ['_LastChangedByUser','_CreatedByUser']
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType:{
  serviceQuality: #B,
  sizeCategory: #L,
  dataClass: #TRANSACTIONAL
}
@EndUserText.label: 'Internal Order Settlement Rule'
define view entity I_InternalOrderSettlementRule
  as select from I_CtrlgObjectSettlementRule
    inner join   I_InternalOrder on I_CtrlgObjectSettlementRule.ControllingObject = I_InternalOrder.ControllingObject
  association [0..*] to I_IntOrderSettlementDistrRule as _IntOrderSettlementDistrRule on  $projection.ControllingObject = _IntOrderSettlementDistrRule.ControllingObject
  association [0..*] to I_LdgrSpcfcAllocStruc         as _LdgrSpcfcAllocStruc         on  $projection.AllocationStructure    = _LdgrSpcfcAllocStruc.AllocationStructure
                                                                                      and (
                                                                                         $projection.CompanyCode             = _LdgrSpcfcAllocStruc.CompanyCode
                                                                                         or _LdgrSpcfcAllocStruc.CompanyCode = ''
                                                                                       )
  association [0..1] to I_ControllingArea             as _ControllingArea             on  $projection.ControllingArea = _ControllingArea.ControllingArea
  association [0..1] to I_InternalOrderType           as _InternalOrderType           on  $projection.OrderType = _InternalOrderType.OrderType
  association [0..1] to I_StatusObjectStatusBasic     as _IntOrdIsMarkedForDeletion   on  $projection.ControllingObject         = _IntOrdIsMarkedForDeletion.StatusObject
                                                                                      and _IntOrdIsMarkedForDeletion.StatusCode = 'I0013'
  association [0..1] to I_StatusObjectStatusBasic     as _IntOrdDeletionFlagIsSet     on  I_InternalOrder.ControllingObject   = _IntOrdDeletionFlagIsSet.StatusObject
                                                                                      and _IntOrdDeletionFlagIsSet.StatusCode = 'I0076'
  association [0..1] to I_StatusObjectStatusBasic     as _InternalOrderIsLocked       on  I_InternalOrder.ControllingObject = _InternalOrderIsLocked.StatusObject
                                                                                      and _InternalOrderIsLocked.StatusCode = 'I0043'
{
  key I_CtrlgObjectSettlementRule.ControllingObject,
      I_CtrlgObjectSettlementRule.CreatedByUser,
      I_CtrlgObjectSettlementRule.CreationDate,
      cast(I_CtrlgObjectSettlementRule.LastChangedByUser as fco_sr_io_brgaenam preserving type )        as LastChangedByUser,
      I_CtrlgObjectSettlementRule.LastChangeDate,
      I_CtrlgObjectSettlementRule.CtrlgObjectSettlementRuleName,
      I_CtrlgObjectSettlementRule.AllocationStructure,
      I_CtrlgObjectSettlementRule.SettlementGLAccount,
      I_CtrlgObjectSettlementRule.SettlementSourceStructure,
      I_CtrlgObjectSettlementRule.SettlementIsProportional,
      I_CtrlgObjectSettlementRule.SettlementRuleHasUpdateError,
      I_CtrlgObjectSettlementRule.ControllingSettlementProfile,
      I_CtrlgObjectSettlementRule.SettlementSequentialNumber,
      I_CtrlgObjectSettlementRule.AssetValueDate,
      I_CtrlgObjectSettlementRule.ProfitabilityAcctgTransfStruc,
      I_CtrlgObjectSettlementRule.SettlmtRuleLastUsgeFsclPeriod,
      I_CtrlgObjectSettlementRule.SettlmtRuleLastUsageFiscalYear,
      I_CtrlgObjectSettlementRule.SettlmtRuleProcessingSequence,
      I_CtrlgObjectSettlementRule.SettlementRuleCreationDateTime,
      I_CtrlgObjectSettlementRule.SettlmtRuleAutoGnrtnStrgySqnc,
      I_CtrlgObjectSettlementRule.SettlmtWithFreeDefinedCurrency,


      I_InternalOrder.InternalOrder,
      cast( I_InternalOrder.InternalOrderDescription as fis_io_text preserving type )                   as InternalOrderDescription,
      @ObjectModel.foreignKey.association: '_InternalOrderType'
      @ObjectModel.text.association:null
      I_InternalOrder.OrderType,
      @ObjectModel.foreignKey.association: '_ControllingArea'
      @ObjectModel.text.association:null
      I_InternalOrder.ControllingArea,
      cast(I_InternalOrder.LastChangedByUser  as fco_sr_io_aufaenam preserving type )                   as InternalOrderLastChangedByUser,
      cast(I_InternalOrder.LastChangeDate as  fco_sr_io_aufaedat preserving type )                      as InternalOrderLastChangeDate,
      //      @ObjectModel.foreignKey.association: '_CompanyCode'

      I_InternalOrder.CompanyCode,
      I_InternalOrder.IsStatisticalOrder,
      I_InternalOrder.ControllingObject                                                                 as InternalOrderControllingObject,
      I_InternalOrder._SystemStatus._Text[1: Language = $session.system_language].SystemStatusShortName as IntOrderSystemStatusShortName,
      I_InternalOrder._SystemStatus._Text[1: Language = $session.system_language].StatusName            as InternalOrderSystemStatusName,


      /* Associations */
      I_CtrlgObjectSettlementRule._AllocationStructure,
      I_CtrlgObjectSettlementRule._ControllingObject,
      I_CtrlgObjectSettlementRule._SourceStructure,
      I_CtrlgObjectSettlementRule._CreatedByUser,
      I_CtrlgObjectSettlementRule._CtrlgObjSettlmtDistrRule,
      I_CtrlgObjectSettlementRule._LastChangedByUser,
      I_CtrlgObjectSettlementRule._PrftbltyAcctgTransfStructure,
      I_CtrlgObjectSettlementRule._ControllingSettlementProfile,
      I_CtrlgObjectSettlementRule._SettlmtAutomGnrtnStrgySqnc,
      I_CtrlgObjectSettlementRule._SettlmtWithFreeDfndCurrency,
      I_InternalOrder._InternalOrderTypeText,
      I_InternalOrder._CompanyCode,
      I_InternalOrder._LastChangedByUser                                                                as _IntOrderLastChangedByUser,
      I_InternalOrder._IntOrderActiveSystemStatus,
      I_InternalOrder._IntOrderActiveUserStatus,
      I_InternalOrder._SystemStatus,

      _ControllingArea,
      _InternalOrderType,
      _IntOrderSettlementDistrRule,
      _IntOrdIsMarkedForDeletion,
      _IntOrdDeletionFlagIsSet,
      _InternalOrderIsLocked,
      _LdgrSpcfcAllocStruc
}
where
     I_InternalOrder.OrderCategory = '01'
  or I_InternalOrder.OrderCategory = '02'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CTRLGOBJECTSETTLEMENTRULE",
"I_INTERNALORDER",
"I_INTERNALORDERSYSTEMSTATUS",
"I_INTERNALORDERSYSTEMSTATUST"
],
"ASSOCIATED":
[
"I_ALLOCATIONSTRUCTURE",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_CONTROLLINGOBJECT",
"I_CONTROLLINGSETTLEMENTPROFILE",
"I_CONTROLLINGSTRUCTURE",
"I_CTRLGOBJSETTLMTDISTRRULE",
"I_INTERNALORDERSYSTEMSTATUS",
"I_INTERNALORDERTYPE",
"I_INTERNALORDERTYPETEXT",
"I_INTORDERACTIVESYSTEMSTATUS",
"I_INTORDERACTIVEUSERSTATUS",
"I_INTORDERSETTLEMENTDISTRRULE",
"I_LDGRSPCFCALLOCSTRUC",
"I_PRFTBLTYACCTGTRANSFSTRUCTURE",
"I_SETTLMTAUTOMGNRTNSTRGYSQNC",
"I_SETTLMTWITHFREEDFNDCURRENCY",
"I_STATUSOBJECTSTATUSBASIC",
"I_USERCONTACTCARD"
],
"BASE":
[
"I_CTRLGOBJECTSETTLEMENTRULE",
"I_INTERNALORDER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/