P_LogcDocSales

DDL: P_LOGCDOCSALES Type: view_entity CONSUMPTION

P_LogcDocSales is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_SalesDocument) and exposes 6 fields with key field SalesDocument.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocument SalesDocument from

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_SalesDocument SalesDocument SD Document
SalesDocumentType SalesDocumentType Sales Doc. Type
OrganizationDivision OrganizationDivision Org. Division
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
CompanyCode

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_LogcDocSales.
-- 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_LogcDocSales AS
SELECT
  SalesDocument.SalesDocument AS SalesDocument,
  SalesDocumentType,
  OrganizationDivision,
  SalesOrganization,
  DistributionChannel,
  SalesDocument._SalesOrganization.CompanyCode AS CompanyCode
FROM I_SalesDocument AS SalesDocument
;