P_CustNameCombinedSDMSts
P_CustNameCombinedSDMSts is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_BPMultipleAssignment, kna1) and exposes 22 fields with key fields Customer, BusinessPartner, ReferenceType, BusinessPartner, ReferenceType.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_BPMultipleAssignment | I_BPMultipleAssignment | union_all |
| kna1 | kna1 | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | kna1 | kunnr | Stock customer |
| KEY | BusinessPartner | I_BusinessPartner | BusinessPartner | Issuing Authority |
| KEY | ReferenceType | |||
| BusinessPartnerCategory | I_BusinessPartner | BusinessPartnerCategory | Partner Cat. | |
| PersonNumber | I_BusinessPartner | PersonNumber | Person Number | |
| AddressNumber | I_BPCurrentDefaultAddress | AddressID | Ship-to address | |
| OrganizationName1 | I_Address_2 | OrganizationName1 | Name | |
| OrganizationName2 | I_Address_2 | OrganizationName2 | Name 2 | |
| NameText | I_Address_2 | AddresseeFullName | Full Name | |
| char81endasNameCombinedCalc | ||||
| NameCombined | kna1 | namecombined | ||
| BPObjectIDaskunnrasCustomer | ||||
| KEY | BusinessPartner | I_BusinessPartner | BusinessPartner | Issuing Authority |
| KEY | ReferenceType | |||
| BusinessPartnerCategory | I_BusinessPartner | BusinessPartnerCategory | Partner Cat. | |
| PersonNumber | I_BusinessPartner | PersonNumber | Person Number | |
| AddressNumber | I_BPCurrentDefaultAddress | AddressID | Ship-to address | |
| OrganizationName1 | I_Address_2 | OrganizationName1 | Name | |
| OrganizationName2 | I_Address_2 | OrganizationName2 | Name 2 | |
| NameText | I_Address_2 | AddresseeFullName | Full Name | |
| char81endasNameCombinedCalc | ||||
| NameCombined | kna1 | namecombined |
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_CustNameCombinedSDMSts.
-- 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_CustNameCombinedSDMSts AS
SELECT
kna1.kunnr AS Customer,
I_BusinessPartner.BusinessPartner AS BusinessPartner,
cast('CUSTOMER' as abap.char( 15 )) AS ReferenceType,
I_BusinessPartner.BusinessPartnerCategory AS BusinessPartnerCategory,
I_BusinessPartner.PersonNumber AS PersonNumber,
I_BPCurrentDefaultAddress.AddressID AS AddressNumber,
I_Address_2.OrganizationName1 AS OrganizationName1,
I_Address_2.OrganizationName2 AS OrganizationName2,
I_Address_2.AddresseeFullName AS NameText,
case when I_BusinessPartner.BusinessPartnerCategory = '1' then cast( coalesce( I_Address_2.AddresseeFullName, ' ') as abap.char( 81 ) ) when I_BusinessPartner.BusinessPartnerCategory = '2' or I_BusinessPartner.BusinessPartnerCategory = '3' then cast( concat_with_space( coalesce( I_Address_2.OrganizationName1, ' '), coalesce( I_Address_2.OrganizationName2, ' '), 1 ) as abap.char( 81 ) ) else cast( '' as abap.char( 81 ) ) end as NameCombinedCalc AS char81endasNameCombinedCalc,
kna1.namecombined AS NameCombined,
cast( case when case when I_BusinessPartner.BusinessPartnerCategory = '1' then cast( coalesce( I_Address_2.AddresseeFullName, ' ') as abap.char( 81 ) ) when I_BusinessPartner.BusinessPartnerCategory = '2' or I_BusinessPartner.BusinessPartnerCategory = '3' then cast( concat_with_space( coalesce( I_Address_2.OrganizationName1, ' '), coalesce( I_Address_2.OrganizationName2, ' '), 1 ) as abap.char( 81 ) ) else cast( '' as abap.char( 81 ) ) end = kna1.namecombined then '01' else '00' end as sdm_status_value_done ) as sdm_version AS BPObjectIDaskunnrasCustomer
FROM kna1
-- UNION ALL with additional select branch(es): I_BPMultipleAssignment
;
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