P_PH_CASForeignBPTIN
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)
| Source | Alias | Join Type |
|---|---|---|
| I_BuPaIdentificationType | _BuPaIdentificationType | inner |
| I_BuPaIdentification | I_BuPaIdentification | from |
| I_BusinessPartner | I_BusinessPartner | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CustomerToBusinessPartner | _Customer | I_BusinessPartner.BusinessPartnerUUID = _Customer.BusinessPartnerUUID |
| [1..1] | I_SupplierToBusinessPartner | _Supplier | I_BusinessPartner.BusinessPartnerUUID = _Supplier.BusinessPartnerUUID |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA