I_BPCustDunningProcessChanges

DDL: I_BPCUSTDUNNINGPROCESSCHANGES Type: view_entity TRANSACTIONAL Package: MDC_CUST_STAGING_BO

BP Cust Dunning Area Proc Changes

I_BPCustDunningProcessChanges is a Transactional CDS View that provides data about "BP Cust Dunning Area Proc Changes" in SAP S/4HANA. It reads from 2 data sources (I_BPCustomerDunningProcess, I_BPCustomerDunningProcess) and exposes 37 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, CompanyCode. It has 3 associations to related views. Part of development package MDC_CUST_STAGING_BO.

Data Sources (2)

SourceAliasJoin Type
I_BPCustomerDunningProcess Current from
I_BPCustomerDunningProcess Current union_all

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_BPCustomerProcess _Customer $projection.MasterDataChangeProcess = _Customer.MasterDataChangeProcess and $projection.MDChgProcessStep = _Customer.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _Customer.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _Customer.MDChgProcessSrceObject
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_DunningAreaText _Text $projection.CompanyCode = _Text.CompanyCode and $projection.DunningArea = _Text.DunningArea and _Text.Language = $session.system_language

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label BP Cust Dunning Area Proc Changes view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #TRANSACTIONAL view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY MasterDataChangeProcess I_BPCustomerDunningProcess MasterDataChangeProcess
KEY MDChgProcessStep I_BPCustomerDunningProcess MDChgProcessStep
KEY MDChgProcessSrceSystem I_BPCustomerDunningProcess MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BPCustomerDunningProcess MDChgProcessSrceObject
KEY CompanyCode I_BPCustomerDunningProcess CompanyCode
KEY DunningArea I_BPCustomerDunningProcess DunningArea
KEY MDChgProcessModelTableName ModelTable MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc ModelTable MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPCustomerDunningProcess MDChgProcessSourceModified
MasterDataChangeProcess
KEY MDChgProcessStep I_BPCustomerDunningProcess MDChgProcessStep
KEY MDChgProcessSrceSystem I_BPCustomerDunningProcess MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BPCustomerDunningProcess MDChgProcessSrceObject
KEY CompanyCode I_BPCustomerDunningProcess CompanyCode
KEY DunningArea I_BPCustomerDunningProcess DunningArea
KEY MDChgProcessModelTableName ModelField MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName ModelField MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc ModelField MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc ModelField MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPCustomerDunningProcess MDChgProcessSourceModified
_Customer _Customer
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'BP Cust Dunning Area Proc Changes'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #XXL,
  dataClass: #TRANSACTIONAL
}
@VDM.viewType: #TRANSACTIONAL
@Consumption.dbHints: [ 'USE_HEX_PLAN' ]
define view entity I_BPCustDunningProcessChanges
  as select from           I_BPCustomerDunningProcess  as Current
    left outer to one join I_MDChangeProcessModelTable as ModelTable on  ModelTable.MDChgProcessModelTableName     = 'KNB5'
                                                                     and ModelTable.MDChgProcessSrceObjectTypeCode = '147'
  association [1..1] to I_BPCustomerProcess as _Customer    on  $projection.MasterDataChangeProcess = _Customer.MasterDataChangeProcess
                                                            and $projection.MDChgProcessStep        = _Customer.MDChgProcessStep
                                                            and $projection.MDChgProcessSrceSystem  = _Customer.MDChgProcessSrceSystem
                                                            and $projection.MDChgProcessSrceObject  = _Customer.MDChgProcessSrceObject
  association [0..1] to I_CompanyCode       as _CompanyCode on  $projection.CompanyCode = _CompanyCode.CompanyCode
  association [0..1] to I_DunningAreaText   as _Text        on  $projection.CompanyCode = _Text.CompanyCode
                                                            and $projection.DunningArea = _Text.DunningArea
                                                            and _Text.Language          = $session.system_language
{
  key Current.MasterDataChangeProcess,
  key Current.MDChgProcessStep,
  key Current.MDChgProcessSrceSystem,
  key Current.MDChgProcessSrceObject,
  key Current.CompanyCode,
  key Current.DunningArea,
  key ModelTable.MDChgProcessModelTableName,
  key cast ( '' as fieldname )                              as MDChangeProcessModelFieldName,
  key cast( concat(
              concat(
                concat(
                  concat( Current.MDChgProcessSrceSystem, concat( '%%', Current.MDChgProcessSrceObject )),
                concat( '%%', Current.BPAssignmentID )),
              concat( '%%', Current.CompanyCode )),
            concat( '%%', Current.DunningArea ))
        as abap.char(1000) )                                         as MDChgProcessRecordObjectID,
      ModelTable.MDChangeProcModelTableDesc,
      cast ('' as as4text  )                                as MDChangeProcessModelFieldDesc,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'BusinessPartnerCustomerDunning' as fieldname ) as MDChgProcModelNodeExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'I_BPCustomerDunningProcessTP' as fieldname )   as MDChgProcModTableExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_CUST_PROCTP_CALC_EXIT'
      cast( '' as fieldname )                               as MDChgProcModFieldExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_CUST_PROCTP_CALC_EXIT'
      cast( '' as abap.char( 260 ) )                        as MDChgProcCurrentAttributeValue,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_CUST_PROCTP_CALC_EXIT'
      cast( '' as abap.char( 260 ) )                        as MDChgProcPrevAttributeValue,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_CUST_PROCTP_CALC_EXIT'
      cast( '' as boolean )                                 as MDChgProcessAttributeIsChanged,
      Current.MDChgProcessSourceModified,
      concat_with_space(
        concat_with_space( coalesce(_CompanyCode.CompanyCodeName,''),
          concat( concat( '(', Current.CompanyCode ), '),' ), 1),
        concat_with_space(coalesce(_Text.DunningAreaName,''),
          concat( concat( '(', Current.DunningArea ), ')' ), 1), 1) as MDChgProcessRecordObjectText,
      _Customer
}
where
     Current.MDChgProcessSourceModified = 'I'
  or Current.MDChgProcessSourceModified = 'D'

