Deprecated
This CDS view is deprecated in S/4HANA. Use NoSuccessor instead. View all deprecated CDS views →

C_PT_SAFTSlsInvoiceNmbrEntries

DDL: C_PT_SAFTSLSINVOICENMBRENTRIES SQL: CPTSAFTSLIVNBE Type: view CONSUMPTION

SAF-T PT Sales Invoice Number Entries

C_PT_SAFTSlsInvoiceNmbrEntries is a Consumption CDS View that provides data about "SAF-T PT Sales Invoice Number Entries" in SAP S/4HANA. It reads from 1 data source (C_PT_SAFTSalesInvoiceHeaderC) and exposes 2 fields.

Data Sources (1)

SourceAliasJoin Type
C_PT_SAFTSalesInvoiceHeaderC a from

Parameters (2)

NameTypeDefault
P_StartDate dats
P_EndDate dats

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CPTSAFTSLIVNBE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label SAF-T PT Sales Invoice Number Entries view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (2)

KeyFieldSource TableSource FieldDescription
CompanyCode C_PT_SAFTSalesInvoiceHeaderC CompanyCode Receiver Company Code
NumberOfLines

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 C_PT_SAFTSlsInvoiceNmbrEntries.
-- 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: CPTSAFTSLIVNBE
-- Parameters: P_StartDate : dats, P_EndDate : dats

CREATE VIEW C_PT_SAFTSlsInvoiceNmbrEntries AS
SELECT
  a.CompanyCode AS CompanyCode,
  count( distinct a.PortugueseInvoiceNumber ) AS NumberOfLines
FROM C_PT_SAFTSalesInvoiceHeaderC AS a
;