I_US_TaxPartnerTaxDocument

DDL: I_US_TAXPARTNERTAXDOCUMENT SQL: IUSTXPARTTXDOC Type: view BASIC

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

CategoryAccounting and Financial Close
Data CategoryDimension
StatusReleased
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-FIO-GL
CapabilitiesAssociation Target for Defining CDS Entities
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
etxdch etxdch from

Associations (6)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;