P_RO_StRpTaxItemLog
Tax Items log for Statutory Reporting
P_RO_StRpTaxItemLog is a Consumption CDS View that provides data about "Tax Items log for Statutory Reporting" in SAP S/4HANA. It reads from 2 data sources (I_StRpTaxReturnBoxCube, P_RO_CAStRpTaxItemLog) and exposes 196 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, StatryRptgEntity. It has 1 association to related views. Part of development package GLO_FIN_IS_VAT_RO.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaxReturnBoxCube | I_StRpTaxReturnBoxCube | from |
| P_RO_CAStRpTaxItemLog | P_RO_CAStRpTaxItemLog | union |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_OneTimeAccountBP | _OneTimeAccountBP001 | _OneTimeAccountBP001.CompanyCode = I_StRpTaxReturnBoxCube.CompanyCode and _OneTimeAccountBP001.AccountingDocument = I_StRpTaxReturnBoxCube.AccountingDocument and _OneTimeAccountBP001.FiscalYear = I_StRpTaxReturnBoxCube.FiscalYear and _OneTimeAccountBP001.AccountingDocumentItem = '001' |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PROSRTAXITEMLOG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Tax Items log for Statutory Reporting | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view |
Fields (196)
| 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 | |
| KEY | StatryRptgEntity | StatryRptgEntity | Reporting Entity | |
| KEY | StatryRptCategory | StatryRptCategory | Report ID | |
| KEY | StatryRptRunID | StatryRptRunID | Report Run ID | |
| KEY | CADocumentNumber | Document Number | ||
| KEY | TaxCode | TaxCode | Tax Code | |
| KEY | TransactionTypeDetermination | TransactionTypeDetermination | Transaction Key | |
| KEY | TaxBox | TaxBox | Tax.Bs.Gp.No. | |
| KEY | TaxDeclnAmountType | TaxDeclnAmountType | ||
| KEY | TaxBoxStrucValidityStartDate | TaxBoxStrucValidityStartDate | ||
| KEY | TaxItemGroupingVersion | TaxItemGroupingVersion | Tax Grping Ver. | |
| KEY | TaxBoxStructureType | TaxBoxStructureType | ||
| RO_DocumentOrigin | ||||
| FinancialAccountType | _DebtorCreditorRblsPyblsItem | FinancialAccountType | Fin. Account Type | |
| TaxBoxStructure | TaxBoxStructure | |||
| TaxBoxStructureName | TaxBoxStructureName | |||
| TaxBoxName | TaxBoxName | |||
| TaxBoxCondition | TaxBoxCondition | |||
| TaxGroup | TaxGroup | Tax Group | ||
| SupplierAccountGroup | SupplierAccountGroup | Account group | ||
| TaxBoxAggregationOperation | TaxBoxAggregationOperation | |||
| TaxGroupOperation | TaxGroupOperation | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| TaxItemGroup | TaxItemGroup | Tax doc. item number | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| OriginalFiscalPeriod | OriginalFiscalPeriod | |||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| CompanyCodeCountry | CompanyCodeCountry | Reporting Ctry/Reg. | ||
| ReportingCountry | ReportingCountry | |||
| TaxReturnCountry | TaxReturnCountry | Reporting C/R | ||
| TaxCountry | TaxCountry | Tax Ctry/Reg. | ||
| OneTimeCountry | _OneTimeAccountBP001 | Country | ||
| ReportingDate | ReportingDate | |||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| TaxRate | TaxRate | Tax Rate | ||
| GLAccount | GLAccount | General Ledger | ||
| BusinessPlace | BusinessPlace | Business place | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| LowestLevelTaxJurisdiction | LowestLevelTaxJurisdiction | Jurisdict. Code | ||
| TaxCalculationProcedure | TaxCalculationProcedure | Tax Procedure | ||
| TargetTaxCode | TargetTaxCode | |||
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| TaxNumber2 | TaxNumber2 | Tax Number 2 | ||
| TaxNumber3 | TaxNumber3 | |||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| Supplier | _DebtorCreditorRblsPyblsItem | Supplier | Supplier | |
| Customer | _DebtorCreditorRblsPyblsItem | Customer | Sold-to Party | |
| CustomerSupplierAddress | CustomerSupplierAddress | |||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| ReverseDocument | ReverseDocument | Reversed With | ||
| ReverseDocumentFiscalYear | ReverseDocumentFiscalYear | Year | ||
| Ledger | Ledger | Ledger | ||
| LedgerGroup | LedgerGroup | Ledger Group | ||
| IsReversal | IsReversal | Reversal doc. | ||
| IsReversed | IsReversed | Reversed? | ||
| CAReversalDocumentNumber | Revers.document | |||
| TaxBaseAmountInCountryCrcy | TaxBaseAmountInCountryCrcy | Base Amount | ||
| TaxAmountInCountryCrcy | TaxAmountInCountryCrcy | Tax Rept. Crcy | ||
| ConditionType | ConditionType | Condition type | ||
| TaxType | TaxType | Tax Type | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| CountryCurrency | CountryCurrency | Currency | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ReportingCurrency | ReportingCurrency | Currency | ||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| AmountInReportingCurrency | AmountInReportingCurrency | |||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | ||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | ||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | Value-Added Tax | ||
| TaxAmount | TaxAmount | Tax Amt in Rptg Crcy | ||
| TaxBaseAmountInRptgCrcy | TaxBaseAmountInRptgCrcy | Base Amount | ||
| TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | Tax Rept. Crcy | ||
| AmountInAdditionalCurrency1 | AmountInAdditionalCurrency1 | Amount in Additional Currency 1 | ||
| AmountInAdditionalCurrency2 | AmountInAdditionalCurrency2 | LC2 Amount | ||
| TaxBaseAmtInAdditionalCrcy1 | TaxBaseAmtInAdditionalCrcy1 | LC 2 Base | ||
| TaxBaseAmtInAdditionalCrcy2 | TaxBaseAmtInAdditionalCrcy2 | LC 3 Base | ||
| TaxAmountInAdditionalCurrency1 | TaxAmountInAdditionalCurrency1 | LC 2 Tax | ||
| TaxAmountInAdditionalCurrency2 | TaxAmountInAdditionalCurrency2 | LC 3 Tax | ||
| TaxIsNotDeductible | TaxIsNotDeductible | Non-Deductible | ||
| RPItemVATRegistrationCountry | ||||
| TaxGroupFreeClassification | TaxGroupFreeClassification | |||
| _AccountingDocument | _AccountingDocument | |||
| _DebtorCreditorRblsPyblsItem | _DebtorCreditorRblsPyblsItem | |||
| _TaxTypeText | _TaxTypeText | |||
| _TaxCodeText | _TaxCodeText | |||
| _OneTimeAccountBP | _OneTimeAccountBP | |||
| P_StatryRptgEntity | ||||
| P_StatryRptCategory | ||||
| AccountingDocumentItem001keyCompanyCode | ||||
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | TaxItem | TaxItem | Tax Item | |
| KEY | StatryRptgEntity | StatryRptgEntity | Reporting Entity | |
| KEY | StatryRptCategory | StatryRptCategory | Report ID | |
| KEY | StatryRptRunID | StatryRptRunID | Report Run ID | |
| KEY | CADocumentNumber | CADocumentNumber | Document Number | |
| KEY | TaxCode | TaxCode | Tax Code | |
| KEY | TransactionTypeDetermination | TransactionTypeDetermination | Transaction Key | |
| KEY | TaxBox | TaxBox | Tax.Bs.Gp.No. | |
| KEY | TaxDeclnAmountType | TaxDeclnAmountType | ||
| KEY | TaxBoxStrucValidityStartDate | TaxBoxStrucValidityStartDate | ||
| KEY | TaxItemGroupingVersion | TaxItemGroupingVersion | Tax Grping Ver. | |
| KEY | TaxBoxStructureType | TaxBoxStructureType | ||
| RO_DocumentOrigin | ||||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| TaxBoxStructure | TaxBoxStructure | |||
| TaxBoxStructureName | TaxBoxStructureName | |||
| TaxBoxName | TaxBoxName | |||
| TaxBoxCondition | TaxBoxCondition | |||
| TaxGroup | TaxGroup | Tax Group | ||
| SupplierAccountGroup | SupplierAccountGroup | Account group | ||
| TaxBoxAggregationOperation | TaxBoxAggregationOperation | |||
| TaxGroupOperation | TaxGroupOperation | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| TaxItemGroup | TaxItemGroup | Tax doc. item number | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| OriginalFiscalPeriod | OriginalFiscalPeriod | |||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| CompanyCodeCountry | CompanyCodeCountry | Reporting Ctry/Reg. | ||
| ReportingCountry | ReportingCountry | |||
| TaxReturnCountry | TaxReturnCountry | Reporting C/R | ||
| TaxCountry | TaxCountry | Tax Ctry/Reg. | ||
| OneTimeCountry | OneTimeCountry | |||
| ReportingDate | ReportingDate | |||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| TaxRate | TaxRate | Tax Rate | ||
| GLAccount | GLAccount | General Ledger | ||
| BusinessPlace | BusinessPlace | Business place | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| LowestLevelTaxJurisdiction | LowestLevelTaxJurisdiction | Jurisdict. Code | ||
| TaxCalculationProcedure | TaxCalculationProcedure | Tax Procedure | ||
| TargetTaxCode | TargetTaxCode | |||
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| TaxNumber2 | TaxNumber2 | Tax Number 2 | ||
| TaxNumber3 | TaxNumber3 | |||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| CustomerSupplierAddress | CustomerSupplierAddress | |||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| ReverseDocument | ReverseDocument | Reversed With | ||
| ReverseDocumentFiscalYear | ReverseDocumentFiscalYear | Year | ||
| Ledger | Ledger | Ledger | ||
| LedgerGroup | LedgerGroup | Ledger Group | ||
| IsReversal | IsReversal | Reversal doc. | ||
| IsReversed | IsReversed | Reversed? | ||
| CAReversalDocumentNumber | CAReversalDocumentNumber | Revers.document | ||
| TaxBaseAmountInCountryCrcy | TaxBaseAmountInCountryCrcy | Base Amount | ||
| TaxAmountInCountryCrcy | TaxAmountInCountryCrcy | Tax Rept. Crcy | ||
| ConditionType | ConditionType | Condition type | ||
| TaxType | TaxType | Tax Type | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| CountryCurrency | CountryCurrency | Currency | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ReportingCurrency | ReportingCurrency | Currency | ||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| AmountInReportingCurrency | AmountInReportingCurrency | |||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | ||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | ||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | Value-Added Tax | ||
| TaxAmount | TaxAmount | Tax Amt in Rptg Crcy | ||
| TaxBaseAmountInRptgCrcy | TaxBaseAmountInRptgCrcy | Base Amount | ||
| TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | Tax Rept. Crcy | ||
| AmountInAdditionalCurrency1 | AmountInAdditionalCurrency1 | Amount in Additional Currency 1 | ||
| AmountInAdditionalCurrency2 | AmountInAdditionalCurrency2 | LC2 Amount | ||
| TaxBaseAmtInAdditionalCrcy1 | TaxBaseAmtInAdditionalCrcy1 | LC 2 Base | ||
| TaxBaseAmtInAdditionalCrcy2 | TaxBaseAmtInAdditionalCrcy2 | LC 3 Base | ||
| TaxAmountInAdditionalCurrency1 | TaxAmountInAdditionalCurrency1 | LC 2 Tax | ||
| TaxAmountInAdditionalCurrency2 | TaxAmountInAdditionalCurrency2 | LC 3 Tax | ||
| TaxIsNotDeductible | TaxIsNotDeductible | Non-Deductible | ||
| RPItemVATRegistrationCountry | RPItemVATRegistrationCountry | |||
| TaxGroupFreeClassification | TaxGroupFreeClassification | |||
| _AccountingDocument | _AccountingDocument | |||
| _DebtorCreditorRblsPyblsItem | _DebtorCreditorRblsPyblsItem | |||
| _TaxTypeText | _TaxTypeText | |||
| _TaxCodeText | _TaxCodeText | |||
| _OneTimeAccountBP | _OneTimeAccountBP | |||
| _OneTimeAccountBP001 | _OneTimeAccountBP001 |
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_RO_StRpTaxItemLog.
-- 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: PROSRTAXITEMLOG
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id
CREATE VIEW P_RO_StRpTaxItemLog AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
TaxItem,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
cast( '' as opbel_kk) AS CADocumentNumber,
TaxCode,
TransactionTypeDetermination,
TaxBox,
TaxDeclnAmountType,
TaxBoxStrucValidityStartDate,
TaxItemGroupingVersion,
TaxBoxStructureType,
cast('FI' as firo_dspl_document_origin ) AS RO_DocumentOrigin,
_DebtorCreditorRblsPyblsItem.FinancialAccountType AS FinancialAccountType,
TaxBoxStructure,
TaxBoxStructureName,
TaxBoxName,
TaxBoxCondition,
TaxGroup,
SupplierAccountGroup,
TaxBoxAggregationOperation,
TaxGroupOperation,
PostingDate,
DocumentDate,
TaxReportingDate,
TaxItemGroup,
FiscalPeriod,
OriginalFiscalPeriod,
AccountingDocumentType,
AccountingDocumentHeaderText,
DocumentReferenceID,
CompanyCodeCountry,
ReportingCountry,
TaxReturnCountry,
TaxCountry,
_OneTimeAccountBP001.Country AS OneTimeCountry,
ReportingDate,
ExchangeRate,
TaxRate,
GLAccount,
BusinessPlace,
TaxJurisdiction,
LowestLevelTaxJurisdiction,
TaxCalculationProcedure,
TargetTaxCode,
TaxNumber1,
TaxNumber2,
TaxNumber3,
BusinessPartner,
_DebtorCreditorRblsPyblsItem.Supplier AS Supplier,
_DebtorCreditorRblsPyblsItem.Customer AS Customer,
CustomerSupplierAddress,
DebitCreditCode,
ReferenceDocumentType,
ReverseDocument,
ReverseDocumentFiscalYear,
Ledger,
LedgerGroup,
IsReversal,
IsReversed,
cast( '' as storb_gfn_kk ) AS CAReversalDocumentNumber,
TaxBaseAmountInCountryCrcy,
TaxAmountInCountryCrcy,
ConditionType,
TaxType,
CompanyCodeCurrency,
CountryCurrency,
DocumentCurrency,
ReportingCurrency,
AdditionalCurrency1,
AdditionalCurrency2,
AmountInReportingCurrency,
AmountInTransactionCurrency,
TaxBaseAmountInCoCodeCrcy,
TaxAmountInCoCodeCrcy,
TaxBaseAmountInTransCrcy,
TaxAmount,
TaxBaseAmountInRptgCrcy,
TaxAmountInRptgCrcy,
AmountInAdditionalCurrency1,
AmountInAdditionalCurrency2,
TaxBaseAmtInAdditionalCrcy1,
TaxBaseAmtInAdditionalCrcy2,
TaxAmountInAdditionalCurrency1,
TaxAmountInAdditionalCurrency2,
TaxIsNotDeductible,
substring(_DebtorCreditorRblsPyblsItem.VATRegistration, 1, 2) AS RPItemVATRegistrationCountry,
TaxGroupFreeClassification,
P_StatryRptCategory : $parameters.P_StatryRptCategory AS P_StatryRptCategory,
BusinessPartnerName
FROM I_StRpTaxReturnBoxCube
LEFT OUTER JOIN I_OneTimeAccountBP AS _OneTimeAccountBP001 ON _OneTimeAccountBP001.CompanyCode = I_StRpTaxReturnBoxCube.CompanyCode AND _OneTimeAccountBP001.AccountingDocument = I_StRpTaxReturnBoxCube.AccountingDocument AND _OneTimeAccountBP001.FiscalYear = I_StRpTaxReturnBoxCube.FiscalYear AND _OneTimeAccountBP001.AccountingDocumentItem = '001' -- association [0..1]
-- UNION with additional select branch(es): P_RO_CAStRpTaxItemLog
;
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