P_MY_TDTTAXRATE
P_MY_TDTTAXRATE is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_StRpTaxReturnBoxCube) and exposes 140 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TransactionTypeDetermination.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaxReturnBoxCube | I_StRpTaxReturnBoxCube | from |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| 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 |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | PMYTDTTAXRATE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (140)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_StRpCalTaxReturnBox | CompanyCode | |
| KEY | AccountingDocument | P_StRpCalTaxReturnBox | AccountingDocument | |
| KEY | FiscalYear | P_StRpCalTaxReturnBox | FiscalYear | |
| KEY | TaxItem | P_StRpCalTaxReturnBox | TaxItem | |
| KEY | TransactionTypeDetermination | P_StRpCalTaxReturnBox | TransactionTypeDetermination | |
| KEY | DebitCreditCode | P_StRpCalTaxReturnBox | DebitCreditCode | |
| KEY | AccountingDocumentType | P_StRpCalTaxReturnBox | AccountingDocumentType | |
| KEY | SupplierAccountGroup | P_StRpCalTaxReturnBox | SupplierAccountGroup | |
| KEY | TaxBox | P_StRpCalTaxReturnBox | TaxBox | |
| KEY | TaxDeclnAmountType | P_StRpCalTaxReturnBox | TaxDeclnAmountType | |
| KEY | TaxBoxStrucValidityStartDate | P_StRpCalTaxReturnBox | TaxBoxStrucValidityStartDate | |
| KEY | UnifiedTaxBoxStructureType | P_StRpCalTaxReturnBox | UnifiedTaxBoxStructureType | |
| KEY | TaxGroup | P_StRpCalTaxReturnBox | TaxGroup | |
| KEY | TaxItemGrpgDebitCreditCode | P_StRpCalTaxReturnBox | TaxItemGrpgDebitCreditCode | |
| KEY | TaxItemGrpgAcctgDocumentType | TaxItemGrpgAcctgDocumentType | ||
| KEY | TaxItemGrpgSupplierAcctGroup | TaxItemGrpgSupplierAcctGroup | ||
| KEY | TaxItemGrpgSpecialGLCode | P_StRpCalTaxReturnBox | TaxItemGrpgSpecialGLCode | |
| KEY | StatryRptgEntity | P_StRpCalTaxReturnBox | StatryRptgEntity | |
| KEY | StatryRptCategory | P_StRpCalTaxReturnBox | StatryRptCategory | |
| KEY | StatryRptRunID | P_StRpCalTaxReturnBox | StatryRptRunID | |
| ValidFrom | P_StRpCalTaxReturnBox | ValidFrom | ||
| Country | P_StRpCalTaxReturnBox | Country | ||
| TaxCode | P_StRpCalTaxReturnBox | TaxCode | ||
| TaxItemGroupingVersion | P_StRpCalTaxReturnBox | TaxItemGroupingVersion | ||
| TaxBoxStructureType | P_StRpCalTaxReturnBox | TaxBoxStructureType | ||
| ValidTo | P_StRpCalTaxReturnBox | ValidTo | ||
| TaxBoxStrucValidityEndDate | TaxBoxStrucValidityEndDate | |||
| TaxCalculationProcedure | TaxCalculationProcedure | |||
| TaxRate | TaxRate | |||
| TaxRateValidityStartDate | P_StRpCalTaxReturnBox | TaxRateValidityStartDate | ||
| IPITaxRate | IPITaxRate | |||
| dec521002endasTaxCodeRatePointer | ||||
| Customer | Customer | |||
| GLAccount | GLAccount | |||
| TaxItemGroup | TaxItemGroup | |||
| BusinessPlace | BusinessPlace | |||
| TaxJurisdiction | P_StRpCalTaxReturnBox | TaxJurisdiction | ||
| LowestLevelTaxJurisdiction | LowestLevelTaxJurisdiction | |||
| ReferenceDocumentType | ReferenceDocumentType | |||
| AlternativeReferenceDocument | AlternativeReferenceDocument | |||
| ReverseDocument | ReverseDocument | |||
| ReverseDocumentFiscalYear | ReverseDocumentFiscalYear | |||
| ConditionRecord | ConditionRecord | |||
| RoundingDecimalPlaces | RoundingDecimalPlaces | |||
| DocumentReferenceID | DocumentReferenceID | |||
| Ledger | Ledger | |||
| LedgerGroup | LedgerGroup | |||
| PostingDate | PostingDate | |||
| DocumentDate | DocumentDate | |||
| TaxReportingDate | TaxReportingDate | |||
| ReportingDate | ReportingDate | |||
| TaxReportingDocumentDate | TaxReportingDocumentDate | |||
| FiscalPeriod | FiscalPeriod | |||
| ExchangeRate | ExchangeRate | |||
| IsReversal | IsReversal | |||
| IsReversed | IsReversed | |||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | |||
| CompanyCodeCountry | CompanyCodeCountry | |||
| ReportingCountry | ReportingCountry | |||
| TaxReturnCountry | TaxReturnCountry | |||
| CompanyCodeCurrency | CompanyCodeCurrency | |||
| CountryCurrency | CountryCurrency | |||
| DocumentCurrency | DocumentCurrency | |||
| ReportingCurrency | ReportingCurrency | |||
| AdditionalCurrency1 | AdditionalCurrency1 | |||
| AdditionalCurrency2 | AdditionalCurrency2 | |||
| TaxBaseAmountInRptgCrcy | TaxBaseAmountInRptgCrcy | |||
| TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | |||
| AmountInReportingCurrency | AmountInReportingCurrency | |||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | |||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | |||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | |||
| TaxAmount | TaxAmount | |||
| TaxBaseAmountInCountryCrcy | TaxBaseAmountInCountryCrcy | |||
| TaxAmountInCountryCrcy | TaxAmountInCountryCrcy | |||
| TaxBaseAmtInAdditionalCrcy1 | TaxBaseAmtInAdditionalCrcy1 | |||
| TaxBaseAmtInAdditionalCrcy2 | TaxBaseAmtInAdditionalCrcy2 | |||
| TaxAmountInAdditionalCurrency1 | TaxAmountInAdditionalCurrency1 | |||
| TaxAmountInAdditionalCurrency2 | TaxAmountInAdditionalCurrency2 | |||
| DifferenceTaxAmtInCoCodeCrcy | DifferenceTaxAmtInCoCodeCrcy | |||
| DiffTaxBaseAmountInCoCodeCrcy | DiffTaxBaseAmountInCoCodeCrcy | |||
| TotalGrossAmountInCoCodeCrcy | TotalGrossAmountInCoCodeCrcy | |||
| TotalGrossAmount | TotalGrossAmount | |||
| TotalGrossAmountInTransCrcy | TotalGrossAmountInTransCrcy | |||
| TaxType | TaxType | |||
| BPTaxNumber | BPTaxNumber | |||
| ReportingVATRegistration | ReportingVATRegistration | |||
| TaxNumber1 | TaxNumber1 | |||
| ShippingPointCountry | ShippingPointCountry | |||
| TargetTaxCode | TargetTaxCode | |||
| TaxNumber2 | TaxNumber2 | |||
| ActiveTaxType | ActiveTaxType | |||
| TaxNumber3 | TaxNumber3 | |||
| TaxIsDeferredRelevant | TaxIsDeferredRelevant | |||
| TaxIsMossRelevant | TaxIsMossRelevant | |||
| CalculatedTxAmtInCoCodeCrcy | CalculatedTxAmtInCoCodeCrcy | |||
| CalculatedTaxAmountInTransCrcy | CalculatedTaxAmountInTransCrcy | |||
| CalculatedTxBaseAmtInTransCrcy | CalculatedTxBaseAmtInTransCrcy | |||
| AmountInTransactionCurrency | AmountInTransactionCurrency | |||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | |||
| CalcdTxBaseAmtInCoCodeCrcy | CalcdTxBaseAmtInCoCodeCrcy | |||
| AmountInAdditionalCurrency1 | AmountInAdditionalCurrency1 | |||
| AmountInAdditionalCurrency2 | AmountInAdditionalCurrency2 | |||
| BusinessPartner | BusinessPartner | |||
| CAReconciliationKey | CAReconciliationKey | |||
| NonDeductibleInputTaxAmount | NonDeductibleInputTaxAmount | |||
| DcblVATIncrdCostInRptgCrcy | DcblVATIncrdCostInRptgCrcy | |||
| BusinessPartnerName | BusinessPartnerName | |||
| BusinessPartnerCountry | BusinessPartnerCountry | |||
| TaxTypeName | TaxTypeName | |||
| CustomerSupplierAddress | CustomerSupplierAddress | |||
| TaxIsNotDeductible | P_StRpCalTaxReturnBox | TaxIsNotDeductible | ||
| SenderCompanyCode | SenderCompanyCode | |||
| SenderAccountingDocument | SenderAccountingDocument | |||
| SenderFiscalYear | SenderFiscalYear | |||
| BalanceAmountInTransacCurrency | BalanceAmountInTransacCurrency | |||
| TaxBoxStructure | P_StRpCalTaxReturnBox | TaxBoxStructure | ||
| TaxBoxStructureName | TaxBoxStructureName | |||
| TaxBoxName | P_StRpCalTaxReturnBox | TaxBoxName | ||
| TaxBoxCondition | P_StRpCalTaxReturnBox | TaxBoxCondition | ||
| TaxBoxAggregationOperation | P_StRpCalTaxReturnBox | TaxBoxAggregationOperation | ||
| TaxGroupOperation | P_StRpCalTaxReturnBox | TaxGroupOperation | ||
| ConditionType | ConditionType | |||
| IsVATRelevant | IsVATRelevant | |||
| IsNegativePosting | IsNegativePosting | |||
| TaxCountry | P_StRpCalTaxReturnBox | TaxCountry | ||
| TaxCntryOrCompanyCodeCntry | TaxCntryOrCompanyCodeCntry | |||
| _ReportedItemsLog | _ReportedItemsLog | |||
| _ReportingCurrency | _ReportingCurrency | |||
| _OneTimeAccountBP | _OneTimeAccountBP | |||
| _JournalEntry | _JournalEntry | |||
| _AccountingDocument | _AccountingDocument | |||
| _GLAccount | _GLAccount | |||
| _TaxJurisdiction | _TaxJurisdiction | |||
| _DebtorCreditorRblsPyblsItem | _DebtorCreditorRblsPyblsItem | |||
| _ReceivablesPayablesItem | _ReceivablesPayablesItem | |||
| _TaxReceivablesPayablesItem | _TaxReceivablesPayablesItem | |||
| _CompanyCodeCountry | _CompanyCodeCountry | |||
| _TaxTypeText | _TaxTypeText | |||
| _TaxCodeText | _TaxCodeText |
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AbapCatalog: {sqlViewName: 'PMYTDTTAXRATE', preserveKey: true}
@AbapCatalog.compiler.compareFilter: true
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_MY_TDTTAXRATE
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 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 P_StRpCalTaxReturnBox
left outer to one join I_AdvancedTaxReportingCountry on I_AdvancedTaxReportingCountry.Country = $parameters.P_ReportingCountry
{
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 P_StRpCalTaxReturnBox.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 TaxItemGrpgAcctgDocumentType,
key TaxItemGrpgSupplierAcctGroup,
key P_StRpCalTaxReturnBox.TaxItemGrpgSpecialGLCode,
key P_StRpCalTaxReturnBox.StatryRptgEntity,
key P_StRpCalTaxReturnBox.StatryRptCategory,
key P_StRpCalTaxReturnBox.StatryRptRunID,
P_StRpCalTaxReturnBox.ValidFrom,
P_StRpCalTaxReturnBox.Country,
P_StRpCalTaxReturnBox.TaxCode,
P_StRpCalTaxReturnBox.TaxItemGroupingVersion,
P_StRpCalTaxReturnBox.TaxBoxStructureType,
P_StRpCalTaxReturnBox.ValidTo,
TaxBoxStrucValidityEndDate,
TaxCalculationProcedure,
TaxRate,
P_StRpCalTaxReturnBox.TaxRateValidityStartDate,
IPITaxRate,
case
when I_AdvancedTaxReportingCountry.Country is null or TaxGroupOperation = ''
then
P_StRpCalTaxReturnBox.TaxCodeRatePointer
else
division ( cast( cast (TaxGroupFreeClassification as abap.numc( 5 )) as abap.dec(5,2) ) ,100,2)
end as TaxCodeRatePointer,
Customer,
GLAccount,
TaxItemGroup,
BusinessPlace,
P_StRpCalTaxReturnBox.TaxJurisdiction,
LowestLevelTaxJurisdiction,
ReferenceDocumentType,
AlternativeReferenceDocument,
ReverseDocument,
ReverseDocumentFiscalYear,
ConditionRecord,
RoundingDecimalPlaces,
DocumentReferenceID,
Ledger,
LedgerGroup,
PostingDate,
DocumentDate,
TaxReportingDate,
ReportingDate,
TaxReportingDocumentDate,
FiscalPeriod,
ExchangeRate,
IsReversal,
IsReversed,
AccountingDocumentHeaderText,
CompanyCodeCountry,
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'
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
ShippingPointCountry,
TargetTaxCode,
TaxNumber2,
ActiveTaxType,
TaxNumber3,
TaxIsDeferredRelevant,
TaxIsMossRelevant,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
CalculatedTxAmtInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
CalculatedTaxAmountInTransCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
CalculatedTxBaseAmtInTransCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
AmountInTransactionCurrency,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
AmountInCompanyCodeCurrency,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
CalcdTxBaseAmtInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency1'
AmountInAdditionalCurrency1,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency2'
AmountInAdditionalCurrency2,
BusinessPartner,
CAReconciliationKey,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
NonDeductibleInputTaxAmount,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
DcblVATIncrdCostInRptgCrcy,
BusinessPartnerName,
BusinessPartnerCountry,
TaxTypeName,
CustomerSupplierAddress,
P_StRpCalTaxReturnBox.TaxIsNotDeductible,
SenderCompanyCode,
SenderAccountingDocument,
SenderFiscalYear,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
BalanceAmountInTransacCurrency,
P_StRpCalTaxReturnBox.TaxBoxStructure,
TaxBoxStructureName,
P_StRpCalTaxReturnBox.TaxBoxName,
P_StRpCalTaxReturnBox.TaxBoxCondition,
P_StRpCalTaxReturnBox.TaxBoxAggregationOperation,
P_StRpCalTaxReturnBox.TaxGroupOperation,
ConditionType,
IsVATRelevant,
IsNegativePosting,
P_StRpCalTaxReturnBox.TaxCountry,
TaxCntryOrCompanyCodeCntry,
_ReportedItemsLog,
_ReportingCurrency,
_OneTimeAccountBP,
_JournalEntry,
_AccountingDocument,
_GLAccount,
_TaxJurisdiction,
_DebtorCreditorRblsPyblsItem,
_ReceivablesPayablesItem,
_TaxReceivablesPayablesItem,
_CompanyCodeCountry,
_TaxTypeText,
_TaxCodeText
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ADVANCEDTAXREPORTINGCOUNTRY",
"I_STRPTAXRETURNBOXCUBE"
],
"ASSOCIATED":
[
"I_ACCOUNTINGDOCUMENT",
"I_COUNTRY",
"I_CURRENCY",
"I_GLACCOUNT",
"I_JOURNALENTRY",
"I_ONETIMEACCOUNTBP",
"I_OPERATIONALACCTGDOCITEM",
"I_STRPJOURNALENTRYLOG",
"I_TAXCODETEXT",
"I_TAXJURISDICTION",
"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