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

C_PT_SAFTWorkingDocNmbrEntries

DDL: C_PT_SAFTWORKINGDOCNMBRENTRIES SQL: CPTSAFTWDOCNENT Type: view CONSUMPTION

SAF-T PT Working Doc Number Entries

C_PT_SAFTWorkingDocNmbrEntries is a Consumption CDS View that provides data about "SAF-T PT Working Doc Number Entries" in SAP S/4HANA. It reads from 1 data source (C_PT_SAFTWorkingDocHeaderC) and exposes 2 fields with key field CompanyCode.

Data Sources (1)

SourceAliasJoin Type
C_PT_SAFTWorkingDocHeaderC a from

Parameters (2)

NameTypeDefault
P_StartDate dats
P_EndDate dats

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CPTSAFTWDOCNENT view
AbapCatalog.compiler.compareFilter 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 Working Doc Number Entries view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode C_PT_SAFTWorkingDocHeaderC 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_SAFTWorkingDocNmbrEntries.
-- 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: CPTSAFTWDOCNENT
-- Parameters: P_StartDate : dats, P_EndDate : dats

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