P_CN_CADECustomer

DDL: P_CN_CADECUSTOMER SQL: PCNCADECUSTOMER Type: view CONSUMPTION

P_CN_CADECustomer is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (I_Customer, I_Customer_to_BusinessPartner, I_CustomerCompany) and exposes 7 fields with key fields CompanyCode, Customer.

Data Sources (3)

SourceAliasJoin Type
I_Customer Customer inner
I_Customer_to_BusinessPartner Customer_to_BusinessPartner inner
I_CustomerCompany CustomerCompany from

Annotations (7)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PCNCADECUSTOMER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CustomerCompany CompanyCode Receiver Company Code
KEY Customer
BusinessPartner
PersonNumber
AuthorizationGroup I_Customer AuthorizationGroup AuthorizGroup
CustomerFullName
CustomerName

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_CN_CADECustomer.
-- 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: PCNCADECUSTOMER

CREATE VIEW P_CN_CADECustomer AS
SELECT
  CustomerCompany.CompanyCode AS CompanyCode,
  ltrim(CustomerCompany.Customer,'0') AS Customer,
  Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
  Customer._CustomerToBusinessPartner._BusinessPartner.PersonNumber AS PersonNumber,
  Customer.AuthorizationGroup AS AuthorizationGroup,
  concat(Rtrim(Customer.OrganizationBPName1,' '),ltrim(Customer.OrganizationBPName2,' ')) AS CustomerFullName,
  Customer._CustomerToBusinessPartner._BusinessPartner.SearchTerm1 AS CustomerName
FROM I_CustomerCompany AS CustomerCompany
INNER JOIN I_Customer AS Customer ON /* join condition not captured in parsed metadata */
INNER JOIN I_Customer_to_BusinessPartner AS Customer_to_BusinessPartner ON /* join condition not captured in parsed metadata */
;