P_HR_StRpTaxReturnPeriodDetail
Croatia Tax return period detail
P_HR_StRpTaxReturnPeriodDetail is a Composite CDS View that provides data about "Croatia Tax return period detail" in SAP S/4HANA. It reads from 1 data source (I_StRpTaxReturnBoxCube) and exposes 19 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, StatryRptgEntity. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaxReturnBoxCube | I_StRpTaxReturnBoxCube | from |
Parameters (9)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_ReportingCountry | land1 | |
| P_FromReportingDate | fis_period_date_from | |
| P_ToReportingDate | fis_period_date_to | |
| P_TaxIsDeferredRelevant | figen_deferred_check | |
| P_TaxIsMossRelevant | figen_moss_check | |
| P_TaxBoxConfiguration | figen_tdt_taxbox_config |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_OperationalAcctgDocItem | _CustomerLineItem | _CustomerLineItem.CompanyCode = $projection.CompanyCode and _CustomerLineItem.AccountingDocument = $projection.AccountingDocument and _CustomerLineItem.FiscalYear = $projection.FiscalYear and _CustomerLineItem.AccountingDocumentItem = $projection.TaxItem and _CustomerLineItem.Customer = $projection.Customer and ( _CustomerLineItem.FinancialAccountType = 'D' or _CustomerLineItem.FinancialAccountType = 'K' ) |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Croatia Tax return period detail | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | TaxReturn | CompanyCode | |
| KEY | AccountingDocument | TaxReturn | AccountingDocument | |
| KEY | FiscalYear | TaxReturn | FiscalYear | |
| KEY | TaxItem | TaxReturn | TaxItem | |
| KEY | StatryRptgEntity | TaxReturn | StatryRptgEntity | |
| KEY | StatryRptCategory | TaxReturn | StatryRptCategory | |
| KEY | StatryRptRunID | TaxReturn | StatryRptRunID | |
| KEY | TransactionTypeDetermination | TaxReturn | TransactionTypeDetermination | |
| KEY | TaxCode | TaxReturn | TaxCode | |
| KEY | TaxBoxStrucValidityStartDate | TaxReturn | TaxBoxStrucValidityStartDate | |
| TaxBoxStrucValidityEndDate | TaxReturn | TaxBoxStrucValidityEndDate | ||
| ReportingDate | TaxReturn | ReportingDate | ||
| Customer | TaxReturn | Customer | ||
| UnifiedTaxBoxStructureType | TaxReturn | UnifiedTaxBoxStructureType | ||
| TaxBoxStructureType | TaxReturn | TaxBoxStructureType | ||
| TaxBox | TaxReturn | TaxBox | ||
| ReportingCountry | TaxReturn | ReportingCountry | ||
| ReportingCurrency | TaxReturn | ReportingCurrency | ||
| AmountInReportingCurrency | TaxReturn | AmountInReportingCurrency |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@VDM.private:true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType:{
serviceQuality: #D,
sizeCategory: #XL,
dataClass: #MIXED
}
@EndUserText.label: 'Croatia Tax return period detail'
define view entity P_HR_StRpTaxReturnPeriodDetail
with parameters
P_StatryRptgEntity : srf_reporting_entity,
P_StatryRptCategory : srf_rep_cat_id,
P_StatryRptRunID : srf_report_run_id,
P_ReportingCountry : land1,
P_FromReportingDate : fis_period_date_from,
P_ToReportingDate : fis_period_date_to,
P_TaxIsDeferredRelevant : figen_deferred_check,
P_TaxIsMossRelevant : figen_moss_check,
P_TaxBoxConfiguration : figen_tdt_taxbox_config
as select from I_StRpTaxReturnBoxCube( P_TaxIsDeferredRelevant : $parameters.P_TaxIsDeferredRelevant,
P_TaxIsMossRelevant : $parameters.P_TaxIsMossRelevant,
P_StatryRptgEntity : $parameters.P_StatryRptgEntity ,
P_StatryRptCategory : $parameters.P_StatryRptCategory,
P_StatryRptRunID : $parameters.P_StatryRptRunID,
P_ReportingCountry : $parameters.P_ReportingCountry,
P_TaxBoxConfiguration : $parameters.P_TaxBoxConfiguration) as TaxReturn
association [0..1] to I_OperationalAcctgDocItem as _CustomerLineItem on _CustomerLineItem.CompanyCode = $projection.CompanyCode
and _CustomerLineItem.AccountingDocument = $projection.AccountingDocument
and _CustomerLineItem.FiscalYear = $projection.FiscalYear
and _CustomerLineItem.AccountingDocumentItem = $projection.TaxItem
and _CustomerLineItem.Customer = $projection.Customer
and (
_CustomerLineItem.FinancialAccountType = 'D'
or _CustomerLineItem.FinancialAccountType = 'K'
)
{
key TaxReturn.CompanyCode,
key TaxReturn.AccountingDocument,
key TaxReturn.FiscalYear,
key TaxReturn.TaxItem,
key TaxReturn.StatryRptgEntity,
key TaxReturn.StatryRptCategory,
key TaxReturn.StatryRptRunID,
key TaxReturn.TransactionTypeDetermination,
key TaxReturn.TaxCode,
key TaxReturn.TaxBoxStrucValidityStartDate,
TaxReturn.TaxBoxStrucValidityEndDate,
TaxReturn.ReportingDate,
TaxReturn.Customer,
TaxReturn.UnifiedTaxBoxStructureType,
TaxReturn.TaxBoxStructureType,
TaxReturn.TaxBox,
cast( ( case when TaxReturn.TaxNumber2 <> '' then TaxReturn.TaxNumber2
when _CustomerLineItem.VATRegistration is not null and _CustomerLineItem.VATRegistration <> '' then lpad( (substring( _CustomerLineItem.VATRegistration , 3, 18) ), 11, '0' )
when TaxReturn.TaxNumber2 is null and _CustomerLineItem.VATRegistration is null then '' end ) as fiisvat_vatreg_without_prefix ) as VATRegistrationWithoutPrefix,
TaxReturn.ReportingCountry,
TaxReturn.ReportingCurrency,
@Semantics.amount.currencyCode: 'ReportingCurrency'
TaxReturn.AmountInReportingCurrency
}
where
TaxReturn.TaxBoxStrucValidityStartDate <= $parameters.P_ToReportingDate
and TaxReturn.TaxBoxStrucValidityEndDate >= $parameters.P_FromReportingDate
and TaxReturn.StatryRptgEntity = $parameters.P_StatryRptgEntity
and TaxReturn.StatryRptCategory = $parameters.P_StatryRptCategory
and TaxReturn.StatryRptRunID = $parameters.P_StatryRptRunID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_OPERATIONALACCTGDOCITEM",
"I_STRPTAXRETURNBOXCUBE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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