P_PH_ClearingDocTaxAmount

DDL: P_PH_CLEARINGDOCTAXAMOUNT SQL: PPHCLRTAXAMT Type: view COMPOSITE Package: GLO_FIN_PAYMENT_RECEIPT

PH Payment Receipt Clearing Doc Tax

P_PH_ClearingDocTaxAmount is a Composite CDS View that provides data about "PH Payment Receipt Clearing Doc Tax" in SAP S/4HANA. It reads from 3 data sources (P_PH_PaymentReceiptTaxItem, P_PH_PaymentReceiptTaxItem, P_TimeDepdntVersAssgmtNext) and exposes 16 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocument, FiscalYear. Part of development package GLO_FIN_PAYMENT_RECEIPT.

Data Sources (3)

SourceAliasJoin Type
P_PH_PaymentReceiptTaxItem _taxItem from
P_PH_PaymentReceiptTaxItem _taxItem union_all
P_TimeDepdntVersAssgmtNext _version inner

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PPHCLRTAXAMT view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
Customer Customer Sold-to Party
Supplier Supplier Supplier
ExemptTaxBaseAmtInCoCodeCrcy
ZeroTaxBaseAmountInCoCodeCrcy
TaxBaseAmountInCoCodeCrcy
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
Customer Customer Sold-to Party
Supplier Supplier Supplier
ExemptTaxBaseAmtInCoCodeCrcy
ZeroTaxBaseAmountInCoCodeCrcy
TaxBaseAmountInCoCodeCrcy
TaxAmountInCoCodeCrcy

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_PH_ClearingDocTaxAmount.
-- 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: PPHCLRTAXAMT

CREATE VIEW P_PH_ClearingDocTaxAmount AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  Customer,
  Supplier,
  sum (ExemptTaxBaseAmtInCoCodeCrcy) AS ExemptTaxBaseAmtInCoCodeCrcy,
  sum (ZeroTaxBaseAmountInCoCodeCrcy) AS ZeroTaxBaseAmountInCoCodeCrcy,
  sum (TaxBaseAmountInCoCodeCrcy) AS TaxBaseAmountInCoCodeCrcy,
  sum(TaxAmountInCoCodeCrcy) AS TaxAmountInCoCodeCrcy
FROM P_PH_PaymentReceiptTaxItem AS _taxItem
INNER JOIN P_TimeDepdntVersAssgmtNext AS _version ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_PH_PaymentReceiptTaxItem
;