union all select from     I_BPCustomerDunningProcess  as Current
  left outer to many join I_MDChangeProcessModelField as ModelField on  ModelField.MDChgProcessModelTableName     = 'KNB5'
                                                                    and ModelField.MDChgProcessSrceObjectTypeCode = '147'
association [1..1] to I_BPCustomerProcess as _Customer    on  $projection.MasterDataChangeProcess = _Customer.MasterDataChangeProcess
                                                          and $projection.MDChgProcessStep        = _Customer.MDChgProcessStep
                                                          and $projection.MDChgProcessSrceSystem  = _Customer.MDChgProcessSrceSystem
                                                          and $projection.MDChgProcessSrceObject  = _Customer.MDChgProcessSrceObject
association [0..1] to I_CompanyCode       as _CompanyCode on  $projection.CompanyCode = _CompanyCode.CompanyCode
association [0..1] to I_DunningAreaText   as _Text        on  $projection.CompanyCode = _Text.CompanyCode
                                                          and $projection.DunningArea = _Text.DunningArea
                                                          and _Text.Language          = $session.system_language

{
  key Current.MasterDataChangeProcess,
  key Current.MDChgProcessStep,
  key Current.MDChgProcessSrceSystem,
  key Current.MDChgProcessSrceObject,
  key Current.CompanyCode,
  key Current.DunningArea,
  key ModelField.MDChgProcessModelTableName,
  key ModelField.MDChangeProcessModelFieldName,
  key cast( concat(
              concat(
                concat(
                  concat( Current.MDChgProcessSrceSystem, concat( '%%', Current.MDChgProcessSrceObject )),
                concat( '%%', Current.BPAssignmentID )),
              concat( '%%', Current.CompanyCode )),
            concat( '%%', Current.DunningArea ))
        as abap.char(1000) )                                         as MDChgProcessRecordObjectID,
      ModelField.MDChangeProcModelTableDesc,
      ModelField.MDChangeProcessModelFieldDesc,
      cast( 'BusinessPartnerCustomerDunning' as fieldname ) as MDChgProcModelNodeExternalName,
      cast( 'I_BPCustomerDunningProcessTP' as fieldname )   as MDChgProcModTableExternalName,
      cast( '' as fieldname )                               as MDChgProcModFieldExternalName,
      cast( '' as abap.char( 260 ) )                        as MDChgProcCurrentAttributeValue,
      cast( '' as abap.char( 260 ) )                        as MDChgProcPrevAttributeValue,
      cast( '' as boolean )                                 as MDChgProcessAttributeIsChanged,
      Current.MDChgProcessSourceModified,
      concat_with_space(
        concat_with_space( coalesce(_CompanyCode.CompanyCodeName,''),
          concat( concat( '(', Current.CompanyCode ), '),' ), 1),
        concat_with_space(coalesce(_Text.DunningAreaName,''),
          concat( concat( '(', Current.DunningArea ), ')' ), 1), 1) as MDChgProcessRecordObjectText,
      _Customer

}
where
  Current.MDChgProcessSourceModified = 'X'