P_CZ_StRpRptdTxItmWithEUTxClfn
Previously Reported Tax Items - Corr.
P_CZ_StRpRptdTxItmWithEUTxClfn is a Consumption CDS View that provides data about "Previously Reported Tax Items - Corr." in SAP S/4HANA. It reads from 4 data sources (I_CAStRpJournalEntryLog, I_StRpJournalEntryLog, I_StRpRepRun, I_StRpRepRun) and exposes 7 fields with key fields CompanyCode, AccountingDocument, FiscalYear, CompanyCode, AccountingDocument. Part of development package GLO_FIN_IS_ECSL_CZ.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_CAStRpJournalEntryLog | I_CAStRpJournalEntryLog | left_outer |
| I_StRpJournalEntryLog | I_StRpJournalEntryLog | left_outer |
| I_StRpRepRun | PrevAccRuns | left_outer |
| I_StRpRepRun | PrevAccRuns | left_outer |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSRCZRPTDTXITMS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Previously Reported Tax Items - Corr. | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_StRpJournalEntryLog | CompanyCode | |
| KEY | AccountingDocument | I_StRpJournalEntryLog | AccountingDocument | |
| KEY | FiscalYear | I_StRpJournalEntryLog | FiscalYear | |
| KEY | CompanyCode | |||
| KEY | AccountingDocument | |||
| KEY | FiscalYear | |||
| KEY | CADocument | I_CAStRpJournalEntryLog | CADocument |
@AbapCatalog.sqlViewName: 'PSRCZRPTDTXITMS'
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Previously Reported Tax Items - Corr.'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@AccessControl.personalData.blocking: #BLOCKED_DATA_INCLUDED
define view P_CZ_StRpRptdTxItmWithEUTxClfn
with parameters
P_StatryRptgEntity : srf_reporting_entity,
P_StatryRptCategory : srf_rep_cat_id,
P_StatryRptRunID : srf_report_run_id
//P_PeriodStartDate : datum,
//P_PeriodEndDate : datum
as select distinct from I_StRpRepRun as CurrRun
left outer join I_StRpRepRun as PrevAccRuns on CurrRun.StatryRptgEntity = PrevAccRuns.StatryRptgEntity
and CurrRun.StatryRptCategory = PrevAccRuns.StatryRptCategory
and CurrRun.StatryRptTaskUUID = PrevAccRuns.StatryRptTaskUUID
and PrevAccRuns.StatryRptRunStatus = 'SOK'
and PrevAccRuns.StatryRptRunID < CurrRun.StatryRptRunID
// FI DRC log tables
left outer join I_StRpJournalEntryLog on PrevAccRuns.StatryRptgEntity = I_StRpJournalEntryLog.StatryRptgEntity
and PrevAccRuns.StatryRptCategory = I_StRpJournalEntryLog.StatryRptCategory
and PrevAccRuns.StatryRptRunID = I_StRpJournalEntryLog.StatryRptRunID
{
key I_StRpJournalEntryLog.CompanyCode,
key I_StRpJournalEntryLog.AccountingDocument,
key I_StRpJournalEntryLog.FiscalYear,
key cast( '' as opbel_ca_kk ) as CADocument
}
where
CurrRun.StatryRptgEntity = $parameters.P_StatryRptgEntity
and CurrRun.StatryRptCategory = $parameters.P_StatryRptCategory
and CurrRun.StatryRptRunID = $parameters.P_StatryRptRunID
union all select distinct from I_StRpRepRun as CurrRun
left outer join I_StRpRepRun as PrevAccRuns on CurrRun.StatryRptgEntity = PrevAccRuns.StatryRptgEntity
and CurrRun.StatryRptCategory = PrevAccRuns.StatryRptCategory
and CurrRun.StatryRptTaskUUID = PrevAccRuns.StatryRptTaskUUID
and PrevAccRuns.StatryRptRunStatus = 'SOK'
and PrevAccRuns.StatryRptRunID < CurrRun.StatryRptRunID
// FI-CA DRC log table
left outer join I_CAStRpJournalEntryLog on PrevAccRuns.StatryRptgEntity = I_CAStRpJournalEntryLog.StatryRptgEntity
and PrevAccRuns.StatryRptCategory = I_CAStRpJournalEntryLog.StatryRptCategory
and PrevAccRuns.StatryRptRunID = I_CAStRpJournalEntryLog.StatryRptRunID
{
key I_CAStRpJournalEntryLog.CompanyCode,
key cast('' as belnr_d ) as AccountingDocument,
key cast('' as fis_gjahr_no_conv ) as FiscalYear,
// key I_CAStRpJournalEntryLog.CADocument
key I_CAStRpJournalEntryLog.CADocument
}
where
CurrRun.StatryRptgEntity = $parameters.P_StatryRptgEntity
and CurrRun.StatryRptCategory = $parameters.P_StatryRptCategory
and CurrRun.StatryRptRunID = $parameters.P_StatryRptRunID
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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