C_US_TaxPartnerTaxDocItemQuery
Analytical Query for US Tax Items
C_US_TaxPartnerTaxDocItemQuery (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Accounting and Financial Close
C_US_TaxPartnerTaxDocItemQuery is a Consumption CDS View that provides data about "Analytical Query for US Tax Items" in SAP S/4HANA. It reads from 1 data source (I_US_TaxPartnerTaxDocItemCube) and exposes 80 fields.
SAP Help Documentation
| Category | Accounting and Financial Close |
|---|---|
| Status | Released |
| Corresponding DataSource | 2CCUSTXPTDITMQUERY |
Purpose
This CDS view is an analytical query view and contains tax items for the US for parameter P_Language . This CDS view provides the data to answer the following business questions: Which tax items can be used to calculate the tax amount in transaction currency, the tax amount in company code currency, and the tax exemption amount in the US tax partner cube? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Any user who wants to use this CDS view needs to have the same minimum authorizations as the SAP_BR_GL_ACCOUNTANT_US business role template. Users must be assigned the SAP_FIN_BC_GL_TX_DCL_US_PC business catalog, which is predelivered with this role template. This business catalog contains the predeivered restrictions and permissions needed to use this CDS view. Your Administrator can see more information about this busness role template, this business catalog, and these restrictions in the Maintain Business Roles app.
Structure
Parameters The parameters of the CDS view are as follows: P_language : The default value of this parameter is your system language. Fields used for filtering The main filters are as follows. Except where noted, all filters are optinal. AccountingDocument CompanyCode (mandatory) DocumentDate FiscalYear GLAccount MaterialGroup PostingDate PurchasingDocument SDDocument ServicesRenderedDate TaxCalculationDate TaxCode UnitedStatesTaxCategory UnitedStatesTaxSourcing US_TaxPartnerTaxDocument US_TaxPartnerTaxDocumentItem US_TaxState Further important fields Important fields in this view include the following: Field Name Description Measure or Attribute Comment ACCOUNTINGDOCUMENT Accounting document number Attribute COMPANYCODE Company code Attribute COMPANYCODECURRENCY Company code currency Attribute DOCUMENTDATE Document date Attribute FISCALYEAR Fiscal year Attribute US_TAXFREEDEFINEDVALUE1 ~ US_TAXFREEDEFINEDVALUE50 Freely defined fields Attribute GLACCOUNT GL account Attribute MATERIALGROUP Material group Attribute POSTINGDATE Posting date Attribute PRODUCT Product number Attribute PURCHASINGDOCUMENT Purchase document number Attribute SDDOCUMENT Sales order document numbe Attribute SERVICESRENDEREDDATE Service rendered date Attribute TAXAMOUNTINCOCODECRCY Tax amount in company code currency Measure Default calculation formula: SUM TAXAMOUNTINTRANSCRCY Tax amount in transaction currency Measure Default calculation formula: SUM TAXBASEAMOUNTINCOCODECRCY Tax base amount in company code currency Measure Default calculation formula: MAX TAXBASEAMOUNTINTRANSCRCY Tax base amount in transaction currency Measure Default calculation formula: MAX TAXCALCULATIONPROCEDURE Tax calculation procedure Attribute TAXCODE Tax code Attribute TAXEXEMPTIONAMOUNT Tax exemption amount Measure Default calculation formula: MAX TAXJURISDICTION Tax jurisdiction code Attribute TAXJURISDICTIONTEXT Tax jurisdiction code description Attribute TRANSACTIONCURRENCY Transaction currency Attribute UNITEDSTATESTAXCATEGORY US tax category Attribute US_TAXPARTNERTAXDOCUMENTITEM US tax document item number Attribute US_TAXPARTNERTAXDOCUMENT US tax document number Attribute TAXJURISDICTIONLEVEL US tax jurisdiction level number Attribute US_TAXPARTNERRECEIVEDTAXDATE US tax partner received tax date Attribute UNITEDSTATESTAXSOURCING US tax sourcing Attribute US_TAXSTATE US tax state Attribute
This CDS view is an analytical query view and contains tax items for the US for parameter P_Language . This CDS view provides the data to answer the following business questions: Which tax items can be used to calculate the tax amount in transaction currency, the tax amount in company code currency, and the tax exemption amount in the US tax partner cube? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Any user who wants to use this CDS view needs to have the same minimum authorizations as the SAP_BR_GL_ACCOUNTANT_US business role template. Users must be assigned the SAP_FIN_BC_GL_TX_DCL_US_PC business catalog, which is predelivered with this role template. This business catalog contains the predeivered restrictions and permissions needed to use this CDS view. Your Administrator can see more information about this busness role template, this business catalog, and these restrictions in the Maintain Business Roles app.
Structure
Parameters The parameters of the CDS view are as follows: P_language : The default value of this parameter is your system language. Fields used for filtering The main filters are as follows. Except where noted, all filters are optinal. AccountingDocument CompanyCode (mandatory) DocumentDate FiscalYear GLAccount MaterialGroup PostingDate PurchasingDocument SDDocument ServicesRenderedDate TaxCalculationDate TaxCode UnitedStatesTaxCategory UnitedStatesTaxSourcing US_TaxPartnerTaxDocument US_TaxPartnerTaxDocumentItem US_TaxState Further important fields Important fields in this view include the following: Field Name Description Measure or Attribute Comment ACCOUNTINGDOCUMENT Accounting document number Attribute COMPANYCODE Company code Attribute COMPANYCODECURRENCY Company code currency Attribute DOCUMENTDATE Document date Attribute FISCALYEAR Fiscal year Attribute US_TAXFREEDEFINEDVALUE1 ~ US_TAXFREEDEFINEDVALUE50 Freely defined fields Attribute GLACCOUNT GL account Attribute MATERIALGROUP Material group Attribute POSTINGDATE Posting date Attribute PRODUCT Product number Attribute PURCHASINGDOCUMENT Purchase document number Attribute SDDOCUMENT Sales order document numbe Attribute SERVICESRENDEREDDATE Service rendered date Attribute TAXAMOUNTINCOCODECRCY Tax amount in company code currency Measure Default calculation formula: SUM TAXAMOUNTINTRANSCRCY Tax amount in transaction currency Measure Default calculation formula: SUM TAXBASEAMOUNTINCOCODECRCY Tax base amount in company code currency Measure Default calculation formula: MAX TAXBASEAMOUNTINTRANSCRCY Tax base amount in transaction currency Measure Default calculation formula: MAX TAXCALCULATIONPROCEDURE Tax calculation procedure Attribute TAXCODE Tax code Attribute TAXEXEMPTIONAMOUNT Tax exemption amount Measure Default calculation formula: MAX TAXJURISDICTION Tax jurisdiction code Attribute TAXJURISDICTIONTEXT Tax jurisdiction code description Attribute TRANSACTIONCURRENCY Transaction currency Attribute UNITEDSTATESTAXCATEGORY US tax category Attribute US_TAXPARTNERTAXDOCUMENTITEM US tax document item number Attribute US_TAXPARTNERTAXDOCUMENT US tax document number Attribute TAXJURISDICTIONLEVEL US tax jurisdiction level number Attribute US_TAXPARTNERRECEIVEDTAXDATE US tax partner received tax date Attribute UNITEDSTATESTAXSOURCING US tax sourcing Attribute US_TAXSTATE US tax state Attribute
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Accounting and Financial Close |
| Application Component | FI-FIO-GL |
| Capabilities | Analytical Query |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_US_TaxPartnerTaxDocItemCube | TaxDocItemCube | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CUSTXPTDITMQUERY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Analytical Query for US Tax Items | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view | |
| Analytics.settings.maxProcessingEffort | #HIGH | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_QUERY | view | |
| ObjectModel.supportedCapabilities | #ANALYTICAL_QUERY | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view |
Fields (80)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| US_TaxState | US_TaxState | External Tax State | ||
| US_TaxPartnerTaxDocument | US_TaxPartnerTaxDocument | External-tax document number | ||
| US_TaxPartnerTaxDocumentItem | US_TaxPartnerTaxDocumentItem | External-tax document item number | ||
| TaxJurisdictionLevel | TaxJurisdictionLevel | Tax jurisdiction code level | ||
| UnitedStatesTaxSourcing | UnitedStatesTaxSourcing | Tax Sourcing | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| TaxJurisdictionText | TaxJurisdictionText | Tax Jurisdiction Code Description | ||
| Product | Product | Product Number | ||
| MaterialGroup | MaterialGroup | Material Group | ||
| TaxCalculationProcedure | TaxCalculationProcedure | Procedure (Pricing, Output Control, Acct. Det., Costing,...) | ||
| TaxCode | TaxCode | Tax on Sales/Purchases Code | ||
| PurchasingDocument | PurchasingDocument | Purchasing Document Number | ||
| SDDocument | SDDocument | Sales and Distribution Document Number | ||
| UnitedStatesTaxCategory | UnitedStatesTaxCategory | Tax Category for US Taxes | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| AccountingDocument | AccountingDocument | Journal Entry | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| GLAccount | GLAccount | General Ledger | ||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | Tax Base Amount in Transaction Currency | ||
| TaxAmountInTransCrcy | TaxAmountInTransCrcy | Tax Amount in Transaction Currency | ||
| TaxExemptionAmount | TaxExemptionAmount | Tax-Exempt Revaluation Amount | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | Tax Base Amount in Company Code Currency | ||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | Signed Tax Amount in Company Code Currency | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Company Code Currency | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| ServicesRenderedDate | ServicesRenderedDate | Date on which services are rendered | ||
| US_TaxPartnerReceivedTaxDate | US_TaxPartnerReceivedTaxDate | Tax Date as Sent to Partner | ||
| TaxCalculationDate | TaxCalculationDate | The date used for external tax calculation | ||
| US_TaxFreeDefinedValue1 | US_TaxFreeDefinedValue1 | Extension Field 001 | ||
| US_TaxFreeDefinedValue2 | US_TaxFreeDefinedValue2 | Extension Field 002 | ||
| US_TaxFreeDefinedValue3 | US_TaxFreeDefinedValue3 | Extension Field 003 | ||
| US_TaxFreeDefinedValue4 | US_TaxFreeDefinedValue4 | Extension Field 004 | ||
| US_TaxFreeDefinedValue5 | US_TaxFreeDefinedValue5 | Extension Field 005 | ||
| US_TaxFreeDefinedValue6 | US_TaxFreeDefinedValue6 | Extension Field 006 | ||
| US_TaxFreeDefinedValue7 | US_TaxFreeDefinedValue7 | Extension Field 007 | ||
| US_TaxFreeDefinedValue8 | US_TaxFreeDefinedValue8 | Extension Field 008 | ||
| US_TaxFreeDefinedValue9 | US_TaxFreeDefinedValue9 | Extension Field 009 | ||
| US_TaxFreeDefinedValue10 | US_TaxFreeDefinedValue10 | Extension Field 010 | ||
| US_TaxFreeDefinedValue11 | US_TaxFreeDefinedValue11 | Extension Field 011 | ||
| US_TaxFreeDefinedValue12 | US_TaxFreeDefinedValue12 | Extension Field 012 | ||
| US_TaxFreeDefinedValue13 | US_TaxFreeDefinedValue13 | Extension Field 013 | ||
| US_TaxFreeDefinedValue14 | US_TaxFreeDefinedValue14 | Extension Field 014 | ||
| US_TaxFreeDefinedValue15 | US_TaxFreeDefinedValue15 | Extension Field 015 | ||
| US_TaxFreeDefinedValue16 | US_TaxFreeDefinedValue16 | Extension Field 016 | ||
| US_TaxFreeDefinedValue17 | US_TaxFreeDefinedValue17 | Extension Field 017 | ||
| US_TaxFreeDefinedValue18 | US_TaxFreeDefinedValue18 | Extension Field 018 | ||
| US_TaxFreeDefinedValue19 | US_TaxFreeDefinedValue19 | Extension Field 019 | ||
| US_TaxFreeDefinedValue20 | US_TaxFreeDefinedValue20 | Extension Field 020 | ||
| US_TaxFreeDefinedValue21 | US_TaxFreeDefinedValue21 | Extension Field 021 | ||
| US_TaxFreeDefinedValue22 | US_TaxFreeDefinedValue22 | Extension Field 022 | ||
| US_TaxFreeDefinedValue23 | US_TaxFreeDefinedValue23 | Extension Field 023 | ||
| US_TaxFreeDefinedValue24 | US_TaxFreeDefinedValue24 | Extension Field 024 | ||
| US_TaxFreeDefinedValue25 | US_TaxFreeDefinedValue25 | Extension Field 025 | ||
| US_TaxFreeDefinedValue26 | US_TaxFreeDefinedValue26 | Extension Field 026 | ||
| US_TaxFreeDefinedValue27 | US_TaxFreeDefinedValue27 | Extension Field 027 | ||
| US_TaxFreeDefinedValue28 | US_TaxFreeDefinedValue28 | Extension Field 028 | ||
| US_TaxFreeDefinedValue29 | US_TaxFreeDefinedValue29 | Extension Field 029 | ||
| US_TaxFreeDefinedValue30 | US_TaxFreeDefinedValue30 | Extension Field 030 | ||
| US_TaxFreeDefinedValue31 | US_TaxFreeDefinedValue31 | Extension Field 031 | ||
| US_TaxFreeDefinedValue32 | US_TaxFreeDefinedValue32 | Extension Field 032 | ||
| US_TaxFreeDefinedValue33 | US_TaxFreeDefinedValue33 | Extension Field 033 | ||
| US_TaxFreeDefinedValue34 | US_TaxFreeDefinedValue34 | Extension Field 034 | ||
| US_TaxFreeDefinedValue35 | US_TaxFreeDefinedValue35 | Extension Field 035 | ||
| US_TaxFreeDefinedValue36 | US_TaxFreeDefinedValue36 | Extension Field 036 | ||
| US_TaxFreeDefinedValue37 | US_TaxFreeDefinedValue37 | Extension Field 037 | ||
| US_TaxFreeDefinedValue38 | US_TaxFreeDefinedValue38 | Extension Field 038 | ||
| US_TaxFreeDefinedValue39 | US_TaxFreeDefinedValue39 | Extension Field 039 | ||
| US_TaxFreeDefinedValue40 | US_TaxFreeDefinedValue40 | Extension Field 040 | ||
| US_TaxFreeDefinedValue41 | US_TaxFreeDefinedValue41 | Extension Field 041 | ||
| US_TaxFreeDefinedValue42 | US_TaxFreeDefinedValue42 | Extension Field 042 | ||
| US_TaxFreeDefinedValue43 | US_TaxFreeDefinedValue43 | Extension Field 043 | ||
| US_TaxFreeDefinedValue44 | US_TaxFreeDefinedValue44 | Extension Field 044 | ||
| US_TaxFreeDefinedValue45 | US_TaxFreeDefinedValue45 | Extension Field 045 | ||
| US_TaxFreeDefinedValue46 | US_TaxFreeDefinedValue46 | Extension Field 046 | ||
| US_TaxFreeDefinedValue47 | US_TaxFreeDefinedValue47 | Extension Field 047 | ||
| US_TaxFreeDefinedValue48 | US_TaxFreeDefinedValue48 | Extension Field 048 | ||
| US_TaxFreeDefinedValue49 | US_TaxFreeDefinedValue49 | Extension Field 049 | ||
| US_TaxFreeDefinedValue50 | US_TaxFreeDefinedValue50 | Extension Field 050 |
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_US_TaxPartnerTaxDocItemQuery.
-- 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: CUSTXPTDITMQUERY
-- Parameters: P_Language : sylangu
CREATE VIEW C_US_TaxPartnerTaxDocItemQuery AS
SELECT
US_TaxState,
US_TaxPartnerTaxDocument,
US_TaxPartnerTaxDocumentItem,
TaxJurisdictionLevel,
UnitedStatesTaxSourcing,
TaxJurisdiction,
TaxJurisdictionText,
Product,
MaterialGroup,
TaxCalculationProcedure,
TaxCode,
PurchasingDocument,
SDDocument,
UnitedStatesTaxCategory,
CompanyCode,
AccountingDocument,
FiscalYear,
GLAccount,
TaxBaseAmountInTransCrcy,
TaxAmountInTransCrcy,
TaxExemptionAmount,
TransactionCurrency,
TaxBaseAmountInCoCodeCrcy,
TaxAmountInCoCodeCrcy,
CompanyCodeCurrency,
PostingDate,
DocumentDate,
ServicesRenderedDate,
US_TaxPartnerReceivedTaxDate,
TaxCalculationDate,
US_TaxFreeDefinedValue1,
US_TaxFreeDefinedValue2,
US_TaxFreeDefinedValue3,
US_TaxFreeDefinedValue4,
US_TaxFreeDefinedValue5,
US_TaxFreeDefinedValue6,
US_TaxFreeDefinedValue7,
US_TaxFreeDefinedValue8,
US_TaxFreeDefinedValue9,
US_TaxFreeDefinedValue10,
US_TaxFreeDefinedValue11,
US_TaxFreeDefinedValue12,
US_TaxFreeDefinedValue13,
US_TaxFreeDefinedValue14,
US_TaxFreeDefinedValue15,
US_TaxFreeDefinedValue16,
US_TaxFreeDefinedValue17,
US_TaxFreeDefinedValue18,
US_TaxFreeDefinedValue19,
US_TaxFreeDefinedValue20,
US_TaxFreeDefinedValue21,
US_TaxFreeDefinedValue22,
US_TaxFreeDefinedValue23,
US_TaxFreeDefinedValue24,
US_TaxFreeDefinedValue25,
US_TaxFreeDefinedValue26,
US_TaxFreeDefinedValue27,
US_TaxFreeDefinedValue28,
US_TaxFreeDefinedValue29,
US_TaxFreeDefinedValue30,
US_TaxFreeDefinedValue31,
US_TaxFreeDefinedValue32,
US_TaxFreeDefinedValue33,
US_TaxFreeDefinedValue34,
US_TaxFreeDefinedValue35,
US_TaxFreeDefinedValue36,
US_TaxFreeDefinedValue37,
US_TaxFreeDefinedValue38,
US_TaxFreeDefinedValue39,
US_TaxFreeDefinedValue40,
US_TaxFreeDefinedValue41,
US_TaxFreeDefinedValue42,
US_TaxFreeDefinedValue43,
US_TaxFreeDefinedValue44,
US_TaxFreeDefinedValue45,
US_TaxFreeDefinedValue46,
US_TaxFreeDefinedValue47,
US_TaxFreeDefinedValue48,
US_TaxFreeDefinedValue49,
US_TaxFreeDefinedValue50
FROM I_US_TaxPartnerTaxDocItemCube AS TaxDocItemCube
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA