I_BPIndustryProcessChanges

DDL: I_BPINDUSTRYPROCESSCHANGES SQL: IBPINDPROCCHG Type: view TRANSACTIONAL

BP Industry Process Changes

I_BPIndustryProcessChanges is a Transactional CDS View that provides data about "BP Industry Process Changes" in SAP S/4HANA. It reads from 2 data sources (I_BusPartIndustryProc, I_BusPartIndustryProc) and exposes 37 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, IndustrySystemType. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BusPartIndustryProc _Current from
I_BusPartIndustryProc _Current union_all

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartnerProcess _BusinessPartner $projection.MasterDataChangeProcess = _BusinessPartner.MasterDataChangeProcess and $projection.MDChgProcessStep = _BusinessPartner.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _BusinessPartner.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _BusinessPartner.MDChgProcessSrceObject
[0..1] I_BusPartIndustryKeyText _IndustryText $projection.IndustrySystemType = _IndustryText.IndustrySystemType and $projection.IndustrySector = _IndustryText.IndustrySector and _IndustryText.Language = $session.system_language
[0..1] I_BusPartIndustrySystemText _IndustrySystemText $projection.IndustrySystemType = _IndustrySystemText.IndustrySystemType and _IndustrySystemText.Language = $session.system_language

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IBPINDPROCCHG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label BP Industry Process Changes view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY MasterDataChangeProcess I_BusPartIndustryProc MasterDataChangeProcess
KEY MDChgProcessStep I_BusPartIndustryProc MDChgProcessStep
KEY MDChgProcessSrceSystem I_BusPartIndustryProc MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BusPartIndustryProc MDChgProcessSrceObject
KEY IndustrySystemType I_BusPartIndustryProc IndustrySystemType
KEY IndustrySector I_BusPartIndustryProc IndustrySector
KEY MDChgProcessModelTableName _ModelTable MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc _ModelTable MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BusPartIndustryProc MDChgProcessSourceModified
MasterDataChangeProcess
KEY MDChgProcessStep I_BusPartIndustryProc MDChgProcessStep
KEY MDChgProcessSrceSystem I_BusPartIndustryProc MDChgProcessSrceSystem
KEY MDChgProcessSrceObject I_BusPartIndustryProc MDChgProcessSrceObject
KEY IndustrySystemType I_BusPartIndustryProc IndustrySystemType
KEY IndustrySector I_BusPartIndustryProc IndustrySector
KEY MDChgProcessModelTableName _ModelField MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName _ModelField MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc _ModelField MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc _ModelField MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BusPartIndustryProc MDChgProcessSourceModified
_BusinessPartner _BusinessPartner
@AbapCatalog.sqlViewName: 'IBPINDPROCCHG'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'BP Industry Process Changes'
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.sizeCategory: #XXL
@VDM.viewType: #TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
define view I_BPIndustryProcessChanges
  as select from           I_BusPartIndustryProc       as _Current
    left outer to one join I_MDChangeProcessModelTable as _ModelTable on  _ModelTable.MDChgProcessModelTableName     = 'BUT0IS'
                                                                      and _ModelTable.MDChgProcessSrceObjectTypeCode = '147'
  association [1..1] to I_BusinessPartnerProcess    as _BusinessPartner    on  $projection.MasterDataChangeProcess = _BusinessPartner.MasterDataChangeProcess
                                                                           and $projection.MDChgProcessStep        = _BusinessPartner.MDChgProcessStep
                                                                           and $projection.MDChgProcessSrceSystem  = _BusinessPartner.MDChgProcessSrceSystem
                                                                           and $projection.MDChgProcessSrceObject  = _BusinessPartner.MDChgProcessSrceObject
  association [0..1] to I_BusPartIndustryKeyText    as _IndustryText       on  $projection.IndustrySystemType = _IndustryText.IndustrySystemType
                                                                           and $projection.IndustrySector     = _IndustryText.IndustrySector
                                                                           and _IndustryText.Language         = $session.system_language
  association [0..1] to I_BusPartIndustrySystemText as _IndustrySystemText on  $projection.IndustrySystemType = _IndustrySystemText.IndustrySystemType
                                                                           and _IndustrySystemText.Language   = $session.system_language
{
  key _Current.MasterDataChangeProcess,
  key _Current.MDChgProcessStep,
  key _Current.MDChgProcessSrceSystem,
  key _Current.MDChgProcessSrceObject,
  key _Current.IndustrySystemType,
  key _Current.IndustrySector,
  key _ModelTable.MDChgProcessModelTableName,
  key cast ( '' as fieldname )                                           as MDChangeProcessModelFieldName,
  key cast( concat(
              concat(
                concat(_Current.MDChgProcessSrceSystem, concat( '%%', _Current.MDChgProcessSrceObject) ),
              concat( '%%', _Current. IndustrySystemType )),
            concat( '%%', _Current.IndustrySector)) as abap.char(1000) ) as MDChgProcessRecordObjectID,
      _ModelTable.MDChangeProcModelTableDesc,
      cast ('' as as4text )                                              as MDChangeProcessModelFieldDesc,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'BusinessPartnerIndustry' as fieldname )                     as MDChgProcModelNodeExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'I_BusPartIndustryProcTP' as fieldname )                     as MDChgProcModTableExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_BUPAPROCTP2_CALC_EXIT'
      cast( '' as fieldname )                                            as MDChgProcModFieldExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_BUPAPROCTP2_CALC_EXIT'
      cast( '' as abap.char( 260 ) )                                     as MDChgProcCurrentAttributeValue,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_BUPAPROCTP2_CALC_EXIT'
      cast( '' as abap.char( 260 ) )                                     as MDChgProcPrevAttributeValue,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_BUPAPROCTP2_CALC_EXIT'
      cast( '' as boolean )                                              as MDChgProcessAttributeIsChanged,
      _Current.MDChgProcessSourceModified,
      concat_with_space(
        concat_with_space(coalesce(_IndustrySystemText.IndustrySystemName,''), concat('(', concat(_Current.IndustrySystemType, '),')),1),
        concat_with_space(coalesce(_IndustryText.IndustryKeyDescription,''), concat('(', concat(_Current.IndustrySector, ')')),1),
      1)                                                                 as MDChgProcessRecordObjectText,
      _BusinessPartner

}
where
     _Current.MDChgProcessSourceModified = 'I'
  or _Current.MDChgProcessSourceModified = 'D'
