C_LU_TaxReturnBoxCube
Tax Items for Luxembourg Cube
C_LU_TaxReturnBoxCube is a Consumption CDS View (Cube) that provides data about "Tax Items for Luxembourg Cube" in SAP S/4HANA. It reads from 1 data source (I_StRpTaxReturnBoxCube) and exposes 64 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 | CLUTAXRETURNBOXC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Tax Items for Luxembourg 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 | #BLOCKED_DATA_INCLUDED | view |
Fields (64)
| 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 | 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 | ||
| 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 | |||
| 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 | |||
| TaxIsNotDeductible | TaxIsNotDeductible | |||
| TransactionTaxType | TransactionType | stgrp | ||
| _TaxTypeText | _TaxTypeText |
@AbapCatalog.sqlViewName: 'CLUTAXRETURNBOXC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Tax Items for Luxembourg 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: #BLOCKED_DATA_INCLUDED
define view C_LU_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 P_LU_TimeDependentVersAssgmt on
P_LU_TimeDependentVersAssgmt.Country = 'LU' and
P_LU_TimeDependentVersAssgmt.TaxItemGroupingVersion = I_StRpTaxReturnBoxCube.TaxItemGroupingVersion
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 cast( coalesce (P_LU_TimeDependentVersAssgmt.TaxGroupingVersionFromDate, TaxBoxStrucValidityStartDate) as fot_atr_tbs_valid_from ) as TaxBoxStrucValidityStartDate ,
key
cast( case
when UnifiedTaxBoxStructureType = ''
then 'TVA_P' // Periodic VAT Return
else
case
when P_LU_TimeDependentVersAssgmt.TaxGroupingVersionFromDate is null
then UnifiedTaxBoxStructureType
else 'TVA_A' // Annual VAT Return
end
end as figen_unified_tbox_struct_type ) as UnifiedTaxBoxStructureType,
key TaxGroup,
key TaxItemGrpgDebitCreditCode,
key TaxItemGrpgAcctgDocumentType,
key TaxItemGrpgSupplierAcctGroup,
key TaxItemGrpgSpecialGLCode,
key StatryRptgEntity,
key StatryRptCategory,
key StatryRptRunID,
TaxCode,
I_StRpTaxReturnBoxCube.Country,
cast( coalesce (P_LU_TimeDependentVersAssgmt.TaxGroupingVersionToDate, TaxBoxStrucValidityEndDate) as fot_atr_tbs_valid_to ) as TaxBoxStrucValidityEndDate,
TaxBoxName,
I_StRpTaxReturnBoxCube.TaxItemGroupingVersion,
TaxBoxStructureType,
TaxBoxStructure,
TaxBoxStructureName,
TaxBoxCondition,
TaxCountry,
TaxCalculationProcedure,
@DefaultAggregation:#MIN
TaxRate,
TaxRateValidityStartDate,
GLAccount,
TaxItemGroup,
ReferenceDocumentType,
PostingDate,
DocumentDate,
TaxReportingDate,
ReportingDate,
TaxType,
FiscalPeriod,
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,
TaxIsNotDeductible,
TransactionType.stgrp as TransactionTaxType,
_TaxTypeText
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_STRPTAXRETURNBOXCUBE",
"P_LU_TIMEDEPENDENTVERSASSGMT",
"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