I_StRpBPTaxItem
Business Partner Tax Item
I_StRpBPTaxItem is a Composite CDS View (Fact) that provides data about "Business Partner Tax Item" in SAP S/4HANA. It reads from 1 data source (P_StRpBPTaxItem14) and exposes 89 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem. It has 23 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_StRpBPTaxItem14 | P_StRpBPTaxItem14 | from |
Associations (23)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ReceivablesPayablesItem | _ReceivablesPayablesItem | $projection.CompanyCode = _ReceivablesPayablesItem.CompanyCode and $projection.FiscalYear = _ReceivablesPayablesItem.FiscalYear and $projection.AccountingDocument = _ReceivablesPayablesItem.AccountingDocument and $projection.AccountingDocumentItem = _ReceivablesPayablesItem.AccountingDocumentItem |
| [0..1] | I_AccountingDocument | _AccountingDocument | $projection.CompanyCode = _AccountingDocument.CompanyCode and $projection.AccountingDocument = _AccountingDocument.AccountingDocument and $projection.FiscalYear = _AccountingDocument.FiscalYear |
| [0..1] | I_AccountingDocumentType | _AccountingDocumentType | $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType |
| [0..1] | I_GLAccount | _GLAccount | $projection.GLAccount = _GLAccount.GLAccount and $projection.CompanyCode = _GLAccount.CompanyCode |
| [0..1] | I_OneTimeAccountBP | _OneTimeAccountBP | $projection.CompanyCode = _OneTimeAccountBP.CompanyCode and $projection.AccountingDocument = _OneTimeAccountBP.AccountingDocument and $projection.FiscalYear = _OneTimeAccountBP.FiscalYear and $projection.AccountingDocumentItem = _OneTimeAccountBP.AccountingDocumentItem |
| [0..1] | I_OneTimeAccountBP | _OneTimeDefTaxAccountBP | $projection.CompanyCode = _OneTimeDefTaxAccountBP.CompanyCode and $projection.DeferTaxReferenceDocument = _OneTimeDefTaxAccountBP.AccountingDocument and $projection.DeferTaxReferenceFiscalYear = _OneTimeDefTaxAccountBP.FiscalYear and $projection.DeferTaxReferenceDocumentItem = _OneTimeDefTaxAccountBP.AccountingDocumentItem |
| [0..1] | I_BillingDocument | _BillingDocument | $projection.ReferenceDocumentType = 'VBRK' and $projection.OriginalReferenceDocument = _BillingDocument.BillingDocument |
| [0..1] | I_CFinBillingDocument | _CFinBillingDocument | $projection.OriginalReferenceDocument = _CFinBillingDocument.CentralFinanceBillingDocument and $projection.ReferenceDocumentType = 'VBRK' and $projection.SenderLogicalSystem = _CFinBillingDocument.SenderLogicalSystem |
| [0..1] | I_SupplierInvoice | _SupplierInvoice | $projection.ReferenceDocumentType = 'RMRP' and $projection.ReferenceDocument = _SupplierInvoice.SupplierInvoice and $projection.ReferenceDocumentContext = _SupplierInvoice.FiscalYear |
| [0..1] | I_CFinSupplierInvoice | _CFinSupplierInvoice | $projection.SenderLogicalSystem = _CFinSupplierInvoice.SenderLogicalSystem and $projection.ReferenceDocumentType = 'RMRP' and $projection.ReferenceDocument = _CFinSupplierInvoice.CentralFinanceSupplierInvoice and $projection.ReferenceDocumentContext = _CFinSupplierInvoice.FiscalYear |
| [0..1] | I_TaxType | _TaxType | $projection.TaxType = _TaxType.TaxType |
| [0..1] | I_TaxJurisdiction | _TaxJurisdiction | $projection.TaxCalculationProcedure = _TaxJurisdiction.TaxJurisdictionCalcProcedure and $projection.TaxJurisdiction = _TaxJurisdiction.TaxJurisdiction |
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartnerUUID = _BusinessPartner.BusinessPartnerUUID |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Customer_to_BusinessPartner | _CustomerToBusinessPartner | $projection.Customer = _CustomerToBusinessPartner.Customer |
| [0..1] | I_Supplier_to_BusinessPartner | _SupplierToBusinessPartner | $projection.Supplier = _SupplierToBusinessPartner.Supplier |
| [0..1] | I_Country | _CompanyCodeCountry | $projection.CompanyCodeCountry = _CompanyCodeCountry.Country |
| [0..1] | I_Country | _TaxReturnCountry | $projection.TaxReturnCountry = _TaxReturnCountry.Country |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [0..1] | I_Currency | _DocumentCurrency | $projection.DocumentCurrency = _DocumentCurrency.Currency |
| [0..1] | I_Currency | _CountryCurrency | $projection.CountryCurrency = _CountryCurrency.Currency |
| [0..*] | I_StRpJournalEntryLog | _ReportedItemsLog | _ReportedItemsLog.CompanyCode = $projection.CompanyCode and _ReportedItemsLog.AccountingDocument = $projection.AccountingDocument and _ReportedItemsLog.FiscalYear = $projection.FiscalYear |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISTRPBPTAXITEM | view | |
| EndUserText.label | Business Partner Tax Item | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.dataCategory | #FACT | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (89)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | TaxItem | TaxItem | Tax Item | |
| AccountingDocumentItem | AccountingDocumentItem | Posting View Item | ||
| TransactionTypeDetermination | TransactionTypeDetermination | Transaction Key | ||
| TaxCode | TaxCode | Tax Code | ||
| GLAccount | GLAccount | General Ledger | ||
| TaxType | TaxType | Tax Type | ||
| TaxResultManualModification | TaxResultManualModification | Tax Modified | ||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | ||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | ||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | Value-Added Tax | ||
| TaxAmountInTransCrcy | TaxAmountInTransCrcy | TaxAmt in Tran. Crcy | ||
| VATRegistration | VATRegistration | VAT Registration No. | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| ConditionType | ConditionType | Condition type | ||
| TaxRate | TaxRate | Tax Rate | ||
| TaxReturnCountry | TaxReturnCountry | Reporting C/R | ||
| TaxAmountInCountryCrcy | TaxAmountInCountryCrcy | Tax Rept. Crcy | ||
| TaxBaseAmountInCountryCrcy | TaxBaseAmountInCountryCrcy | Base Amount | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| CompanyCodeCountry | CompanyCodeCountry | Reporting Ctry/Reg. | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| CountryCurrency | CountryCurrency | Currency | ||
| TaxCalculationProcedure | TaxCalculationProcedure | Tax Procedure | ||
| TaxRateValidityStartDate | TaxRateValidityStartDate | Tax Rate Validity Start Date | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| PostingFiscalPeriod | PostingFiscalPeriod | Period | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| ReverseDocument | ReverseDocument | Reversed With | ||
| ReverseDocumentFiscalYear | ReverseDocumentFiscalYear | Year | ||
| OriginalReferenceDocument | OriginalReferenceDocument | Reference Key | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| TaxBaseAmountIsNetAmount | TaxBaseAmountIsNetAmount | Tax Base Amount is Net Amount | ||
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| SenderLogicalSystem | SenderLogicalSystem | Sender Logical System | ||
| SenderCompanyCode | SenderCompanyCode | Sender Company Code | ||
| SenderAccountingDocument | SenderAccountingDocument | Sender Journal Entry | ||
| SenderFiscalYear | SenderFiscalYear | Sender FiscalYr | ||
| JrnlEntryCntrySpecificRef1 | JrnlEntryCntrySpecificRef1 | Country/Region Specific Reference 1 | ||
| JrnlEntryCntrySpecificDate1 | JrnlEntryCntrySpecificDate1 | Country/Region Specific Date 1 | ||
| JrnlEntryCntrySpecificRef2 | JrnlEntryCntrySpecificRef2 | Country/Region Specific Reference 2 | ||
| JrnlEntryCntrySpecificDate2 | JrnlEntryCntrySpecificDate2 | Country/Region Specific Date 2 | ||
| JrnlEntryCntrySpecificRef3 | JrnlEntryCntrySpecificRef3 | Country/Region Specific Reference 3 | ||
| JrnlEntryCntrySpecificDate3 | JrnlEntryCntrySpecificDate3 | Country/Region Specific Date 3 | ||
| JrnlEntryCntrySpecificRef4 | JrnlEntryCntrySpecificRef4 | Country/Region Specific Reference 4 | ||
| JrnlEntryCntrySpecificDate4 | JrnlEntryCntrySpecificDate4 | Country/Region Specific Date 4 | ||
| JrnlEntryCntrySpecificRef5 | JrnlEntryCntrySpecificRef5 | Country/Region Specific Reference 5 | ||
| JrnlEntryCntrySpecificDate5 | JrnlEntryCntrySpecificDate5 | Country/Region Specific Date 5 | ||
| JrnlEntryCntrySpecificBP1 | JrnlEntryCntrySpecificBP1 | Ctry/Reg. Specific Business Partner 1 | ||
| JrnlEntryCntrySpecificBP2 | JrnlEntryCntrySpecificBP2 | Ctry/Reg. Specific Business Partner 2 | ||
| InvoiceReference | InvoiceReference | Invoice Reference | ||
| InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | ||
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| ReferenceDocumentContext | ReferenceDocumentContext | Reference Document Context | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| ReportingCountry | ReportingCountry | |||
| ReportingDate | ReportingDate | |||
| DeferTaxReferenceDocument | InvoiceNumber | Invoice Number | ||
| DeferTaxReferenceFiscalYear | InvoiceFiscalYear | |||
| DeferTaxReferenceDocumentItem | InvoiceDocumentItem | Posting View Item | ||
| _ReceivablesPayablesItem | _ReceivablesPayablesItem | |||
| _AccountingDocument | _AccountingDocument | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _GLAccount | _GLAccount | |||
| _OneTimeAccountBP | _OneTimeAccountBP | |||
| _OneTimeDefTaxAccountBP | _OneTimeDefTaxAccountBP | |||
| _BillingDocument | _BillingDocument | |||
| _CFinBillingDocument | _CFinBillingDocument | |||
| _SupplierInvoice | _SupplierInvoice | |||
| _CFinSupplierInvoice | _CFinSupplierInvoice | |||
| _TaxType | _TaxType | |||
| _TaxJurisdiction | _TaxJurisdiction | |||
| _BusinessPartner | _BusinessPartner | |||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| _CustomerToBusinessPartner | _CustomerToBusinessPartner | |||
| _SupplierToBusinessPartner | _SupplierToBusinessPartner | |||
| _CompanyCodeCountry | _CompanyCodeCountry | |||
| _TaxReturnCountry | _TaxReturnCountry | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _CountryCurrency | _CountryCurrency | |||
| _ReportedItemsLog | _ReportedItemsLog |
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_StRpBPTaxItem.
-- 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: ISTRPBPTAXITEM
CREATE VIEW I_StRpBPTaxItem AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
TaxItem,
AccountingDocumentItem,
TransactionTypeDetermination,
TaxCode,
GLAccount,
TaxType,
TaxResultManualModification,
TaxBaseAmountInCoCodeCrcy,
TaxAmountInCoCodeCrcy,
TaxBaseAmountInTransCrcy,
TaxAmountInTransCrcy,
VATRegistration,
TaxJurisdiction,
ConditionType,
TaxRate,
TaxReturnCountry,
TaxAmountInCountryCrcy,
TaxBaseAmountInCountryCrcy,
CompanyCodeCurrency,
CompanyCodeCountry,
DocumentCurrency,
CountryCurrency,
TaxCalculationProcedure,
TaxRateValidityStartDate,
DocumentDate,
PostingDate,
PostingFiscalPeriod,
ReferenceDocumentType,
DocumentReferenceID,
ReverseDocument,
ReverseDocumentFiscalYear,
OriginalReferenceDocument,
AccountingDocumentType,
TaxBaseAmountIsNetAmount,
TaxReportingDate,
SenderLogicalSystem,
SenderCompanyCode,
SenderAccountingDocument,
SenderFiscalYear,
JrnlEntryCntrySpecificRef1,
JrnlEntryCntrySpecificDate1,
JrnlEntryCntrySpecificRef2,
JrnlEntryCntrySpecificDate2,
JrnlEntryCntrySpecificRef3,
JrnlEntryCntrySpecificDate3,
JrnlEntryCntrySpecificRef4,
JrnlEntryCntrySpecificDate4,
JrnlEntryCntrySpecificRef5,
JrnlEntryCntrySpecificDate5,
JrnlEntryCntrySpecificBP1,
JrnlEntryCntrySpecificBP2,
InvoiceReference,
InvoiceReferenceFiscalYear,
ReferenceDocument,
ReferenceDocumentContext,
FinancialAccountType,
Supplier,
Customer,
ReportingCountry,
ReportingDate,
InvoiceNumber AS DeferTaxReferenceDocument,
InvoiceFiscalYear AS DeferTaxReferenceFiscalYear,
InvoiceDocumentItem AS DeferTaxReferenceDocumentItem
FROM P_StRpBPTaxItem14
LEFT OUTER JOIN I_ReceivablesPayablesItem AS _ReceivablesPayablesItem ON CompanyCode = _ReceivablesPayablesItem.CompanyCode AND FiscalYear = _ReceivablesPayablesItem.FiscalYear AND AccountingDocument = _ReceivablesPayablesItem.AccountingDocument AND AccountingDocumentItem = _ReceivablesPayablesItem.AccountingDocumentItem -- association [0..1]
LEFT OUTER JOIN I_AccountingDocument AS _AccountingDocument ON CompanyCode = _AccountingDocument.CompanyCode AND AccountingDocument = _AccountingDocument.AccountingDocument AND FiscalYear = _AccountingDocument.FiscalYear -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentType AS _AccountingDocumentType ON AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType -- association [0..1]
LEFT OUTER JOIN I_GLAccount AS _GLAccount ON GLAccount = _GLAccount.GLAccount AND CompanyCode = _GLAccount.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_OneTimeAccountBP AS _OneTimeAccountBP ON CompanyCode = _OneTimeAccountBP.CompanyCode AND AccountingDocument = _OneTimeAccountBP.AccountingDocument AND FiscalYear = _OneTimeAccountBP.FiscalYear AND AccountingDocumentItem = _OneTimeAccountBP.AccountingDocumentItem -- association [0..1]
LEFT OUTER JOIN I_OneTimeAccountBP AS _OneTimeDefTaxAccountBP ON CompanyCode = _OneTimeDefTaxAccountBP.CompanyCode AND DeferTaxReferenceDocument = _OneTimeDefTaxAccountBP.AccountingDocument AND DeferTaxReferenceFiscalYear = _OneTimeDefTaxAccountBP.FiscalYear AND DeferTaxReferenceDocumentItem = _OneTimeDefTaxAccountBP.AccountingDocumentItem -- association [0..1]
LEFT OUTER JOIN I_BillingDocument AS _BillingDocument ON ReferenceDocumentType = 'VBRK' AND OriginalReferenceDocument = _BillingDocument.BillingDocument -- association [0..1]
LEFT OUTER JOIN I_CFinBillingDocument AS _CFinBillingDocument ON OriginalReferenceDocument = _CFinBillingDocument.CentralFinanceBillingDocument AND ReferenceDocumentType = 'VBRK' AND SenderLogicalSystem = _CFinBillingDocument.SenderLogicalSystem -- association [0..1]
LEFT OUTER JOIN I_SupplierInvoice AS _SupplierInvoice ON ReferenceDocumentType = 'RMRP' AND ReferenceDocument = _SupplierInvoice.SupplierInvoice AND ReferenceDocumentContext = _SupplierInvoice.FiscalYear -- association [0..1]
LEFT OUTER JOIN I_CFinSupplierInvoice AS _CFinSupplierInvoice ON SenderLogicalSystem = _CFinSupplierInvoice.SenderLogicalSystem AND ReferenceDocumentType = 'RMRP' AND ReferenceDocument = _CFinSupplierInvoice.CentralFinanceSupplierInvoice AND ReferenceDocumentContext = _CFinSupplierInvoice.FiscalYear -- association [0..1]
LEFT OUTER JOIN I_TaxType AS _TaxType ON TaxType = _TaxType.TaxType -- association [0..1]
LEFT OUTER JOIN I_TaxJurisdiction AS _TaxJurisdiction ON TaxCalculationProcedure = _TaxJurisdiction.TaxJurisdictionCalcProcedure AND TaxJurisdiction = _TaxJurisdiction.TaxJurisdiction -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartnerUUID = _BusinessPartner.BusinessPartnerUUID -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Customer_to_BusinessPartner AS _CustomerToBusinessPartner ON Customer = _CustomerToBusinessPartner.Customer -- association [0..1]
LEFT OUTER JOIN I_Supplier_to_BusinessPartner AS _SupplierToBusinessPartner ON Supplier = _SupplierToBusinessPartner.Supplier -- association [0..1]
LEFT OUTER JOIN I_Country AS _CompanyCodeCountry ON CompanyCodeCountry = _CompanyCodeCountry.Country -- association [0..1]
LEFT OUTER JOIN I_Country AS _TaxReturnCountry ON TaxReturnCountry = _TaxReturnCountry.Country -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CountryCurrency ON CountryCurrency = _CountryCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_StRpJournalEntryLog AS _ReportedItemsLog ON _ReportedItemsLog.CompanyCode = CompanyCode AND _ReportedItemsLog.AccountingDocument = AccountingDocument AND _ReportedItemsLog.FiscalYear = FiscalYear -- association [0..*]
;
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