P_AR_StRpTaxJournalEntryItem
P_AR_StRpTaxJournalEntryItem is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_StRpJournalEntryHeaderLog, I_TaxItem) and exposes 13 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpJournalEntryHeaderLog | HeaderLog | inner |
| I_TaxItem | TaxItem | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_CompanyCode | fis_bukrs | |
| P_FiscalYear | fis_gjahr |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | |||
| KEY | AccountingDocument | I_TaxItem | AccountingDocument | Journal Entry |
| KEY | FiscalYear | I_TaxItem | FiscalYear | G/L Fiscal Year |
| KEY | TaxItem | I_TaxItem | TaxItem | Tax Item |
| TaxCode | ||||
| TransactionTypeDetermination | I_TaxItem | TransactionTypeDetermination | Transaction Key | |
| ConditionType | ||||
| ConditionTypeName | ConditionTypeText | ConditionTypeName | Name | |
| DebitCreditCode | I_TaxItem | DebitCreditCode | Single-Character Flag | |
| CompanyCodeCurrency | ||||
| TaxBaseAmountInCoCodeCrcy | I_TaxItem | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |
| TaxAmountInCoCodeCrcy | I_TaxItem | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |
| _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 P_AR_StRpTaxJournalEntryItem.
-- 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.
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_CompanyCode : fis_bukrs, P_FiscalYear : fis_gjahr
CREATE VIEW P_AR_StRpTaxJournalEntryItem AS
SELECT
cast( TaxItem.CompanyCode as fis_bukrs preserving type ) AS CompanyCode,
TaxItem.AccountingDocument AS AccountingDocument,
TaxItem.FiscalYear AS FiscalYear,
TaxItem.TaxItem AS TaxItem,
cast( TaxItem.TaxCode as fis_mwskz preserving type ) AS TaxCode,
TaxItem.TransactionTypeDetermination AS TransactionTypeDetermination,
cast( TaxItem.ConditionType as kschl preserving type ) AS ConditionType,
ConditionTypeText.ConditionTypeName AS ConditionTypeName,
TaxItem.DebitCreditCode AS DebitCreditCode,
cast( TaxItem.CompanyCodeCurrency as fis_waers preserving type ) AS CompanyCodeCurrency,
TaxItem.TaxBaseAmountInCoCodeCrcy AS TaxBaseAmountInCoCodeCrcy,
TaxItem.TaxAmountInCoCodeCrcy AS TaxAmountInCoCodeCrcy
FROM I_TaxItem AS TaxItem
INNER JOIN I_StRpJournalEntryHeaderLog AS HeaderLog ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [1..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