I_BusPartScriptedOrgAddrProcTP

DDL: I_BUSPARTSCRIPTEDORGADDRPROCTP Type: view_entity TRANSACTIONAL

Bus Part Org Addr Vers Proc - TP

I_BusPartScriptedOrgAddrProcTP is a Transactional CDS View that provides data about "Bus Part Org Addr Vers Proc - TP" in SAP S/4HANA. It reads from 1 data source (I_BusPartScriptedOrgAddrProc) and exposes 77 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, AddressNumber. It has 11 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BusPartScriptedOrgAddrProc I_BusPartScriptedOrgAddrProc from

Associations (11)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartnerProcessTP _BusinessPartner $projection.MasterDataChangeProcess = _BusinessPartner.MasterDataChangeProcess and $projection.MDChgProcessStep = _BusinessPartner.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _BusinessPartner.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _BusinessPartner.MDChgProcessSrceObject
[0..1] I_BPProcessKPIRecordType _RecordType $projection.MasterDataChangeProcess = _RecordType.MasterDataChangeProcess and $projection.MDChgProcessStep = _RecordType.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _RecordType.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _RecordType.MDChgProcessSrceObject
[0..1] I_MDChangeProcessKPIRowVH _KPIUpdateStatusText $projection.MDChgProcKPIUpdateStatus = _KPIUpdateStatusText.MDChgProcKPIUpdateStatus
[0..*] I_MDChgProcRecordMessages _RecordMessages $projection.MasterDataChangeProcess = _RecordMessages.MasterDataChangeProcess and $projection.MDChgProcessStep = _RecordMessages.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _RecordMessages.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _RecordMessages.MDChgProcessSrceObject
[0..1] I_Country _Country $projection.Country = _Country.Country
[0..1] I_Region _Region $projection.Country = _Region.Country and $projection.Region = _Region.Region
[0..1] I_AddressRepresentation _AddressRepresentation $projection.AddressRepresentationCode = _AddressRepresentation.AddressRepresentationCode
[0..1] I_BusinessPartnerFormOfAddress _FormOfAddress $projection.FormOfAddress = _FormOfAddress.FormOfAddress
[0..1] I_MDChgProcessStepTP _Step $projection.MasterDataChangeProcess = _Step.MasterDataChangeProcess and $projection.MDChgProcessStep = _Step.MDChgProcessStep
[0..1] I_BPAddrInfoManagementOut _AddrInfoMgmtOut $projection.MasterDataChangeProcess = _AddrInfoMgmtOut.MasterDataChangeProcess and $projection.MDChgProcessStep = _AddrInfoMgmtOut.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _AddrInfoMgmtOut.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _AddrInfoMgmtOut.MDChgProcessSrceObject and $projection.AddressNumber = _AddrInfoMgmtOut.AddressNumber and $projection.AddressRepresentationCode = _AddrInfoMgmtOut.AddressRepresentationCode
[0..1] I_MDChgProcKPIFltrStdznStsVH _StdStatus $projection.MDChgProcKPIStdznStatus = _StdStatus.MDChgProcKPIStdznStatus

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Bus Part Org Addr Vers Proc - TP view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (77)

