I_BPCustomerProcessChanges

DDL: I_BPCUSTOMERPROCESSCHANGES Type: view_entity TRANSACTIONAL Package: MDC_CUST_STAGING_BO

BP Customer Process Changes

I_BPCustomerProcessChanges is a Transactional CDS View that provides data about "BP Customer Process Changes" in SAP S/4HANA. It reads from 2 data sources (I_BPCustomerProcess, I_BPCustomerProcess) and exposes 35 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, MDChgProcessModelTableName. It has 1 association to related views. Part of development package MDC_CUST_STAGING_BO.

Data Sources (2)

SourceAliasJoin Type
I_BPCustomerProcess Current from
I_BPCustomerProcess Current union_all

Associations (1)

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

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label BP Customer Process 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 (35)

KeyFieldSource TableSource FieldDescription
KEY MasterDataChangeProcess I_BPCustomerProcess MasterDataChangeProcess
KEY MDChgProcessStep I_BPCustomerProcess MDChgProcessStep
KEY MDChgProcessSrceSystem I_BPCustomerProcess MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BPCustomerProcess MDChgProcessSrceObject
KEY MDChgProcessModelTableName ModelTable MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc ModelTable MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPCustomerProcess MDChgProcessSourceModified
MDChgProcessRecordObjectText
MasterDataChangeProcess
KEY MDChgProcessStep I_BPCustomerProcess MDChgProcessStep
KEY MDChgProcessSrceSystem I_BPCustomerProcess MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BPCustomerProcess MDChgProcessSrceObject
KEY MDChgProcessModelTableName ModelField MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName ModelField MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc ModelField MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc ModelField MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPCustomerProcess MDChgProcessSourceModified
MDChgProcessRecordObjectText
_Customer _Customer
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'BP Customer Process Changes'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #XXL,
  dataClass: #TRANSACTIONAL
}
@VDM.viewType: #TRANSACTIONAL
@Consumption.dbHints: [ 'USE_HEX_PLAN' ]
define view entity I_BPCustomerProcessChanges
  as select from           I_BPCustomerProcess         as Current
    left outer to one join I_MDChangeProcessModelTable as ModelTable on  ModelTable.MDChgProcessModelTableName     = 'KNA1'
                                                                      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

{
  key Current.MasterDataChangeProcess,
  key Current.MDChgProcessStep,
  key Current.MDChgProcessSrceSystem,
  key Current.MDChgProcessSrceObject,
  key ModelTable.MDChgProcessModelTableName,
  key cast ( '' as fieldname )                       as MDChangeProcessModelFieldName,
  key cast( concat(
              concat( Current.MDChgProcessSrceSystem, concat( '%%', Current.MDChgProcessSrceObject )),
            concat( '%%', Current.BPAssignmentID ))
      as abap.char(1000) )                           as MDChgProcessRecordObjectID,
      ModelTable.MDChangeProcModelTableDesc,
      cast ('' as as4text  )                         as MDChangeProcessModelFieldDesc,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'BusinessPartnerCustomer' as fieldname ) as MDChgProcModelNodeExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'I_BPCustomerProcessTP' 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,
      cast( '' as abap.char( 260 ) )                 as MDChgProcessRecordObjectText,
      _Customer
}
where
     Current.MDChgProcessSourceModified = 'I'
  or Current.MDChgProcessSourceModified = 'D'

union all select from     I_BPCustomerProcess         as Current
  left outer to many join I_MDChangeProcessModelField as ModelField on  ModelField.MDChgProcessModelTableName     = 'KNA1'
                                                                     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

{
  key Current.MasterDataChangeProcess,
  key Current.MDChgProcessStep,
  key Current.MDChgProcessSrceSystem,
  key Current.MDChgProcessSrceObject,
  key ModelField.MDChgProcessModelTableName,
  key ModelField.MDChangeProcessModelFieldName,
  key cast( concat(
              concat( Current.MDChgProcessSrceSystem, concat( '%%', Current.MDChgProcessSrceObject )),
            concat( '%%', Current.BPAssignmentID ))
      as abap.char(1000) )                           as MDChgProcessRecordObjectID,
      ModelField.MDChangeProcModelTableDesc,
      ModelField.MDChangeProcessModelFieldDesc,
      cast( 'BusinessPartnerCustomer' as fieldname ) as MDChgProcModelNodeExternalName,
      cast( 'I_BPCustomerProcessTP' 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,
      cast( '' as abap.char( 260 ) )                 as MDChgProcessRecordObjectText,
      _Customer

}
where
  Current.MDChgProcessSourceModified = 'X'