I_BusPartIdentificationGov

DDL: I_BUSPARTIDENTIFICATIONGOV SQL: IBPIDNUMGOV Type: view COMPOSITE Package: MDC_BUPA_GOV_BO

BP Identification Governance

I_BusPartIdentificationGov is a Composite CDS View that provides data about "BP Identification Governance" in SAP S/4HANA. It reads from 2 data sources (I_BPIdentificationProcess, I_BuPaIdentification) and exposes 27 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, BPIdentificationType. It has 2 associations to related views. Part of development package MDC_BUPA_GOV_BO.

Data Sources (2)

SourceAliasJoin Type
I_BPIdentificationProcess I_BPIdentificationProcess from
I_BuPaIdentification I_BuPaIdentification union_all

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 IBPIDNUMGOV 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 Identification Governance view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY MasterDataChangeProcess MasterDataChangeProcess
KEY MDChgProcessStep MDChgProcessStep
KEY MDChgProcessSrceSystem MDChgProcessSrceSystem
KEY MDChgProcessSrceObject MDChgProcessSrceObject
KEY BPIdentificationType BPIdentificationType
KEY BPIdentificationNumber BPIdentificationNumber
BusinessPartner BusinessPartner
BPIdnNmbrIssuingInstitute BPIdnNmbrIssuingInstitute
BPIdentificationEntryDate BPIdentificationEntryDate
ValidityStartDate ValidityStartDate
ValidityEndDate ValidityEndDate
Country Country
Region Region
KEY MDChgProcessStep
KEY MDChgProcessSrceSystem
KEY MDChgProcessSrceObject BusinessPartner
KEY BPIdentificationType BPIdentificationType
KEY BPIdentificationNumber BPIdentificationNumber
BusinessPartner BusinessPartner
BPIdnNmbrIssuingInstitute BPIdnNmbrIssuingInstitute
BPIdentificationEntryDate BPIdentificationEntryDate
ValidityStartDate ValidityStartDate
ValidityEndDate ValidityEndDate
Country Country
Region Region
MasterDataIsCurrent
_BusinessPartnerGov _BusinessPartnerGov
@AbapCatalog.sqlViewName: 'IBPIDNUMGOV'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'BP Identification Governance'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@VDM.viewType: #COMPOSITE
@Consumption.dbHints: [ 'USE_HEX_PLAN' ]
define view I_BusPartIdentificationGov
  as select from I_BPIdentificationProcess
  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
/*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] }*/
  association [0..1] to I_MasterDataChangeProcess as _MasterDataChangeProcess on  $projection.MasterDataChangeProcess = _MasterDataChangeProcess.MasterDataChangeProcess

{
  key MasterDataChangeProcess,
  key MDChgProcessStep,
  key MDChgProcessSrceSystem,
  key MDChgProcessSrceObject,
  key BPIdentificationType,
  key BPIdentificationNumber,
      BusinessPartner,
      BPIdnNmbrIssuingInstitute,
      BPIdentificationEntryDate,
      ValidityStartDate,
      ValidityEndDate,
      Country,
      Region,

      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_BuPaIdentification
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 BPIdentificationType,
  key BPIdentificationNumber,
      BusinessPartner,
      BPIdnNmbrIssuingInstitute,
      BPIdentificationEntryDate,
      ValidityStartDate,
      ValidityEndDate,
      Country,
      Region,

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

      _BusinessPartnerGov
}