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

C_PT_SAFTWorkingDocTotalCheck

DDL: C_PT_SAFTWORKINGDOCTOTALCHECK SQL: CPTSAFTWDOCTTC Type: view CONSUMPTION

SAF-T PT Working Documents Total Check

C_PT_SAFTWorkingDocTotalCheck is a Consumption CDS View that provides data about "SAF-T PT Working Documents Total Check" in SAP S/4HANA. It reads from 2 data sources (C_PT_SAFTWorkingDocItemC, C_PT_SAFTWorkingDocHeaderC) and exposes 5 fields with key field CompanyCode.

Data Sources (2)

SourceAliasJoin Type
C_PT_SAFTWorkingDocItemC a from
C_PT_SAFTWorkingDocHeaderC b inner

Parameters (3)

NameTypeDefault
P_StartDate dats
P_EndDate dats
P_DocumentBillingStatus abap.char(1)

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CPTSAFTWDOCTTC 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 Working Documents Total Check view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode C_PT_SAFTWorkingDocHeaderC CompanyCode Receiver Company Code
CompanyCurrency C_PT_SAFTWorkingDocItemC CompanyCurrency
TotalCreditAmount
TotalDebitAmount
_CompanyCode C_PT_SAFTWorkingDocHeaderC _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 C_PT_SAFTWorkingDocTotalCheck.
-- 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: CPTSAFTWDOCTTC
-- Parameters: P_StartDate : dats, P_EndDate : dats, P_DocumentBillingStatus : abap.char(1)

CREATE VIEW C_PT_SAFTWorkingDocTotalCheck AS
SELECT
  b.CompanyCode AS CompanyCode,
  a.CompanyCurrency AS CompanyCurrency,
  sum(a.CreditAmountInCoCodeCrcy) AS TotalCreditAmount,
  sum(a.DebitAmountInCoCodeCrcy) AS TotalDebitAmount,
  b._CompanyCode AS _CompanyCode
FROM C_PT_SAFTWorkingDocItemC AS a
INNER JOIN C_PT_SAFTWorkingDocHeaderC AS b ON /* join condition not captured in parsed metadata */
;