I_BPCustCoTextGeneralProcChgs

DDL: I_BPCUSTCOTEXTGENERALPROCCHGS Type: view_entity TRANSACTIONAL Package: MDC_CUST_STAGING_BO

Customer Company Descr General Changes

I_BPCustCoTextGeneralProcChgs is a Transactional CDS View that provides data about "Customer Company Descr General Changes" in SAP S/4HANA. It reads from 2 data sources (I_BPCustCoTextGeneralProcess, I_BPCustCoTextGeneralProcess) and exposes 49 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, ApplicationTextObjectType. It has 2 associations to related views. Part of development package MDC_CUST_STAGING_BO.

Data Sources (2)

SourceAliasJoin Type
I_BPCustCoTextGeneralProcess _Current from
I_BPCustCoTextGeneralProcess _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
[1..1] I_BPCustomerCompanyProcess _CustomerCompanyCode $projection.MasterDataChangeProcess = _CustomerCompanyCode.MasterDataChangeProcess and $projection.MDChgProcessStep = _CustomerCompanyCode.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _CustomerCompanyCode.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _CustomerCompanyCode.MDChgProcessSrceObject and $projection.BPAssignmentID = _CustomerCompanyCode.BPAssignmentID and $projection.CompanyCode = _CustomerCompanyCode.CompanyCode

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Customer Company Descr General Changes view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #TRANSACTIONAL view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY MasterDataChangeProcess I_BPCustCoTextGeneralProcess MasterDataChangeProcess
KEY MDChgProcessStep I_BPCustCoTextGeneralProcess MDChgProcessStep
KEY MDChgProcessSrceSystem I_BPCustCoTextGeneralProcess MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BPCustCoTextGeneralProcess MDChgProcessSrceObject
KEY ApplicationTextObjectType I_BPCustCoTextGeneralProcess ApplicationTextObjectType
KEY TextObjectKey I_BPCustCoTextGeneralProcess TextObjectKey
KEY LongTextID I_BPCustCoTextGeneralProcess LongTextID
KEY Language I_BPCustCoTextGeneralProcess Language
KEY BPAssignmentID I_BPCustCoTextGeneralProcess BPAssignmentID
KEY CompanyCode I_BPCustCoTextGeneralProcess CompanyCode
KEY MDChgProcessModelTableName _ModelTable MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc _ModelTable MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPCustCoTextGeneralProcess MDChgProcessSourceModified
LanguageasMDChgProcessRecordObjectText
_Customer _Customer
MasterDataChangeProcess
KEY MDChgProcessStep I_BPCustCoTextGeneralProcess MDChgProcessStep
KEY MDChgProcessSrceSystem I_BPCustCoTextGeneralProcess MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BPCustCoTextGeneralProcess MDChgProcessSrceObject
KEY ApplicationTextObjectType I_BPCustCoTextGeneralProcess ApplicationTextObjectType
KEY TextObjectKey I_BPCustCoTextGeneralProcess TextObjectKey
KEY LongTextID I_BPCustCoTextGeneralProcess LongTextID
KEY Language I_BPCustCoTextGeneralProcess Language
KEY BPAssignmentID I_BPCustCoTextGeneralProcess BPAssignmentID
KEY CompanyCode I_BPCustCoTextGeneralProcess 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_BPCustCoTextGeneralProcess MDChgProcessSourceModified
LanguageasMDChgProcessRecordObjectText
_Customer _Customer
_CustomerCompanyCode _CustomerCompanyCode
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Customer Company Descr General Changes'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #TRANSACTIONAL
}
@VDM.viewType: #TRANSACTIONAL
@Consumption.dbHints: [ 'USE_HEX_PLAN' ]
define view entity I_BPCustCoTextGeneralProcChgs
  as select from           I_BPCustCoTextGeneralProcess as _Current
    left outer to one join I_MDChangeProcessModelTable  as _ModelTable on  _ModelTable.MDChgProcessModelTableName     = 'KNB1_STXH'
                                                                       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 [1..1] to I_BPCustomerCompanyProcess as _CustomerCompanyCode on  $projection.MasterDataChangeProcess = _CustomerCompanyCode.MasterDataChangeProcess
                                                                           and $projection.MDChgProcessStep        = _CustomerCompanyCode.MDChgProcessStep
                                                                           and $projection.MDChgProcessSrceSystem  = _CustomerCompanyCode.MDChgProcessSrceSystem
                                                                           and $projection.MDChgProcessSrceObject  = _CustomerCompanyCode.MDChgProcessSrceObject
                                                                           and $projection.BPAssignmentID          = _CustomerCompanyCode.BPAssignmentID
                                                                           and $projection.CompanyCode             = _CustomerCompanyCode.CompanyCode

