I_BusPartIndustryGov

DDL: I_BUSPARTINDUSTRYGOV SQL: IBPINDUSTRYGOV Type: view COMPOSITE

BP Industry Governance

I_BusPartIndustryGov is a Composite CDS View that provides data about "BP Industry Governance" in SAP S/4HANA. It reads from 2 data sources (I_BusinessPartnerIndustry, I_BusPartIndustryProc) and exposes 17 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, IndustrySystemType. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BusinessPartnerIndustry I_BusinessPartnerIndustry union_all
I_BusPartIndustryProc I_BusPartIndustryProc from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartnerGov _BusinessPartnerGov $projection.MasterDataChangeProcess = _BusinessPartnerGov.MasterDataChangeProcess and $projection.MDChgProcessStep = _BusinessPartnerGov.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _BusinessPartnerGov.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _BusinessPartnerGov.MDChgProcessSrceObject
[0..1] I_MasterDataChangeProcess _MasterDataChangeProcess $projection.MasterDataChangeProcess = _MasterDataChangeProcess.MasterDataChangeProcess

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IBPINDUSTRYGOV view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label BP Industry Governance view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY MasterDataChangeProcess MasterDataChangeProcess
KEY MDChgProcessStep MDChgProcessStep
KEY MDChgProcessSrceSystem MDChgProcessSrceSystem
KEY MDChgProcessSrceObject MDChgProcessSrceObject
KEY IndustrySystemType IndustrySystemType
KEY IndustrySector IndustrySector
BusinessPartner BusinessPartner
IsStandardIndustry IsStandardIndustry
KEY MDChgProcessStep
KEY MDChgProcessSrceSystem
KEY MDChgProcessSrceObject BusinessPartner
KEY IndustrySystemType IndustrySystemType
KEY IndustrySector IndustrySector
BusinessPartner BusinessPartner
IsStandardIndustry IsStandardIndustry
MasterDataIsCurrent
_BusinessPartnerGov _BusinessPartnerGov
@AbapCatalog.sqlViewName: 'IBPINDUSTRYGOV'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'BP Industry Governance'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@VDM.viewType: #COMPOSITE
define view I_BusPartIndustryGov
  as select from I_BusPartIndustryProc
  association [1..1] to I_BusinessPartnerGov      as _BusinessPartnerGov      on  $projection.MasterDataChangeProcess = _BusinessPartnerGov.MasterDataChangeProcess
                                                                              and $projection.MDChgProcessStep        = _BusinessPartnerGov.MDChgProcessStep
                                                                              and $projection.MDChgProcessSrceSystem  = _BusinessPartnerGov.MDChgProcessSrceSystem
                                                                              and $projection.MDChgProcessSrceObject  = _BusinessPartnerGov.MDChgProcessSrceObject
  association [0..1] to I_MasterDataChangeProcess as _MasterDataChangeProcess on  $projection.MasterDataChangeProcess = _MasterDataChangeProcess.MasterDataChangeProcess

{
  key MasterDataChangeProcess,
  key MDChgProcessStep,
  key MDChgProcessSrceSystem,
  key MDChgProcessSrceObject,
  key IndustrySystemType,
  key IndustrySector,
      BusinessPartner,
      IsStandardIndustry,

      cast(
        case when MDChgProcessStep = _MasterDataChangeProcess.MDChgProcessCurrentStepNumber and _MasterDataChangeProcess.MDChgProcessCurrentStepNumber <> '0000' or
                  MDChgProcessStep = '0001' and  _MasterDataChangeProcess.MDChgProcessCurrentStepNumber = '0000' then 'X'
             else ' '
        end as abap_boolean preserving type
      ) as MasterDataIsCurrent,

      _BusinessPartnerGov
}
where
  MDChgProcessSourceModified <> 'D'

union all
select from I_BusinessPartnerIndustry
association [1..1] to I_BusinessPartnerGov as _BusinessPartnerGov on  $projection.MasterDataChangeProcess = _BusinessPartnerGov.MasterDataChangeProcess
                                                                  and $projection.MDChgProcessStep        = _BusinessPartnerGov.MDChgProcessStep
                                                                  and $projection.MDChgProcessSrceSystem  = _BusinessPartnerGov.MDChgProcessSrceSystem
                                                                  and $projection.MDChgProcessSrceObject  = _BusinessPartnerGov.MDChgProcessSrceObject
{
  key '000000000000'                              as MasterDataChangeProcess,
  key '0000'                                      as MDChgProcessStep,
  key ''                                          as MDChgProcessSrceSystem,
  key BusinessPartner                             as MDChgProcessSrceObject,
  key IndustrySystemType,
  key IndustrySector,
      BusinessPartner,
      IsStandardIndustry,

      cast( 'X' as abap_boolean preserving type ) as MasterDataIsCurrent,

      _BusinessPartnerGov
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNERINDUSTRY",
"I_BUSPARTINDUSTRYPROC",
"I_MASTERDATACHANGEPROCESS"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNERGOV",
"I_MASTERDATACHANGEPROCESS"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/