KeyFieldSource TableSource FieldDescription
KEY MasterDataChangeProcess MasterDataChangeProcess
KEY MDChgProcessStep MDChgProcessStep
KEY MDChgProcessSrceSystem MDChgProcessSrceSystem
KEY MDChgProcessSrceObject MDChgProcessSrceObject
KEY AddressNumber AddressNumber
KEY AddressRepresentationCode AddressRepresentationCode
BusinessPartner BusinessPartner
StandardUsage StandardUsage
BusinessPartnerAddressUUID BusinessPartnerAddressUUID
ValidityStartDate ValidityStartDate
ValidityEndDate ValidityEndDate
FormOfAddress FormOfAddress
BusinessPartnerName1 BusinessPartnerName1
BusinessPartnerName2 BusinessPartnerName2
BusinessPartnerName3 BusinessPartnerName3
BusinessPartnerName4 BusinessPartnerName4
CareOfName CareOfName
FullName FullName
CityName CityName
DistrictName DistrictName
CityNumber CityNumber
HomeCityName HomeCityName
CityFileTestStatus CityFileTestStatus
PostalCode PostalCode
POBoxPostalCode POBoxPostalCode
CompanyPostalCode CompanyPostalCode
POBox POBox
AddressPostBoxUnusable AddressPostBoxUnusable
POBoxIsWithoutNumber POBoxIsWithoutNumber
POBoxDeviatingCityName POBoxDeviatingCityName
POBoxDeviatingRegion POBoxDeviatingRegion
POBoxDeviatingCountry POBoxDeviatingCountry
TransportZone TransportZone
StreetName StreetName
AddressStreetUnusable AddressStreetUnusable
HouseNumber HouseNumber
HouseNumberSupplementText HouseNumberSupplementText
StreetPrefixName StreetPrefixName
AdditionalStreetPrefixName AdditionalStreetPrefixName
StreetSuffixName StreetSuffixName
AdditionalStreetSuffixName AdditionalStreetSuffixName
Building Building
Floor Floor
RoomNumber RoomNumber
Country Country
CorrespondenceLanguage CorrespondenceLanguage
Region Region
SearchTerm1 SearchTerm1
SearchTerm2 SearchTerm2
PrfrdCommMediumType PrfrdCommMediumType
PhoneNumber PhoneNumber
AddressFaxNumber AddressFaxNumber
CitySearch CitySearch
StreetSearch StreetSearch
AddressTimeZone AddressTimeZone
TaxJurisdiction TaxJurisdiction
POBoxLobbyName POBoxLobbyName
DeliveryServiceTypeCode DeliveryServiceTypeCode
DeliveryServiceNumber DeliveryServiceNumber
CountyCode CountyCode
BPCountyText BPCountyText
MDChgProcessSourceModified MDChgProcessSourceModified
MDChgProcessSourceModifBinary MDChgProcessSourceModifBinary
MDChgProcSrceLastChgdDateTime MDChgProcSrceLastChgdDateTime
_BPProtectedAddress _BPProtectedAddress
_BusinessPartner _BusinessPartner
_BusPartAddressProc _BusPartAddressProc
_RecordType _RecordType
_KPIUpdateStatusText _KPIUpdateStatusText
_RecordMessages _RecordMessages
_Country _Country
_Region _Region
_AddressRepresentation _AddressRepresentation
_FormOfAddress _FormOfAddress
_Step _Step
_AddrInfoMgmtOut _AddrInfoMgmtOut
_StdStatus _StdStatus
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Bus Part Org Addr Vers Proc - TP'
@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #TRANSACTIONAL
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
/*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ]  } */
define view entity I_BusPartScriptedOrgAddrProcTP
  as select from I_BusPartScriptedOrgAddrProc
  association        to parent I_BusinessPartnerAddressProcTP as _BusPartAddressProc    on  $projection.MasterDataChangeProcess = _BusPartAddressProc.MasterDataChangeProcess
                                                                                        and $projection.MDChgProcessStep        = _BusPartAddressProc.MDChgProcessStep
                                                                                        and $projection.MDChgProcessSrceSystem  = _BusPartAddressProc.MDChgProcessSrceSystem
                                                                                        and $projection.MDChgProcessSrceObject  = _BusPartAddressProc.MDChgProcessSrceObject
                                                                                        and $projection.AddressNumber           = _BusPartAddressProc.AddressNumber
  association [1..1] to I_BusinessPartnerProcessTP            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_BPProcessKPIRecordType              as _RecordType            on  $projection.MasterDataChangeProcess = _RecordType.MasterDataChangeProcess
                                                                                        and $projection.MDChgProcessStep        = _RecordType.MDChgProcessStep
                                                                                        and $projection.MDChgProcessSrceSystem  = _RecordType.MDChgProcessSrceSystem
                                                                                        and $projection.MDChgProcessSrceObject  = _RecordType.MDChgProcessSrceObject
  association [0..1] to I_MDChangeProcessKPIRowVH             as _KPIUpdateStatusText   on  $projection.MDChgProcKPIUpdateStatus = _KPIUpdateStatusText.MDChgProcKPIUpdateStatus
  association [0..*] to I_MDChgProcRecordMessages             as _RecordMessages        on  $projection.MasterDataChangeProcess = _RecordMessages.MasterDataChangeProcess
                                                                                        and $projection.MDChgProcessStep        = _RecordMessages.MDChgProcessStep
                                                                                        and $projection.MDChgProcessSrceSystem  = _RecordMessages.MDChgProcessSrceSystem
                                                                                        and $projection.MDChgProcessSrceObject  = _RecordMessages.MDChgProcessSrceObject
  association [0..1] to I_Country                             as _Country               on  $projection.Country = _Country.Country
  association [0..1] to I_Region                              as _Region                on  $projection.Country = _Region.Country
                                                                                        and $projection.Region  = _Region.Region
  association [0..1] to I_AddressRepresentation               as _AddressRepresentation on  $projection.AddressRepresentationCode = _AddressRepresentation.AddressRepresentationCode
  association [0..1] to I_BusinessPartnerFormOfAddress        as _FormOfAddress         on  $projection.FormOfAddress = _FormOfAddress.FormOfAddress
  association [0..1] to I_MDChgProcessStepTP                  as _Step                  on  $projection.MasterDataChangeProcess = _Step.MasterDataChangeProcess
                                                                                        and $projection.MDChgProcessStep        = _Step.MDChgProcessStep
  association [0..1] to I_BPAddrInfoManagementOut             as _AddrInfoMgmtOut       on  $projection.MasterDataChangeProcess   = _AddrInfoMgmtOut.MasterDataChangeProcess
                                                                                        and $projection.MDChgProcessStep          = _AddrInfoMgmtOut.MDChgProcessStep
                                                                                        and $projection.MDChgProcessSrceSystem    = _AddrInfoMgmtOut.MDChgProcessSrceSystem
                                                                                        and $projection.MDChgProcessSrceObject    = _AddrInfoMgmtOut.MDChgProcessSrceObject
                                                                                        and $projection.AddressNumber             = _AddrInfoMgmtOut.AddressNumber
                                                                                        and $projection.AddressRepresentationCode = _AddrInfoMgmtOut.AddressRepresentationCode
  association [0..1] to I_MDChgProcKPIFltrStdznStsVH          as _StdStatus             on  $projection.MDChgProcKPIStdznStatus = _StdStatus.MDChgProcKPIStdznStatus
{
  key MasterDataChangeProcess,
  key MDChgProcessStep,
  key MDChgProcessSrceSystem,
  key MDChgProcessSrceObject,
  key AddressNumber,
  key AddressRepresentationCode,
      BusinessPartner,
      StandardUsage,
      BusinessPartnerAddressUUID,
      ValidityStartDate,
      ValidityEndDate,
      FormOfAddress,
      BusinessPartnerName1,
      BusinessPartnerName2,
      BusinessPartnerName3,
      BusinessPartnerName4,
      CareOfName,
      FullName,
      CityName,
      DistrictName,
      CityNumber,
      HomeCityName,
      CityFileTestStatus,
      PostalCode,
      POBoxPostalCode,
      CompanyPostalCode,
      POBox,
      AddressPostBoxUnusable,
      POBoxIsWithoutNumber,
      POBoxDeviatingCityName,
      POBoxDeviatingRegion,
      POBoxDeviatingCountry,
      TransportZone,
      StreetName,
      AddressStreetUnusable,
      HouseNumber,
      HouseNumberSupplementText,
      StreetPrefixName,
      AdditionalStreetPrefixName,
      StreetSuffixName,
      AdditionalStreetSuffixName,
      Building,
      Floor,
      RoomNumber,
      Country,
      CorrespondenceLanguage,
      Region,
      SearchTerm1,
      SearchTerm2,
      PrfrdCommMediumType,
      PhoneNumber,
      AddressFaxNumber,
      CitySearch,
      StreetSearch,
      AddressTimeZone,
      TaxJurisdiction,
      POBoxLobbyName,
      DeliveryServiceTypeCode,
      DeliveryServiceNumber,
      CountyCode,
      BPCountyText,
      MDChgProcessSourceModified,
      MDChgProcessSourceModifBinary,
      MDChgProcSrceLastChgdDateTime,

      cast( case
        when MDChgProcessSourceModified = '' then 'N'
        when MDChgProcessSourceModified = 'X' then 'M'
        else MDChgProcessSourceModified end as mdc_source_modified preserving type ) as MDChgProcKPIUpdateStatus,

      cast( case
        when _Step.MDChgProcessStepAdapter = 'CL_MDC_ADAPTER_BP_DQMM'
              and MDChgProcessSourceModified = 'X'
                then 'M'
        when _Step.MDChgProcessStepAdapter = 'CL_MDC_ADAPTER_BP_DQMM'
              and MDChgProcessSourceModified = ''
              and CityFileTestStatus = ''
              and not _AddrInfoMgmtOut.AddressInfoCode between '2000' and '4999'
              and not _AddrInfoMgmtOut.AddressPostOfficeBoxInfoCode between '2000' and '4999'
              and not (
                (
                  _AddrInfoMgmtOut.AddressInfoCode = '' or _AddrInfoMgmtOut.AddressInfoCode = ' ' or _AddrInfoMgmtOut.AddressInfoCode = '5020'
                ) and (
                  _AddrInfoMgmtOut.AddressPostOfficeBoxInfoCode = '' or _AddrInfoMgmtOut.AddressPostOfficeBoxInfoCode = ' ' or _AddrInfoMgmtOut.AddressPostOfficeBoxInfoCode = '5020'
                )
              )
                then 'D'
        when _Step.MDChgProcessStepAdapter = 'CL_MDC_ADAPTER_BP_DQMM'
              and MDChgProcessSourceModified = ''
              and CityFileTestStatus = ''
              and ( _AddrInfoMgmtOut.AddressInfoCode between '2000' and '4999'
                 or _AddrInfoMgmtOut.AddressPostOfficeBoxInfoCode between '2000' and '4999'
              )
                then 'B'
        when _Step.MDChgProcessStepAdapter = 'CL_MDC_ADAPTER_BP_DQMM'
              and MDChgProcessSourceModified = ''
              and CityFileTestStatus = 'D'
                then 'O'
        when _Step.MDChgProcessStepAdapter = 'CL_MDC_ADAPTER_BP_DQMM'
              and MDChgProcessSourceModified = ''
              and CityFileTestStatus = 'C'
                then 'A'
        else '' end as mdc_kpi_filter_val
      )                                                                              as MDChgProcKPIStdznStatus,

      /* Associations */
      _BPProtectedAddress,
      _BusinessPartner,
      _BusPartAddressProc,
      _RecordType,
      _KPIUpdateStatusText,
      _RecordMessages,
      _Country,
      _Region,
      _AddressRepresentation,
      _FormOfAddress,
      _Step,
      _AddrInfoMgmtOut,
      _StdStatus
}