I_BusPartAddressUsageGovTP

DDL: I_BUSPARTADDRESSUSAGEGOVTP SQL: IBPADDRUSGGOVTP Type: view_entity TRANSACTIONAL

BP address Usage Governance

I_BusPartAddressUsageGovTP is a Transactional CDS View that provides data about "BP address Usage Governance" in SAP S/4HANA. It reads from 1 data source (I_BusPartAddressUsageGov) and exposes 19 fields with key fields BusinessPartnerUUID, BusinessPartnerAddressUUID, BPAddressUsageUUID, MasterDataChangeProcess, MDChgProcessSrceSystem. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BusPartAddressUsageGov I_BusPartAddressUsageGov from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartnerGovTP _BusinessPartnerGov $projection.MasterDataChangeProcess = _BusinessPartnerGov.MasterDataChangeProcess and $projection.MDChgProcessSrceSystem = _BusinessPartnerGov.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _BusinessPartnerGov.MDChgProcessSrceObject and $projection.BusinessPartnerUUID = _BusinessPartnerGov.BusinessPartnerUUID
[0..1] I_BusinessPartnerAddressType _AddressType $projection.AddressUsage = _AddressType.AddressType

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label BP address Usage Governance view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Search.searchable true view
VDM.viewType #TRANSACTIONAL view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartnerUUID
KEY BusinessPartnerAddressUUID
KEY BPAddressUsageUUID
KEY MasterDataChangeProcess MasterDataChangeProcess Process ID
KEY MDChgProcessSrceSystem MDChgProcessSrceSystem Source System
KEY MDChgProcessSrceObject MDChgProcessSrceObject Source ID
KEY ValidityEndDate ValidTo
KEY AddressUsage AddressUsage Address Type
KEY AddressNumber AddressNumber Src Address No
AddressUsageForEdit AddressUsage Address Type
MDChgProcessStep MDChgProcessStep Step Number
BusinessPartner BusinessPartner Issuing Authority
ValidityStartDate ValidityStartDate Validity Start Date
datsendasAddressUsageValidityStartDate
datsendasAddressUsageValidityEndDate
_BusinessPartner _BusinessPartner
_BusinessPartnerAddress _BusinessPartnerAddress
_BusinessPartnerGov _BusinessPartnerGov
_AddressType _AddressType

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_BusPartAddressUsageGovTP.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IBPADDRUSGGOVTP

CREATE VIEW I_BusPartAddressUsageGovTP AS
SELECT
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS BusinessPartnerUUID,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS BusinessPartnerAddressUUID,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS BPAddressUsageUUID,
  MasterDataChangeProcess,
  MDChgProcessSrceSystem,
  MDChgProcessSrceObject,
  cast( ValidityEndDate as abap.char( 17 )) AS ValidityEndDate,
  AddressUsage,
  AddressNumber,
  AddressUsage AS AddressUsageForEdit,
  MDChgProcessStep,
  BusinessPartner,
  ValidityStartDate,
  case when ValidityStartDate != 00010101000000 then tstmp_to_dats(ValidityStartDate,'UTC', $session.client, 'NULL') else cast ( '00010103' as abap.dats ) end as AddressUsageValidityStartDate AS datsendasAddressUsageValidityStartDate,
  case when ValidityEndDate != 00010101000000 then tstmp_to_dats(ValidityEndDate,'UTC', $session.client, 'NULL') else cast ( '99991231' as abap.dats) end as AddressUsageValidityEndDate AS datsendasAddressUsageValidityEndDate
FROM I_BusPartAddressUsageGov
LEFT OUTER JOIN I_BusinessPartnerGovTP AS _BusinessPartnerGov ON MasterDataChangeProcess = _BusinessPartnerGov.MasterDataChangeProcess AND MDChgProcessSrceSystem = _BusinessPartnerGov.MDChgProcessSrceSystem AND MDChgProcessSrceObject = _BusinessPartnerGov.MDChgProcessSrceObject AND BusinessPartnerUUID = _BusinessPartnerGov.BusinessPartnerUUID  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartnerAddressType AS _AddressType ON AddressUsage = _AddressType.AddressType  -- association [0..1]
;