I_BPCustCompanyProcessChanges

DDL: I_BPCUSTCOMPANYPROCESSCHANGES Type: view_entity TRANSACTIONAL

BP Cust Company Code Proc Changes

I_BPCustCompanyProcessChanges is a Transactional CDS View that provides data about "BP Cust Company Code Proc Changes" in SAP S/4HANA. It reads from 2 data sources (I_BPCustomerCompanyProcess, I_BPCustomerCompanyProcess) and exposes 37 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, CompanyCode. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BPCustomerCompanyProcess Current from
I_BPCustomerCompanyProcess Current union_all

Associations (2)

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

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label BP Cust Company Code 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_BPCustomerCompanyProcess MasterDataChangeProcess
KEY MDChgProcessStep I_BPCustomerCompanyProcess MDChgProcessStep
KEY MDChgProcessSrceSystem I_BPCustomerCompanyProcess MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BPCustomerCompanyProcess MDChgProcessSrceObject
KEY CompanyCode I_BPCustomerCompanyProcess CompanyCode
KEY MDChgProcessModelTableName ModelTable MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc ModelTable MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPCustomerCompanyProcess MDChgProcessSourceModified
char260asMDChgProcessRecordObjectText
MasterDataChangeProcess
KEY MDChgProcessStep I_BPCustomerCompanyProcess MDChgProcessStep
KEY MDChgProcessSrceSystem I_BPCustomerCompanyProcess MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BPCustomerCompanyProcess MDChgProcessSrceObject
KEY CompanyCode I_BPCustomerCompanyProcess CompanyCode
KEY MDChgProcessModelTableName ModelField MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName ModelField MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc ModelField MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc ModelField MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPCustomerCompanyProcess MDChgProcessSourceModified
char260asMDChgProcessRecordObjectText
_Customer _Customer
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'BP Cust Company Code Proc Changes'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #XXL,
  dataClass: #TRANSACTIONAL
}
@VDM.viewType: #TRANSACTIONAL
define view entity I_BPCustCompanyProcessChanges
  as select from           I_BPCustomerCompanyProcess  as Current
    left outer to one join I_MDChangeProcessModelTable as ModelTable on  ModelTable.MDChgProcessModelTableName     = 'KNB1'
                                                                     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

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

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

{
  key Current.MasterDataChangeProcess,
  key Current.MDChgProcessStep,
  key Current.MDChgProcessSrceSystem,
  key Current.MDChgProcessSrceObject,
  key Current.CompanyCode,
  key ModelField.MDChgProcessModelTableName,
  key ModelField.MDChangeProcessModelFieldName,
  key cast( concat(
              concat(
                concat( Current.MDChgProcessSrceSystem, concat( '%%', Current.MDChgProcessSrceObject )),
              concat( '%%', Current.BPAssignmentID )),
            concat( '%%', Current.CompanyCode ))
        as abap.char(1000) )                                as MDChgProcessRecordObjectID,
      ModelField.MDChangeProcModelTableDesc,
      ModelField.MDChangeProcessModelFieldDesc,
      cast( 'BusinessPartnerCustomerCompany' as fieldname ) as MDChgProcModelNodeExternalName,
      cast( 'I_BPCustomerCompanyProcessTP' 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( concat_with_space(coalesce(_CompanyCode.CompanyCodeName,'') ,
            concat( concat( '(', Current.CompanyCode ), ')' ) , 1 )
        as abap.char( 260 ) )                               as MDChgProcessRecordObjectText,
      _Customer

}
where
  Current.MDChgProcessSourceModified = 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BPCUSTOMERCOMPANYPROCESS",
"I_COMPANYCODE",
"I_MDCHANGEPROCESSMODELFIELD",
"I_MDCHANGEPROCESSMODELTABLE"
],
"ASSOCIATED":
[
"I_BPCUSTOMERPROCESS"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/