{
  key _Current.MasterDataChangeProcess,
  key _Current.MDChgProcessStep,
  key _Current.MDChgProcessSrceSystem,
  key _Current.MDChgProcessSrceObject,
  key _Current.ApplicationTextObjectType,
  key _Current.TextObjectKey,
  key _Current.LongTextID,
  key _Current.Language,
  key _Current.BPAssignmentID,
  key _Current.CompanyCode,
  key _ModelTable.MDChgProcessModelTableName,
  key cast ( '' as fieldname )                                  as MDChangeProcessModelFieldName,

  key cast( concat( concat( concat( concat( concat(
            concat( _Current.MDChgProcessSrceSystem,
            concat( '%%', _Current.MDChgProcessSrceObject )),
            concat( '%%', _Current.BPAssignmentID )),
            concat( '%%', _Current.ApplicationTextObjectType )),
            concat( '%%', _Current.TextObjectKey )),
            concat( '%%', _Current.LongTextID )),
            concat( '%%', _Current.Language ))
        as abap.char(1000) )                                    as MDChgProcessRecordObjectID,
      _ModelTable.MDChangeProcModelTableDesc,
      cast ('' as as4text  )                                    as MDChangeProcessModelFieldDesc,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'BusPartCustCompanyTextGeneral' as fieldname ) as MDChgProcModelNodeExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'I_BPCustCoTextGeneralProcessTP' as fieldname )     as MDChgProcModTableExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_SUPLR_PROCTP_CALC_EXIT'
      cast( '' as fieldname )                                   as MDChgProcModFieldExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_SUPLR_PROCTP_CALC_EXIT'
      cast( '' as abap.char( 260 ) )                            as MDChgProcCurrentAttributeValue,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_SUPLR_PROCTP_CALC_EXIT'
      cast( '' as abap.char( 260 ) )                            as MDChgProcPrevAttributeValue,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_SUPLR_PROCTP_CALC_EXIT'
      cast( '' as boolean )                                     as MDChgProcessAttributeIsChanged,
      _Current.MDChgProcessSourceModified,
      concat( concat(
      concat( ' ', _Current.TextObjectKey ),
      concat( ' ', _Current.LongTextID )),
      concat( ' ', _Current.Language ))                         as MDChgProcessRecordObjectText,
      _Customer,
      _CustomerCompanyCode
}
where
     _Current.MDChgProcessSourceModified = 'I'
  or _Current.MDChgProcessSourceModified = 'D'

union all select from     I_BPCustCoTextGeneralProcess as _Current
  left outer to many join I_MDChangeProcessModelField  as _ModelField on  _ModelField.MDChgProcessModelTableName     = 'KNB1_STXH'
                                                                      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 [1..1] to I_BPCustomerCompanyProcess as _CustomerCompanyCode on  $projection.MasterDataChangeProcess = _CustomerCompanyCode.MasterDataChangeProcess
                                                                         and $projection.MDChgProcessStep        = _CustomerCompanyCode.MDChgProcessStep
                                                                         and $projection.MDChgProcessSrceSystem  = _CustomerCompanyCode.MDChgProcessSrceSystem
                                                                         and $projection.MDChgProcessSrceObject  = _CustomerCompanyCode.MDChgProcessSrceObject
                                                                         and $projection.BPAssignmentID          = _CustomerCompanyCode.BPAssignmentID
                                                                         and $projection.CompanyCode             = _CustomerCompanyCode.CompanyCode

{
  key _Current.MasterDataChangeProcess,
  key _Current.MDChgProcessStep,
  key _Current.MDChgProcessSrceSystem,
  key _Current.MDChgProcessSrceObject,
  key _Current.ApplicationTextObjectType,
  key _Current.TextObjectKey,
  key _Current.LongTextID,
  key _Current.Language,
  key _Current.BPAssignmentID,
  key _Current.CompanyCode,
  key _ModelField.MDChgProcessModelTableName,
  key _ModelField.MDChangeProcessModelFieldName,
  key cast( concat( concat( concat( concat( concat(
            concat( _Current.MDChgProcessSrceSystem,
            concat( '%%', _Current.MDChgProcessSrceObject )),
            concat( '%%', _Current.BPAssignmentID )),
            concat( '%%', _Current.ApplicationTextObjectType )),
            concat( '%%', _Current.TextObjectKey )),
            concat( '%%', _Current.LongTextID )),
            concat( '%%', _Current.Language ))
        as abap.char(1000) )                                    as MDChgProcessRecordObjectID,
      _ModelField.MDChangeProcModelTableDesc,
      _ModelField.MDChangeProcessModelFieldDesc,
      cast( 'BusPartCustCompanyTextGeneral' as fieldname ) as MDChgProcModelNodeExternalName,
      cast( 'I_BPCustCoTextGeneralProcessTP' 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( concat(
      concat( ' ', _Current.TextObjectKey ),
      concat( ' ', _Current.LongTextID )),
      concat( ' ', _Current.Language ))                         as MDChgProcessRecordObjectText,
      _Customer,
      _CustomerCompanyCode
}
where
  _Current.MDChgProcessSourceModified = 'X'