union all select from     I_BusPartIndustryProc       as _Current
  left outer to many join I_MDChangeProcessModelField as _ModelField on  _ModelField.MDChgProcessModelTableName     = 'BUT0IS'
                                                                     and _ModelField.MDChgProcessSrceObjectTypeCode = '147'
association [1..1] to I_BusinessPartnerProcess    as _BusinessPartner    on  $projection.MasterDataChangeProcess = _BusinessPartner.MasterDataChangeProcess
                                                                         and $projection.MDChgProcessStep        = _BusinessPartner.MDChgProcessStep
                                                                         and $projection.MDChgProcessSrceSystem  = _BusinessPartner.MDChgProcessSrceSystem
                                                                         and $projection.MDChgProcessSrceObject  = _BusinessPartner.MDChgProcessSrceObject

association [0..1] to I_BusPartIndustryKeyText    as _IndustryText       on  $projection.IndustrySystemType = _IndustryText.IndustrySystemType
                                                                         and $projection.IndustrySector     = _IndustryText.IndustrySector
                                                                         and _IndustryText.Language         = $session.system_language
association [0..1] to I_BusPartIndustrySystemText as _IndustrySystemText on  $projection.IndustrySystemType = _IndustrySystemText.IndustrySystemType
                                                                         and _IndustrySystemText.Language   = $session.system_language
{
      //I_BusinessPartnerProcess

  key _Current.MasterDataChangeProcess,
  key _Current.MDChgProcessStep,
  key _Current.MDChgProcessSrceSystem,
  key _Current.MDChgProcessSrceObject,
  key _Current.IndustrySystemType,
  key _Current.IndustrySector,
  key _ModelField.MDChgProcessModelTableName,
  key _ModelField.MDChangeProcessModelFieldName,
  key cast( concat(
              concat(
                concat(_Current.MDChgProcessSrceSystem, concat( '%%', _Current.MDChgProcessSrceObject) ),
              concat( '%%', _Current. IndustrySystemType )),
            concat( '%%', _Current.IndustrySector)) as abap.char(1000) ) as MDChgProcessRecordObjectID,
      _ModelField.MDChangeProcModelTableDesc,
      _ModelField.MDChangeProcessModelFieldDesc,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'BusinessPartnerIndustry' as fieldname )                     as MDChgProcModelNodeExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      cast( 'I_BusPartIndustryProcTP' as fieldname )                     as MDChgProcModTableExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_BUPAPROCTP2_CALC_EXIT'
      cast( '' as fieldname )                                            as MDChgProcModFieldExternalName,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_BUPAPROCTP2_CALC_EXIT'
      cast( '' as abap.char( 260 ) )                                     as MDChgProcCurrentAttributeValue,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_BUPAPROCTP2_CALC_EXIT'
      cast( '' as abap.char( 260 ) )                                     as MDChgProcPrevAttributeValue,
      @ObjectModel.readOnly: true
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_BP_BUPAPROCTP2_CALC_EXIT'
      cast( '' as boolean )                                              as MDChgProcessAttributeIsChanged,
      _Current.MDChgProcessSourceModified,
      concat_with_space(
        concat_with_space(coalesce(_IndustrySystemText.IndustrySystemName,''), concat('(', concat(_Current.IndustrySystemType, '),')),1),
        concat_with_space(coalesce(_IndustryText.IndustryKeyDescription,''), concat('(', concat(_Current.IndustrySector, ')')),1),
      1)                                                                 as MDChgProcessRecordObjectText,
      _BusinessPartner
}
where
  _Current.MDChgProcessSourceModified = 'X'