I_US_TaxPartnerTaxDocument
US TaxPartnerTaxDocument
I_US_TaxPartnerTaxDocument (Basic)
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
I_US_TaxPartnerTaxDocument is a Basic CDS View (Dimension) that provides data about "US TaxPartnerTaxDocument" in SAP S/4HANA. It reads from 1 data source (etxdch) and exposes 24 fields with key field US_TaxPartnerTaxDocument. It has 6 associations to related views.
SAP Help Documentation
| Category | Accounting and Financial Close |
|---|---|
| Data Category | Dimension |
| Status | Released |
Purpose
This CDS view provides the prerequisites for answering questions about all relevant aspects of the documents sent to and received from your external tax partner. This CDS view provides the data to answer the following business questions: What is the referenced accounting document for a given tax document sent to or received from your external tax partner? Based on which accounting document is a given tax document received from your external tax partner created? To which fiscal year does a given tax document correspond? Who created a given document sent to or received from your external tax partner? When is a given tax document to be returned? What is the company code of a given tax document sent to or received from your external tax partner? 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
Further important fields Important fields in this view include the following: Field Name Description ACCOUNTINGDOCUMENT Accounting document number COMPANYCODE Company code COMPANYCODECURRENCY Company code currency DOCUMENTDATE Document date FISCALYEAR Fiscal year POSTINGDATE Posting date US_TXPARTNERTXDOCUMENTSENTDATE Sent date of US tax partner document TRANSACTIONCURRENCY Transaction currency US_TAXPARTNERTAXDOCUMENT US tax partner document US_TXPARTNERTXDOCSENTBYUSR User sent
This CDS view provides the prerequisites for answering questions about all relevant aspects of the documents sent to and received from your external tax partner. This CDS view provides the data to answer the following business questions: What is the referenced accounting document for a given tax document sent to or received from your external tax partner? Based on which accounting document is a given tax document received from your external tax partner created? To which fiscal year does a given tax document correspond? Who created a given document sent to or received from your external tax partner? When is a given tax document to be returned? What is the company code of a given tax document sent to or received from your external tax partner? 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
Further important fields Important fields in this view include the following: Field Name Description ACCOUNTINGDOCUMENT Accounting document number COMPANYCODE Company code COMPANYCODECURRENCY Company code currency DOCUMENTDATE Document date FISCALYEAR Fiscal year POSTINGDATE Posting date US_TXPARTNERTXDOCUMENTSENTDATE Sent date of US tax partner document TRANSACTIONCURRENCY Transaction currency US_TAXPARTNERTAXDOCUMENT US tax partner document US_TXPARTNERTXDOCSENTBYUSR User sent
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Accounting and Financial Close |
| Application Component | FI-FIO-GL |
| Capabilities | Association Target for Defining CDS Entities |
| 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 |
|---|---|---|
| etxdch | etxdch | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_US_TaxPartTaxDocUpdateType | _Type | $projection.US_TaxPartTaxDocUpdateType = _Type.US_TaxPartTaxDocUpdateType |
| [1..*] | I_US_TaxPartnerTaxDocumentItem | _TaxDocItem | $projection.US_TaxPartnerTaxDocument = _TaxDocItem.US_TaxPartnerTaxDocument |
| [0..1] | I_AccountingDocument | _AccountingDocument | $projection.AccountingDocument = _AccountingDocument.AccountingDocument and $projection.CompanyCode = _AccountingDocument.CompanyCode and $projection.FiscalYear = _AccountingDocument.FiscalYear |
| [0..1] | I_Currency | _TransactionCurrency | $projection.TransactionCurrency = _TransactionCurrency.Currency |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IUSTXPARTTXDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | US TaxPartnerTaxDocument | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| ObjectModel.representativeKey | US_TaxPartnerTaxDocument | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | US_TaxPartnerTaxDocument | External Tax Document | ||
| ReferenceDocument | etxdch | awref | Reference Doc. Number | |
| ReferenceDocumentContext | Reference Document Context | |||
| US_TxPartnerTxDocumentSentDate | the date on which user sent external tax document to partner | |||
| US_TaxPartnerTaxTransaction | Unique Key | |||
| ReferenceDocumentType | Reference Document Type | |||
| CompanyCode | Company Code | |||
| AccountingDocument | Journal Entry | |||
| FiscalYear | Fiscal Year | |||
| TransactionCurrency | Transaction Currency | |||
| CompanyCodeCurrency | Company Code Currency | |||
| DefaultTaxDate | Default Tax Date | |||
| TaxCalculationProcedure | Procedure (Pricing, Output Control, Acct. Det., Costing,...) | |||
| US_TaxPartTaxDocUpdateType | External Tax Document: Update Type | |||
| US_TaxPartTaxDocUpdateStatus | External Tax Document: Update Status | |||
| US_TxPartnerTxDocSentByUsr | User Sent | |||
| PostingDate | _AccountingDocument | PostingDate | Posting Date for GR | |
| DocumentDate | _AccountingDocument | DocumentDate | Journal Entry Date | |
| _AccountingDocument | _AccountingDocument | |||
| _TaxDocItem | _TaxDocItem | |||
| _CompanyCode | _CompanyCode | |||
| _Type | _Type | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency |
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 I_US_TaxPartnerTaxDocument.
-- 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: IUSTXPARTTXDOC
CREATE VIEW I_US_TaxPartnerTaxDocument AS
SELECT
cast(etxdch.docnr as fis_externaltaxdocument preserving type) AS US_TaxPartnerTaxDocument,
etxdch.awref AS ReferenceDocument,
cast(etxdch.aworg as fis_aworg preserving type) AS ReferenceDocumentContext,
cast(etxdch.docstatuschanged as fis_externaltaxdatesent preserving type) AS US_TxPartnerTxDocumentSentDate,
cast(etxdch.tid as fis_etxdc_ukey preserving type) AS US_TaxPartnerTaxTransaction,
cast(etxdch.awtyp as fis_awtyp preserving type) AS ReferenceDocumentType,
cast(etxdch.comp_code as fis_bukrs preserving type) AS CompanyCode,
cast(etxdcf.belnr as farp_belnr_d preserving type) AS AccountingDocument,
cast(etxdcf.gjahr as fis_gjahr_no_conv preserving type) AS FiscalYear,
cast(etxdch.currency as fis_rwcur preserving type) AS TransactionCurrency,
cast(etxdch.gl_currency as fis_hwaer preserving type) AS CompanyCodeCurrency,
cast(etxdch.rep_date as fis_etxtaxdefaulttaxdate preserving type) AS DefaultTaxDate,
cast(etxdch.tax_procedure as kalsm_d preserving type) AS TaxCalculationProcedure,
cast(etxdch.uflag as fis_etxdc_upd_type preserving type) AS US_TaxPartTaxDocUpdateType,
cast( '' as fis_etxdc_upd_status preserving type) AS US_TaxPartTaxDocUpdateStatus,
cast(etxdch.usnam as fis_update_user preserving type) AS US_TxPartnerTxDocSentByUsr,
_AccountingDocument.PostingDate AS PostingDate,
_AccountingDocument.DocumentDate AS DocumentDate
FROM etxdch
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_US_TaxPartTaxDocUpdateType AS _Type ON US_TaxPartTaxDocUpdateType = _Type.US_TaxPartTaxDocUpdateType -- association [0..1]
LEFT OUTER JOIN I_US_TaxPartnerTaxDocumentItem AS _TaxDocItem ON US_TaxPartnerTaxDocument = _TaxDocItem.US_TaxPartnerTaxDocument -- association [1..*]
LEFT OUTER JOIN I_AccountingDocument AS _AccountingDocument ON AccountingDocument = _AccountingDocument.AccountingDocument AND CompanyCode = _AccountingDocument.CompanyCode AND FiscalYear = _AccountingDocument.FiscalYear -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
;
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