P_PL_SAFTTaxItemMain

DDL: P_PL_SAFTTAXITEMMAIN SQL: PPLSAFTTAXITMMN Type: view COMPOSITE

P_PL_SAFTTaxItemMain is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_PL_SAFTTaxItemBasic) and exposes 22 fields with key fields TaxType, CompanyCode, AccountingDocument, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
P_PL_SAFTTaxItemBasic P_PL_SAFTTaxItemBasic from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPLSAFTTAXITMMN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY TaxType TaxType Tax Type
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
TaxReportingDate TaxReportingDate Tax Reporting Date
TaxReturnCountry TaxReturnCountry Reporting C/R
TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
Customer Customer Sold-to Party
Supplier Supplier Supplier
ReferenceDocumentType ReferenceDocumentType Reference Document Type
OriginalReferenceDocument OriginalReferenceDocument Reference Key
DocumentItemText DocumentItemText Text
BusinessPartnerCountry BusinessPartnerCountry BP Ctry/Reg.
VATRegistration VATRegistration VAT Registration No.
BusinessPartnerName BusinessPartnerName Extracted Customer Name
CustomerSupplierAddress CustomerSupplierAddress
DocumentReferenceID DocumentReferenceID Reference
DocumentDate DocumentDate Journal Entry Date
CompanyCodeCurrency CompanyCodeCurrency Local Currency
TaxAmountInCoCodeCrcy
TaxBaseAmountInCoCodeCrcy
_AccountingDocument _AccountingDocument

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_PL_SAFTTaxItemMain.
-- 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: PPLSAFTTAXITMMN

CREATE VIEW P_PL_SAFTTaxItemMain AS
SELECT
  TaxType,
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxReportingDate,
  TaxReturnCountry,
  TaxCalculationProcedure,
  Customer,
  Supplier,
  ReferenceDocumentType,
  OriginalReferenceDocument,
  DocumentItemText,
  BusinessPartnerCountry,
  VATRegistration,
  BusinessPartnerName,
  CustomerSupplierAddress,
  DocumentReferenceID,
  DocumentDate,
  CompanyCodeCurrency,
  sum(TaxAmountInCoCodeCrcy) AS TaxAmountInCoCodeCrcy,
  sum(TaxBaseAmountInCoCodeCrcy) AS TaxBaseAmountInCoCodeCrcy
FROM P_PL_SAFTTaxItemBasic
;