I_STRPTAXRETURNBOXCUBE
Cube View to Return Tax Details with TaxBox configuration
I_STRPTAXRETURNBOXCUBE is a CDS View in S/4HANA. Cube View to Return Tax Details with TaxBox configuration. It contains 115 fields. 47 CDS views read from this table.
CDS Views using this table (47)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| C_AT_TaxReturnBoxQuery | view | from | CONSUMPTION | Tax Items for Austria |
| C_AU_StRpTaxItemCube | view | from | CONSUMPTION | Consumtion View for Australia VAT Tax Line Item |
| C_BE_TaxReturnBoxCube | view | from | CONSUMPTION | ATR enabled tax Items for BE VAT Return |
| C_CH_TaxReturnBoxCube | view | from | CONSUMPTION | ATR enabled Tax Items for Swiss Cube |
| C_DE_TaxReturnBoxQuery | view | from | CONSUMPTION | Query Tax Items for Germany |
| C_DK_TaxReturnBoxQuery | view | from | CONSUMPTION | Tax Items for Denmark |
| C_FI_TaxReturnBoxQuery | view | from | CONSUMPTION | Tax Items for Finnland |
| C_FR_TaxReturnBoxCube | view | from | CONSUMPTION | ATR enabled Tax Items for France Cube |
| C_IT_TaxReturnBoxCube | view | from | CONSUMPTION | Tax Items for Italy |
| C_LU_TaxReturnBoxCube | view | from | CONSUMPTION | Tax Items for Luxembourg Cube |
| C_NO_TaxReturnBoxCube | view | from | CONSUMPTION | ATR enabled Tax Items for Norway - Cube |
| C_PT_TaxReturnBoxQuery | view | from | CONSUMPTION | Tax Items for Portugal - Query |
| C_PT_TaxReturnBoxQuery_2 | view | from | CONSUMPTION | ATR enabled tax Items for Portugal - Query |
| C_RS_StRpTaxReturnBoxQuery | view_entity | from | CONSUMPTION | Analytical Query Tax Return info RS |
| C_SE_TaxReturnBoxQuery | view | from | CONSUMPTION | Query Tax Items for Sweden |
| C_StRpTaxItemBoxLogQuery | view | from | CONSUMPTION | Analytical Query for Box Reporting With Rptd Item Log Data |
| C_StRpTaxReturnBoxQuery | view | from | CONSUMPTION | Analytical Query Tax Return info with TaxBox configuration |
| I_BG_StRpVATDeclaration | view | from | COMPOSITE | VAT Declaration for BG |
| I_DueDeferredTaxItemCube | view | from | COMPOSITE | View to display Due Deferred Tax Items |
| I_MY_STRPTaxItem | view | from | COMPOSITE | Tax Items for Malaysia Statutory Reporting |
| I_PH_TaxReturnItemGroupCube | view | from | COMPOSITE | Tax Item for Philippline |
| I_PT_TaxReturnAnnex | view_entity | from | COMPOSITE | FI and FICA tax items for PT Annexes |
| I_SG_StRpTaxReturnCube | view | from | COMPOSITE | Tax Return Items for Singapore Statutory Reporting |
| I_UA_AdditionalTxReturnBoxCube | view_entity | from | COMPOSITE | UA Taxbox item with add UA fields - Cube |
| I_VN_VATReturnGroupCube | view_entity | from | COMPOSITE | Vietnam VAT Declaration Form - Cube |
| I_ZA_StRpTaxReturnBoxCube | view | from | COMPOSITE | South Africa VAT Report |
| P_ES_TaxReturnBoxATR | view | from | CONSUMPTION | ATR enabled Tax Items for Modelo Spain |
| P_HR_StRpCalTaxReturnBox | view_entity | from | COMPOSITE | Croatia Tax return |
| P_HR_StRpTaxReturnBox | view_entity | from | COMPOSITE | Croatia Tax return |
| P_HR_StRpTaxReturnPeriodDetail | view_entity | from | COMPOSITE | Croatia Tax return period detail |
| P_ID_StRpTaxReturnItemGroup | view | from | COMPOSITE | Indonesia Tax Return Item Group |
| P_ID_StRpTxReturnBoxItm | view_entity | from | COMPOSITE | Indonesia Return Tax Details with TaxBox Configuration |
| P_MY_StRpTxItmWithOriglDoc | view | from | COMPOSITE | Statutory Tax Item with Original Document |
| P_MY_TDTTAXRATE | view | from | COMPOSITE | Get Tax Percentage |
| P_NZ_StRpTaxReturnBox | view | from | COMPOSITE | New Zealand specific base view for TaxBox Reporting |
| P_PH_CapitalGoodsItemTDT | view | from | COMPOSITE | Collecting Capital Goods Item For Phillipine |
| P_PH_ImportationSummaryItem | view_entity | from | COMPOSITE | PH analytic view |
| P_PH_SmmryStRpTaxReturnBox | view | from | COMPOSITE | PH Summary List Tax Return Box |
| P_PH_STRPTaxItems_TDT | view | from | COMPOSITE | tax Items with discounts |
| P_PT_TaxReturnBoxItem | view_entity | from | COMPOSITE | Portugal Tax Items |
| P_RO_StRpTaxItemLog | view | from | CONSUMPTION | Tax Items log for Statutory Reporting |
| P_SI_STRPTAXRETURNBOXCUBE1 | view_entity | from | COMPOSITE | Slovenian TaxBox view fo KPR, KIR |
| P_StRpTaxReturnBoxCube | view_entity | from | COMPOSITE | Private View to Return Tax Details |
| P_TH_StRpDeferTaxPayment | view_entity | from | COMPOSITE | Enable for PP36 deferred tax scenario |
| P_TH_STRPTAXCURRADAPT | view_entity | from | COMPOSITE | Adapt multiple currency |
| P_TH_StRpTaxPaymentReturn | view | from | COMPOSITE | For Thailand PP36 Tax Return Report |
| P_ZA_StRpTaxReturnBox | view | from | COMPOSITE | Private CDS view for South Africa PDF report |
Fields (115)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | AccountingDocument | AccountingDocument | 9 |
| KEY | AccountingDocumentType | AccountingDocumentType | 7 |
| KEY | CompanyCode | CompanyCode | 11 |
| KEY | Country | Country,ShippingPointCountry | 9 |
| KEY | DebitCreditCode | DebitCreditCode | 4 |
| KEY | FiscalYear | FiscalYear | 8 |
| KEY | StatryRptCategory | StatryRptCategory | 5 |
| KEY | StatryRptgEntity | StatryRptgEntity | 5 |
| KEY | StatryRptRunID | StatryRptRunID | 5 |
| KEY | SupplierAccountGroup | SupplierAccountGroup | 2 |
| KEY | TaxBox | TaxBox | 5 |
| KEY | TaxBoxStructureType | TaxBoxStructureType | 5 |
| KEY | TaxBoxStrucValidityStartDate | TaxBoxStrucValidityStartDate,ValidityStartDate | 5 |
| KEY | TaxCalculationProcedure | TaxCalculationProcedure | 8 |
| KEY | TaxCode | TaxCode | 10 |
| KEY | TaxDeclnAmountType | TaxDeclnAmountType | 6 |
| KEY | TaxGroup | TaxGroup | 5 |
| KEY | TaxItem | TaxItem | 7 |
| KEY | TaxItemGroupingVersion | TaxItemGroupingVersion | 9 |
| KEY | TaxItemGrpgAcctgDocumentType | TaxItemGrpgAcctgDocumentType | 2 |
| KEY | TaxItemGrpgDebitCreditCode | TaxItemGrpgDebitCreditCode | 3 |
| KEY | TaxItemGrpgSpecialGLCode | TaxItemGrpgSpecialGLCode | 3 |
| KEY | TaxItemGrpgSupplierAcctGroup | TaxItemGrpgSupplierAcctGroup | 2 |
| KEY | TaxRateValidityEndDate | TaxRateValidityEndDate | 1 |
| KEY | TaxRateValidityStartDate | TaxRateValidityStartDate | 7 |
| KEY | TransactionTypeDetermination | TransactionTypeDetermination | 9 |
| KEY | UnifiedTaxBoxStructureType | UnifiedTaxBoxStructureType | 4 |
| _GLAccount | _GLAccount | 2 | |
| _ReportingCurrency | _ReportingCurrency | 1 | |
| _TaxTypeText | _TaxTypeText | 1 | |
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | 3 | |
| AdditionalCurrency1 | AdditionalCurrency1 | 3 | |
| AdditionalCurrency2 | AdditionalCurrency2 | 3 | |
| AddressID | AddressID | 1 | |
| AlternativeReferenceDocument | AlternativeReferenceDocument | 2 | |
| AmountInAdditionalCurrency1 | AmountInAdditionalCurrency1 | 3 | |
| AmountInAdditionalCurrency2 | AmountInAdditionalCurrency2 | 3 | |
| AmountInReportingCurrency | AmountInReportingCurrency | 3 | |
| BPTaxNumber | BPTaxNumber | 1 | |
| BusinessPartner | BusinessPartner | 4 | |
| BusinessPartnerCountry | BusinessPartnerCountry | 3 | |
| BusinessPartnerName | BusinessPartnerName | 2 | |
| BusinessPlace | BusinessPlace | 5 | |
| CAReconciliationKey | CAReconciliationKey | 4 | |
| CompanyCodeCountry | CompanyCodeCountry | 4 | |
| CompanyCodeCurrency | CompanyCodeCurrency | 6 | |
| ConditionRecord | ConditionRecord | 1 | |
| ConditionType | ConditionType | 1 | |
| CountryCurrency | CountryCurrency | 2 | |
| Customer | Customer | 1 | |
| CustomerSupplierAddress | CustomerSupplierAddress | 1 | |
| DcblVATIncrdCostInRptgCrcy | DcblVATIncrdCostInRptgCrcy | 1 | |
| DocumentCurrency | DocumentCurrency | 3 | |
| DocumentDate | DocumentDate | 6 | |
| DocumentReferenceID | DocumentReferenceID | 5 | |
| ExchangeRate | ExchangeRate | 1 | |
| FiscalPeriod | FiscalPeriod | 6 | |
| GLAccount | GLAccount | 6 | |
| IsNegativePosting | IsNegativePosting | 1 | |
| IsReversal | IsReversal | 2 | |
| IsReversed | IsReversed | 2 | |
| IsVATRelevant | IsVATRelevant | 1 | |
| Ledger | Ledger | 1 | |
| LedgerGroup | LedgerGroup | 1 | |
| LowestLevelTaxJurisdiction | LowestLevelTaxJurisdiction | 2 | |
| NonDeductibleInputTaxAmount | NonDeductibleInputTaxAmount | 5 | |
| OriginalFiscalPeriod | OriginalFiscalPeriod | 1 | |
| PostingDate | PostingDate | 7 | |
| ReferenceDocumentType | ReferenceDocumentType | 3 | |
| ReportingCountry | ReportingCountry | 3 | |
| ReportingCurrency | ReportingCurrency | 4 | |
| ReportingDate | ReportingDate | 6 | |
| ReportingVATRegistration | ReportingVATRegistration | 1 | |
| ReverseDocument | ReverseDocument | 1 | |
| RoundingDecimalPlaces | RoundingDecimalPlaces | 1 | |
| SenderAccountingDocument | SenderAccountingDocument | 1 | |
| SenderCompanyCode | SenderCompanyCode | 1 | |
| SenderFiscalYear | SenderFiscalYear | 1 | |
| StatryRptRun | StatryRptRun | 5 | |
| TargetTaxCode | TargetTaxCode | 2 | |
| TaxAmount | TaxAmount | 3 | |
| TaxAmountInAdditionalCurrency1 | TaxAmountInAdditionalCurrency1 | 1 | |
| TaxAmountInAdditionalCurrency2 | TaxAmountInAdditionalCurrency2 | 1 | |
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | 2 | |
| TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | 4 | |
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | 2 | |
| TaxBaseAmountInRptgCrcy | TaxBaseAmountInRptgCrcy | 4 | |
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | 2 | |
| TaxBaseAmtInAdditionalCrcy1 | TaxBaseAmtInAdditionalCrcy1 | 1 | |
| TaxBaseAmtInAdditionalCrcy2 | TaxBaseAmtInAdditionalCrcy2 | 1 | |
| TaxBoxAggregationOperation | TaxBoxAggregationOperation | 1 | |
| TaxBoxCondition | TaxBoxCondition | 3 | |
| TaxBoxName | TaxBoxName | 3 | |
| TaxBoxStructure | TaxBoxStructure | 4 | |
| TaxBoxStructureName | TaxBoxStructureName | 3 | |
| TaxBoxStrucValidityEndDate | TaxBoxStrucValidityEndDate,ValidityEndDate | 4 | |
| TaxCntryOrCompanyCodeCntry | TaxCntryOrCompanyCodeCntry | 1 | |
| TaxCountry | TaxCountry | 3 | |
| TaxGroupOperation | TaxGroupOperation | 1 | |
| TaxIsDeferredRelevant | TaxIsDeferredRelevant | 1 | |
| TaxIsMossRelevant | TaxIsMossRelevant | 1 | |
| TaxIsNotDeductible | TaxIsNotDeductible | 4 | |
| TaxItemAcctgDocItemRef | TaxItemAcctgDocItemRef | 1 | |
| TaxItemGroup | TaxItemGroup | 6 | |
| TaxItemGroupingAccountNumber | TaxItemGroupingAccountNumber | 1 | |
| TaxJurisdiction | TaxJurisdiction | 4 | |
| TaxNumber1 | TaxNumber1 | 2 | |
| TaxNumber2 | TaxNumber2 | 1 | |
| TaxNumber3 | TaxNumber3 | 1 | |
| TaxRate | TaxRate | 3 | |
| TaxReportingDate | TaxReportingDate | 6 | |
| TaxReportingDocumentDate | TaxReportingDocumentDate | 1 | |
| TaxReturnCountry | TaxReturnCountry | 3 | |
| TaxType | TaxType | 6 | |
| TaxTypeName | TaxTypeName | 3 |
@AbapCatalog.sqlViewName: 'ISRTAXRETURNBOXC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Cube View to Return Tax Details with TaxBox configuration'
@VDM.viewType: #COMPOSITE
@Analytics: { dataCategory: #CUBE }
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations:true
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@Metadata.allowExtensions: true
@AccessControl.personalData.blocking:#BLOCKED_DATA_INCLUDED
@Consumption.dbHints: [ 'NO_CS_JOIN' , 'USE_HEX_PLAN' ]
define view I_StRpTaxReturnBoxCube
with parameters
P_TaxIsDeferredRelevant : figen_deferred_check,
P_TaxIsMossRelevant : figen_moss_check,
P_StatryRptgEntity : srf_reporting_entity,
P_StatryRptCategory : srf_rep_cat_id,
P_StatryRptRunID : srf_report_run_id,
P_ReportingCountry : land1,
P_TaxBoxConfiguration : figen_tdt_taxbox_config
as select from P_StRpCalTaxReturnBox (
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
)
{
//P_StRpCalTaxReturnBox
key P_StRpCalTaxReturnBox.CompanyCode,
key P_StRpCalTaxReturnBox.AccountingDocument,
key P_StRpCalTaxReturnBox.FiscalYear,
key P_StRpCalTaxReturnBox.TaxItem,
key P_StRpCalTaxReturnBox.TransactionTypeDetermination,
key P_StRpCalTaxReturnBox.DebitCreditCode,
key P_StRpCalTaxReturnBox.AccountingDocumentType,
key cast( P_StRpCalTaxReturnBox.SupplierAccountGroup as farp_supplier_account_group ) as SupplierAccountGroup,
key P_StRpCalTaxReturnBox.TaxBox,
key P_StRpCalTaxReturnBox.TaxDeclnAmountType,
key P_StRpCalTaxReturnBox.TaxBoxStrucValidityStartDate,
key P_StRpCalTaxReturnBox.UnifiedTaxBoxStructureType,
key P_StRpCalTaxReturnBox.TaxGroup,
key P_StRpCalTaxReturnBox.TaxItemGrpgDebitCreditCode,
key cast( P_StRpCalTaxReturnBox.TaxItemGrpgAcctgDocumentType as glo_tax_item_grpg_acc_doc_type ) as TaxItemGrpgAcctgDocumentType,
key cast( P_StRpCalTaxReturnBox.TaxItemGrpgSupplierAcctGroup as glo_tax_itm_grpg_suplr_acc_grp ) as TaxItemGrpgSupplierAcctGroup,
key P_StRpCalTaxReturnBox.TaxItemGrpgSpecialGLCode,
key P_StRpCalTaxReturnBox.StatryRptgEntity,
key P_StRpCalTaxReturnBox.StatryRptCategory,
key P_StRpCalTaxReturnBox.StatryRptRunID,
key cast( P_StRpCalTaxReturnBox.Country as glo_country ) as Country,
key P_StRpCalTaxReturnBox.TaxCode,
key P_StRpCalTaxReturnBox.TaxItemGroupingVersion,
key P_StRpCalTaxReturnBox.TaxBoxStructureType,
key TaxRateValidityStartDate,
key TaxRateValidityEndDate,
P_StRpCalTaxReturnBox.StatryRptRun,
P_StRpCalTaxReturnBox.TaxItemAcctgDocItemRef,
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'TaxBoxStrucValidityStartDate'
P_StRpCalTaxReturnBox.ValidFrom,
P_StRpCalTaxReturnBox.TaxItemGroupingAccountNumber,
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'TaxBoxStrucValidityEndDate'
ValidTo,
TaxBoxStrucValidityEndDate,
TaxCalculationProcedure,
@DefaultAggregation:#MIN
TaxRate,
IPITaxRate,
@DefaultAggregation:#MIN
TaxCodeRatePointer,
/*@DefaultAggregation:#MIN
AdditionalTax1Rate,*/
/*@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
ConditionAmount,*/
Customer,
GLAccount,
TaxItemGroup,
BusinessPlace,
TaxJurisdiction,
LowestLevelTaxJurisdiction,
ReferenceDocumentType,
AlternativeReferenceDocument,
ReverseDocument,
ReverseDocumentFiscalYear,
ConditionRecord,
RoundingDecimalPlaces,
DocumentReferenceID,
Ledger,
LedgerGroup,
PostingDate,
DocumentDate,
TaxReportingDate,
ReportingDate,
TaxReportingDocumentDate,
FiscalPeriod,
OriginalFiscalPeriod,
@DefaultAggregation:#MIN
ExchangeRate,
IsReversal,
IsReversed,
AccountingDocumentHeaderText,
CompanyCodeCountry,
cast( ReportingCountry as glo_tax_cntry_or_cocd_cntry ) as ReportingCountry,
TaxReturnCountry,
@Semantics.currencyCode:true
CompanyCodeCurrency,
@Semantics.currencyCode:true
CountryCurrency,
@Semantics.currencyCode:true
DocumentCurrency,
@Semantics.currencyCode:true
ReportingCurrency,
@Semantics.currencyCode: true
AdditionalCurrency1,
@Semantics.currencyCode: true
AdditionalCurrency2,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
TaxBaseAmountInRptgCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
TaxAmountInRptgCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
cast(case TaxDeclnAmountType
when 'B'
then
TaxBaseAmountInRptgCrcy
when 'T'
then
case TaxIsNotDeductible
when 'X'
then
NonDeductibleInputTaxAmount
else
TaxAmountInRptgCrcy
end
else
0
end as glo_amount_rptg_crcy ) as AmountInReportingCurrency,
@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: 'CountryCurrency'
TaxBaseAmountInCountryCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CountryCurrency'
TaxAmountInCountryCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency1'
TaxBaseAmtInAdditionalCrcy1,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency2'
TaxBaseAmtInAdditionalCrcy2,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency1'
TaxAmountInAdditionalCurrency1,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency2'
TaxAmountInAdditionalCurrency2,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
DifferenceTaxAmtInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
DiffTaxBaseAmountInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
TotalGrossAmountInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
TotalGrossAmount,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
TotalGrossAmountInTransCrcy,
TaxType,
BPTaxNumber,
ReportingVATRegistration,
TaxNumber1, //Stock Transfer Scenario is handled
Country as ShippingPointCountry,
TargetTaxCode,
TaxNumber2,
ActiveTaxType,
TaxNumber3,
TaxIsDeferredRelevant,
TaxIsMossRelevant,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
cast(case
when TaxDeclnAmountType = 'T'
then
CalculatedTxAmtInCoCodeCrcy
else 0
end as glo_taxamount_calc_intrancrcy ) as
CalculatedTxAmtInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
cast(case
when TaxDeclnAmountType = 'T'
then
CalculatedTaxAmountInTransCrcy
else 0
end as glo_taxamount_calc_intranscrcy ) as CalculatedTaxAmountInTransCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
cast(case
when TaxDeclnAmountType = 'B'
then
CalculatedTxBaseAmtInTransCrcy
else 0
end as glo_baseamount_calc_intrancrcy ) as CalculatedTxBaseAmtInTransCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
cast(case
when TaxDeclnAmountType = 'B'
then CalculatedTxBaseAmtInTransCrcy
when TaxDeclnAmountType = 'T'
then
CalculatedTaxAmountInTransCrcy
else 0
end as glo_amount_trans_crcy ) as AmountInTransactionCurrency,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
cast(case
when TaxDeclnAmountType = 'B'
then CalcdTxBaseAmtInCoCodeCrcy
when TaxDeclnAmountType = 'T'
then
CalculatedTxAmtInCoCodeCrcy
else 0
end as glo_amount_compcode_crcy ) as AmountInCompanyCodeCurrency,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
case
when TaxDeclnAmountType = 'B'
then
CalcdTxBaseAmtInCoCodeCrcy
else 0
end as CalcdTxBaseAmtInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency1'
cast(case
when TaxDeclnAmountType = 'B'
then TaxBaseAmtInAdditionalCrcy1
when TaxDeclnAmountType = 'T'
then TaxAmountInAdditionalCurrency1
end as glo_amount_add_crcy1 ) as AmountInAdditionalCurrency1,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency2'
cast(case
when TaxDeclnAmountType = 'B'
then TaxBaseAmtInAdditionalCrcy2
when TaxDeclnAmountType = 'T'
then TaxAmountInAdditionalCurrency2
end as glo_amount_add_crcy2 ) as AmountInAdditionalCurrency2,
BusinessPartner,
P_StRpCalTaxReturnBox.CAReconciliationKey,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
NonDeductibleInputTaxAmount,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
DcblVATIncrdCostInRptgCrcy,
BusinessPartnerName,
BusinessPartnerCountry,
TaxTypeName,
CustomerSupplierAddress,
TaxIsNotDeductible,
SenderCompanyCode,
SenderAccountingDocument,
SenderFiscalYear,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
BalanceAmountInTransacCurrency,
TaxBoxStructure,
TaxBoxStructureName,
TaxBoxName,
TaxBoxCondition,
TaxBoxAggregationOperation,
TaxGroupOperation,
ConditionType,
case
when ItelRelforReporting1 = 'X' and ItelRelforReporting2 = 'X' and ItelRelforReporting3 = 'X'
then 'X'
end as IsVATRelevant,
IsNegativePosting,
TaxCountry,
TaxCntryOrCompanyCodeCntry,
TaxGroupFreeClassification,
TaxFulfillmentDate,
JrnlEntryCntrySpecificRef4,
JrnlEntryCntrySpecificRef5,
TaxItemIsExternal,
_ReportedItemsLog,
_ReportingCurrency,
_OneTimeAccountBP,
_JournalEntry,
_AccountingDocument,
_GLAccount,
_TaxJurisdiction,
_DebtorCreditorRblsPyblsItem,
_ReceivablesPayablesItem,
_TaxReceivablesPayablesItem,
_CompanyCodeCountry,
_TaxTypeText,
_TaxCodeText,
_CustomerSupplierLineItem
}