C_FR_TaxReturnBoxCube
ATR enabled Tax Items for France Cube
C_FR_TaxReturnBoxCube is a Consumption CDS View (Cube) that provides data about "ATR enabled Tax Items for France Cube" in SAP S/4HANA. It reads from 1 data source (I_StRpTaxReturnBoxCube) and exposes 65 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TransactionTypeDetermination.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaxReturnBoxCube | I_StRpTaxReturnBoxCube | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_ReportingCountry | land1 |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFRTAXRETURNBOXC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | ATR enabled Tax Items for France Cube | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| KEY | AccountingDocument | AccountingDocument | ||
| KEY | FiscalYear | FiscalYear | ||
| KEY | TaxItem | TaxItem | ||
| KEY | TransactionTypeDetermination | TransactionTypeDetermination | ||
| KEY | TaxBox | TaxBox | ||
| KEY | AccountingDocumentType | AccountingDocumentType | ||
| KEY | SupplierAccountGroup | SupplierAccountGroup | ||
| KEY | DebitCreditCode | DebitCreditCode | ||
| KEY | TaxDeclnAmountType | TaxDeclnAmountType | ||
| KEY | ValidityStartDate | TaxBoxStrucValidityStartDate | ||
| KEY | TaxGroup | TaxGroup | ||
| KEY | TaxItemGrpgDebitCreditCode | TaxItemGrpgDebitCreditCode | ||
| KEY | TaxItemGrpgAcctgDocumentType | TaxItemGrpgAcctgDocumentType | ||
| KEY | TaxItemGrpgSupplierAcctGroup | TaxItemGrpgSupplierAcctGroup | ||
| KEY | TaxItemGrpgSpecialGLCode | TaxItemGrpgSpecialGLCode | ||
| KEY | StatryRptgEntity | StatryRptgEntity | ||
| KEY | StatryRptCategory | StatryRptCategory | ||
| KEY | StatryRptRunID | StatryRptRunID | ||
| TaxCode | TaxCode | |||
| Country | I_StRpTaxReturnBoxCube | Country | ||
| ValidityEndDate | TaxBoxStrucValidityEndDate | |||
| TaxBoxName | TaxBoxName | |||
| TaxItemGroupingVersion | I_StRpTaxReturnBoxCube | TaxItemGroupingVersion | ||
| TaxBoxStructureType | TaxBoxStructureType | |||
| TaxBoxStructure | TaxBoxStructure | |||
| TaxBoxStructureName | TaxBoxStructureName | |||
| TaxBoxCondition | TaxBoxCondition | |||
| TaxCountry | TaxCountry | |||
| TaxCalculationProcedure | TaxCalculationProcedure | |||
| TaxRate | TaxRate | |||
| TaxRateValidityStartDate | TaxRateValidityStartDate | |||
| GLAccount | GLAccount | |||
| TaxItemGroup | TaxItemGroup | |||
| ReferenceDocumentType | ReferenceDocumentType | |||
| PostingDate | PostingDate | |||
| DocumentDate | DocumentDate | |||
| TaxReportingDate | TaxReportingDate | |||
| ReportingDate | ReportingDate | |||
| TaxType | TaxType | |||
| FiscalPeriod | FiscalPeriod | |||
| ExchangeRate | ExchangeRate | |||
| CompanyCodeCountry | CompanyCodeCountry | |||
| ReportingCountry | ReportingCountry | |||
| TaxReturnCountry | TaxReturnCountry | |||
| TaxTypeName | TaxTypeName | |||
| CompanyCodeCurrency | CompanyCodeCurrency | |||
| DocumentCurrency | DocumentCurrency | |||
| ReportingCurrency | ReportingCurrency | |||
| AdditionalCurrency1 | AdditionalCurrency1 | |||
| AdditionalCurrency2 | AdditionalCurrency2 | |||
| AmountInReportingCurrency | AmountInReportingCurrency | |||
| AmountInTransactionCurrency | AmountInTransactionCurrency | |||
| TaxBaseAmountInRptgCrcy | TaxBaseAmountInRptgCrcy | |||
| TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | |||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | |||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | |||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | |||
| TaxAmount | TaxAmount | |||
| NonDeductibleInputTaxAmount | NonDeductibleInputTaxAmount | |||
| TargetTaxCode | TargetTaxCode | |||
| CAReconciliationKey | CAReconciliationKey | |||
| StatryRptRun | StatryRptRun | |||
| TaxIsNotDeductible | TaxIsNotDeductible | |||
| _TaxTypeText | _TaxTypeText |
@AbapCatalog.sqlViewName: 'CFRTAXRETURNBOXC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'ATR enabled Tax Items for France Cube'
@VDM.viewType: #CONSUMPTION
@Analytics: { dataCategory: #CUBE }
@Analytics.internalName: #LOCAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #MIXED
@Metadata.allowExtensions: true
@AccessControl.personalData.blocking: #NOT_REQUIRED
define view C_FR_TaxReturnBoxCube
with parameters
P_StatryRptgEntity : srf_reporting_entity,
P_StatryRptCategory : srf_rep_cat_id,
P_StatryRptRunID : srf_report_run_id,
P_ReportingCountry : land1
as select from I_StRpTaxReturnBoxCube(
P_TaxIsDeferredRelevant: 'N',
P_TaxIsMossRelevant : 'N',
P_StatryRptgEntity : $parameters.P_StatryRptgEntity ,
P_StatryRptCategory : $parameters.P_StatryRptCategory,
P_StatryRptRunID : $parameters.P_StatryRptRunID,
P_ReportingCountry : $parameters.P_ReportingCountry,
P_TaxBoxConfiguration : '1'
)
left outer to many join I_TaxGroup on I_StRpTaxReturnBoxCube.Country = I_TaxGroup.Country
and I_StRpTaxReturnBoxCube.TaxItemGroupingVersion = I_TaxGroup.TaxItemGroupingVersion
and I_StRpTaxReturnBoxCube.TaxItemGroupingVersion <> ' '
and I_StRpTaxReturnBoxCube.TaxBox = I_TaxGroup.TaxBalancesGrp
left outer to one join P_T007B_GLO as TransactionType on I_StRpTaxReturnBoxCube.TransactionTypeDetermination = TransactionType.ktosl
{
key CompanyCode,
key AccountingDocument,
key FiscalYear,
key TaxItem,
key TransactionTypeDetermination,
key TaxBox,
key AccountingDocumentType,
key SupplierAccountGroup,
key DebitCreditCode,
key TaxDeclnAmountType,
key TaxBoxStrucValidityStartDate as ValidityStartDate,
key case
when UnifiedTaxBoxStructureType = ' '
then 'CA3'
else UnifiedTaxBoxStructureType
end as UnifiedTaxBoxStructureType,
key TaxGroup,
key TaxItemGrpgDebitCreditCode,
key TaxItemGrpgAcctgDocumentType,
key TaxItemGrpgSupplierAcctGroup,
key TaxItemGrpgSpecialGLCode,
key StatryRptgEntity,
key StatryRptCategory,
key StatryRptRunID,
key
cast(
case
when UnifiedTaxBoxStructureType = '' and I_TaxGroup.TaxGroupExternalID is not null
and I_TaxGroup.TaxGroupExternalID <> ''
then I_TaxGroup.TaxGroupExternalID
else TaxBox
end as fi_exttaxbox preserving type) as TaxBoxByTaxAuthority,
TaxCode,
I_StRpTaxReturnBoxCube.Country,
TaxBoxStrucValidityEndDate as ValidityEndDate,
TaxBoxName,
I_StRpTaxReturnBoxCube.TaxItemGroupingVersion,
TaxBoxStructureType,
TaxBoxStructure,
TaxBoxStructureName,
TaxBoxCondition,
TaxCountry,
TaxCalculationProcedure,
@DefaultAggregation:#MIN
TaxRate,
TaxRateValidityStartDate,
GLAccount,
TaxItemGroup,
ReferenceDocumentType,
PostingDate,
DocumentDate,
TaxReportingDate,
ReportingDate,
TaxType,
FiscalPeriod,
@DefaultAggregation:#MIN
ExchangeRate,
CompanyCodeCountry,
ReportingCountry,
TaxReturnCountry,
TaxTypeName,
@Semantics.currencyCode:true
CompanyCodeCurrency,
@Semantics.currencyCode:true
DocumentCurrency,
@Semantics.currencyCode:true
ReportingCurrency,
@Semantics.currencyCode:true
AdditionalCurrency1,
@Semantics.currencyCode:true
AdditionalCurrency2,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
AmountInReportingCurrency,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
AmountInTransactionCurrency,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
TaxBaseAmountInRptgCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
TaxAmountInRptgCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
TaxBaseAmountInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
TaxAmountInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
TaxBaseAmountInTransCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
TaxAmount,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
NonDeductibleInputTaxAmount,
TargetTaxCode,
CAReconciliationKey,
StatryRptRun,
TaxIsNotDeductible,
// Add new columns for reporting currency
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
case TaxDeclnAmountType
when 'B'
then AmountInReportingCurrency
end as CalculatedTaxBaseAmtInRptgCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
case TaxDeclnAmountType
when 'T'
then AmountInReportingCurrency
end as CalculatedTaxAmountInRptgCrcy,
// To determine the tax type
case TransactionType.stgrp
when '1' then 'A'
when '2' then 'V'
else TaxType
end as DerivedTaxType,
_TaxTypeText
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_STRPTAXRETURNBOXCUBE",
"I_TAXGROUP",
"P_T007B_GLO"
],
"ASSOCIATED":
[
"I_TAXTYPETEXT"
],
"BASE":
[
"I_STRPTAXRETURNBOXCUBE"
],
"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