P_RAContractualPriceByCust

DDL: P_RACONTRACTUALPRICEBYCUST Type: view_entity COMPOSITE

P_RAContractualPriceByCust is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_RAContractualPriceWithCust) and exposes 6 fields with key fields CompanyCode, AccountingPrinciple, Customer, CustomerName, SalesDocumentCurrency.

Data Sources (1)

SourceAliasJoin Type
P_RAContractualPriceWithCust P_RAContractualPriceWithCust from

Annotations (2)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingPrinciple AccountingPrinciple AP Ledger/CoCode
KEY Customer Customer Sold-to Party
KEY CustomerName CustomerName Name of Customer
KEY SalesDocumentCurrency SalesDocumentCurrency Currency
ContractualPrcInSlsDocCrcy

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_RAContractualPriceByCust.
-- 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_RAContractualPriceByCust AS
SELECT
  CompanyCode,
  AccountingPrinciple,
  Customer,
  CustomerName,
  SalesDocumentCurrency,
  sum(ContractualPrcInSlsDocCrcy) AS ContractualPrcInSlsDocCrcy
FROM P_RAContractualPriceWithCust
;