P_PH_CASForeignBPTIN

DDL: P_PH_CASFOREIGNBPTIN Type: view_entity COMPOSITE

P_PH_CASForeignBPTIN is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_BuPaIdentificationType, I_BuPaIdentification, I_BusinessPartner) and exposes 13 fields with key fields BusinessPartner, BPIdentificationType, BPIdentificationNumber. It has 2 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_BuPaIdentificationType _BuPaIdentificationType inner
I_BuPaIdentification I_BuPaIdentification from
I_BusinessPartner I_BusinessPartner inner

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_CustomerToBusinessPartner _Customer I_BusinessPartner.BusinessPartnerUUID = _Customer.BusinessPartnerUUID
[1..1] I_SupplierToBusinessPartner _Supplier I_BusinessPartner.BusinessPartnerUUID = _Supplier.BusinessPartnerUUID

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner I_BuPaIdentification BusinessPartner Issuing Authority
KEY BPIdentificationType I_BuPaIdentification BPIdentificationType ID Type
KEY BPIdentificationNumber I_BuPaIdentification BPIdentificationNumber Logical System
BPIdnNmbrIssuingInstitute I_BuPaIdentification BPIdnNmbrIssuingInstitute Institution
BPIdentificationEntryDate I_BuPaIdentification BPIdentificationEntryDate Entry date
Country I_BuPaIdentification Country Venue: Ctry/Reg
Region I_BuPaIdentification Region Venue Region
ValidityStartDate I_BuPaIdentification ValidityStartDate Validity Start Date
ValidityEndDate I_BuPaIdentification ValidityEndDate ValidTo
AuthorizationGroup I_BuPaIdentification AuthorizationGroup AuthorizGroup
BPIdentificationCategory I_BuPaIdentificationType BPIdentificationCategory Violation Category
Customer _Customer Customer Sold-to Party
Supplier _Supplier Supplier Supplier

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 P_PH_CASForeignBPTIN.
-- 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.

CREATE VIEW P_PH_CASForeignBPTIN AS
SELECT
  I_BuPaIdentification.BusinessPartner AS BusinessPartner,
  I_BuPaIdentification.BPIdentificationType AS BPIdentificationType,
  I_BuPaIdentification.BPIdentificationNumber AS BPIdentificationNumber,
  I_BuPaIdentification.BPIdnNmbrIssuingInstitute AS BPIdnNmbrIssuingInstitute,
  I_BuPaIdentification.BPIdentificationEntryDate AS BPIdentificationEntryDate,
  I_BuPaIdentification.Country AS Country,
  I_BuPaIdentification.Region AS Region,
  I_BuPaIdentification.ValidityStartDate AS ValidityStartDate,
  I_BuPaIdentification.ValidityEndDate AS ValidityEndDate,
  I_BuPaIdentification.AuthorizationGroup AS AuthorizationGroup,
  _BuPaIdentificationType.BPIdentificationCategory AS BPIdentificationCategory,
  _Customer.Customer AS Customer,
  _Supplier.Supplier AS Supplier
FROM I_BuPaIdentification
INNER JOIN I_BuPaIdentificationType AS _BuPaIdentificationType ON /* join condition not captured in parsed metadata */
INNER JOIN I_BusinessPartner ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CustomerToBusinessPartner AS _Customer ON I_BusinessPartner.BusinessPartnerUUID = _Customer.BusinessPartnerUUID  -- association [1..1]
LEFT OUTER JOIN I_SupplierToBusinessPartner AS _Supplier ON I_BusinessPartner.BusinessPartnerUUID = _Supplier.BusinessPartnerUUID  -- association [1..1]
;