P_SalesDocumentItemCount

DDL: P_SALESDOCUMENTITEMCOUNT SQL: PSLSDOCITMCOUNT Type: view CONSUMPTION

Number of Sales Document Items

P_SalesDocumentItemCount is a Consumption CDS View that provides data about "Number of Sales Document Items" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItemBasic) and exposes 2 fields with key field SalesDocument.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItemBasic I_SalesDocumentItemBasic from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PSLSDOCITMCOUNT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Number of Sales Document Items view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument SalesDocument SD Document
NmbrOfSlsDocItems

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_SalesDocumentItemCount.
-- 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: PSLSDOCITMCOUNT

CREATE VIEW P_SalesDocumentItemCount AS
SELECT
  SalesDocument,
  count(*) AS NmbrOfSlsDocItems
FROM I_SalesDocumentItemBasic
;