I_AR_StRpTaxItem
Argentina VAT Tax Line Item Calculation
I_AR_StRpTaxItem is a Composite CDS View (Cube) that provides data about "Argentina VAT Tax Line Item Calculation" in SAP S/4HANA. It reads from 8 data sources and exposes 83 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCalculationProcedure. It has 1 association to related views.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| I_AccountingDocument | _ReverseDoc | left_outer |
| I_Altvcurrency | I_Altvcurrency | left_outer |
| I_AR_ImportServiceDocumentType | I_AR_ImportServiceDocumentType | left_outer |
| I_AR_TaxClassIdentification | I_AR_TaxClassIdentification | left_outer |
| I_CountrySpecificDocumentType | I_CountrySpecificDocumentType | left_outer |
| I_Customer | I_Customer | left_outer |
| I_StRpTaxItem | I_StRpTaxItem | from |
| I_Supplier | I_Supplier | left_outer |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UnitOfMeasure | _QuantityUnitOfMeasure | $projection.QuantityUnit = _QuantityUnitOfMeasure.UnitOfMeasure |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IARCALTAXITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Analytics.dataCategory | #CUBE | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Argentina VAT Tax Line Item Calculation | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (83)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_StRpTaxItem | CompanyCode | |
| KEY | AccountingDocument | I_StRpTaxItem | AccountingDocument | |
| KEY | FiscalYear | I_StRpTaxItem | FiscalYear | |
| KEY | TaxItem | I_StRpTaxItem | TaxItem | |
| KEY | TaxCalculationProcedure | I_StRpTaxItem | TaxCalculationProcedure | |
| KEY | TaxCode | I_StRpTaxItem | TaxCode | |
| KEY | TransactionTypeDetermination | I_StRpTaxItem | TransactionTypeDetermination | |
| DebitCreditCode | I_StRpTaxItem | DebitCreditCode | ||
| TaxRate | ||||
| AR_VATRateInPercent | ||||
| GLAccount | I_StRpTaxItem | GLAccount | ||
| AccountingDocumentHeaderText | I_StRpTaxItem | AccountingDocumentHeaderText | ||
| AccountingDocumentType | I_StRpTaxItem | AccountingDocumentType | ||
| AdditionalCurrency1 | I_StRpTaxItem | AdditionalCurrency1 | ||
| AdditionalCurrency2 | I_StRpTaxItem | AdditionalCurrency2 | ||
| BusinessPartner | I_StRpTaxItem | BusinessPartner | ||
| BusinessPartnerName | I_StRpTaxItem | BusinessPartnerName | ||
| BusinessPlace | I_StRpTaxItem | BusinessPlace | ||
| CompanyCodeCountry | I_StRpTaxItem | CompanyCodeCountry | ||
| CompanyCodeCurrency | I_StRpTaxItem | CompanyCodeCurrency | ||
| CountryCurrency | I_StRpTaxItem | CountryCurrency | ||
| CustomerSupplierAddress | I_StRpTaxItem | CustomerSupplierAddress | ||
| DocumentCurrency | I_StRpTaxItem | DocumentCurrency | ||
| DocumentDate | I_StRpTaxItem | DocumentDate | ||
| DocumentReferenceID | I_StRpTaxItem | DocumentReferenceID | ||
| FiscalPeriod | I_StRpTaxItem | FiscalPeriod | ||
| IsReversal | I_StRpTaxItem | IsReversal | ||
| IsReversed | I_StRpTaxItem | IsReversed | ||
| Ledger | I_StRpTaxItem | Ledger | ||
| LedgerGroup | I_StRpTaxItem | LedgerGroup | ||
| LowestLevelTaxJurisdiction | I_StRpTaxItem | LowestLevelTaxJurisdiction | ||
| PostingDate | I_StRpTaxItem | PostingDate | ||
| ReportingDate | I_StRpTaxItem | ReportingDate | ||
| ReferenceDocumentType | I_StRpTaxItem | ReferenceDocumentType | ||
| ReportingCountry | I_StRpTaxItem | ReportingCountry | ||
| ReportingCurrency | I_StRpTaxItem | ReportingCurrency | ||
| ReverseDocument | I_StRpTaxItem | ReverseDocument | ||
| ReverseDocumentFiscalYear | I_StRpTaxItem | ReverseDocumentFiscalYear | ||
| TargetTaxCode | I_StRpTaxItem | TargetTaxCode | ||
| TaxAmount | I_StRpTaxItem | TaxAmount | ||
| TaxAmountInAdditionalCurrency1 | I_StRpTaxItem | TaxAmountInAdditionalCurrency1 | ||
| TaxAmountInAdditionalCurrency2 | I_StRpTaxItem | TaxAmountInAdditionalCurrency2 | ||
| TaxAmountInCountryCrcy | I_StRpTaxItem | TaxAmountInCountryCrcy | ||
| TaxAmountInRptgCrcy | I_StRpTaxItem | TaxAmountInRptgCrcy | ||
| TaxBaseAmountInCountryCrcy | I_StRpTaxItem | TaxBaseAmountInCountryCrcy | ||
| TaxBaseAmountInRptgCrcy | I_StRpTaxItem | TaxBaseAmountInRptgCrcy | ||
| TaxBaseAmountInTransCrcy | I_StRpTaxItem | TaxBaseAmountInTransCrcy | ||
| TaxBaseAmtInAdditionalCrcy1 | I_StRpTaxItem | TaxBaseAmtInAdditionalCrcy1 | ||
| TaxBaseAmtInAdditionalCrcy2 | I_StRpTaxItem | TaxBaseAmtInAdditionalCrcy2 | ||
| TaxIsNotDeductible | I_StRpTaxItem | TaxIsNotDeductible | ||
| TaxItemGroup | I_StRpTaxItem | TaxItemGroup | ||
| TaxJurisdiction | I_StRpTaxItem | TaxJurisdiction | ||
| TaxNumber1 | I_StRpTaxItem | TaxNumber1 | ||
| TaxNumber2 | I_StRpTaxItem | TaxNumber2 | ||
| TaxNumber3 | I_StRpTaxItem | TaxNumber3 | ||
| TaxReportingDate | I_StRpTaxItem | TaxReportingDate | ||
| TaxReturnCountry | I_StRpTaxItem | TaxReturnCountry | ||
| TaxType | I_StRpTaxItem | TaxType | ||
| DocumentTypeCategory | I_AR_ImportServiceDocumentType | DocumentTypeCategory | ||
| IsRespForImportDeclaration | I_AR_ImportServiceDocumentType | IsRespForImportDeclaration | ||
| AR_OfficialDocumentClass | I_CountrySpecificDocumentType | AR_OfficialDocumentClass | ||
| AR_IsSelfIssuedDocument | I_CountrySpecificDocumentType | AR_IsSelfIssuedDocument | ||
| AlternativeCurrencyKey | I_Altvcurrency | AlternativeCurrencyKey | ||
| QuantityUnit | ||||
| LinearDataLength | ||||
| CountryendasBusinessPartnerCountry | ||||
| TaxNumberTypeendasTaxNumberType | ||||
| DocumentReferenceID15endasAR_Branch | ||||
| TaxClassification | ||||
| TaxClassificationCategory | I_AR_TaxClassIdentification | StRpTaxClassification | ||
| StRpTaxClassification | ||||
| ExchangeRateendasExchangeRate | ||||
| ZeroVATRsn | ZeroVATRsn | |||
| _AccountingDocument | I_StRpTaxItem | _AccountingDocument | ||
| _GLAccount | I_StRpTaxItem | _GLAccount | ||
| _ReceivablesPayablesItem | I_StRpTaxItem | _ReceivablesPayablesItem | ||
| _ReportedItemsLog | I_StRpTaxItem | _ReportedItemsLog | ||
| _ReportingCurrency | I_StRpTaxItem | _ReportingCurrency | ||
| _TaxJurisdiction | I_StRpTaxItem | _TaxJurisdiction | ||
| _TaxTypeText | I_StRpTaxItem | _TaxTypeText | ||
| GLBusinessTransactionType | I_AR_TaxClassIdentification | GLBusinessTransactionType | ||
| ResponsibleType | I_Supplier | ResponsibleType | ||
| _QuantityUnitOfMeasure | _QuantityUnitOfMeasure |
@AbapCatalog.sqlViewName: 'IARCALTAXITEM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck:#CHECK
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@Analytics: { dataCategory: #CUBE }
@VDM.viewType: #COMPOSITE
@AccessControl.personalData.blocking:#BLOCKED_DATA_INCLUDED
@ClientHandling.algorithm: #SESSION_VARIABLE
//@ObjectModel.representativeKey: 'AccountingDocument'
@EndUserText.label: 'Argentina VAT Tax Line Item Calculation'
@Metadata.ignorePropagatedAnnotations: true
@Metadata.allowExtensions:true
define view I_AR_StRpTaxItem
as select from I_StRpTaxItem
left outer join I_AR_TaxClassIdentification on I_StRpTaxItem.TaxCalculationProcedure = I_AR_TaxClassIdentification.TaxCalculationProcedure
and I_StRpTaxItem.TaxCode = I_AR_TaxClassIdentification.TaxCode
and I_StRpTaxItem.TransactionTypeDetermination = I_AR_TaxClassIdentification.TransactionTypeDetermination
left outer join I_Altvcurrency on I_Altvcurrency.CurrencyAlternativeCodeGroup = 'DAILYVAT'
and I_StRpTaxItem.DocumentCurrency = I_Altvcurrency.Currency
left outer join I_AR_ImportServiceDocumentType on I_StRpTaxItem.CompanyCodeCountry = I_AR_ImportServiceDocumentType.Country
and I_StRpTaxItem.AccountingDocumentType = I_AR_ImportServiceDocumentType.AccountingDocumentType
left outer join I_CountrySpecificDocumentType on I_StRpTaxItem.CompanyCodeCountry = I_CountrySpecificDocumentType.Country
and I_StRpTaxItem.AccountingDocumentType = I_CountrySpecificDocumentType.AccountingDocumentType
left outer join I_AccountingDocument as _ReverseDoc on _ReverseDoc.CompanyCode = I_StRpTaxItem.CompanyCode
and _ReverseDoc.AccountingDocument = I_StRpTaxItem.ReverseDocument
and _ReverseDoc.FiscalYear = I_StRpTaxItem.FiscalYear
and _ReverseDoc.FiscalPeriod = I_StRpTaxItem.FiscalPeriod
and I_StRpTaxItem.ReverseDocument is not null
left outer join I_Customer on I_StRpTaxItem.BusinessPartner = I_Customer.Customer
left outer join I_Supplier on I_StRpTaxItem.BusinessPartner = I_Supplier.Supplier
association [0..1] to I_UnitOfMeasure as _QuantityUnitOfMeasure on $projection.QuantityUnit = _QuantityUnitOfMeasure.UnitOfMeasure
{
key I_StRpTaxItem.CompanyCode,
key I_StRpTaxItem.AccountingDocument,
key I_StRpTaxItem.FiscalYear,
key I_StRpTaxItem.TaxItem,
key I_StRpTaxItem.TaxCalculationProcedure,
key I_StRpTaxItem.TaxCode,
key I_StRpTaxItem.TransactionTypeDetermination,
I_StRpTaxItem.DebitCreditCode,
// cast (I_StRpTaxItem.TaxRate as char16) as TaxRate, //AFLE Changes
cast(cast(I_StRpTaxItem.TaxRate as abap.dec(11,2)) as char16) as TaxRate, //AFLE Changes
cast(cast(abs(I_StRpTaxItem.TaxRate) as abap.dec(11,2)) as char16) as AR_VATRateInPercent, //AFLE Changes
I_StRpTaxItem.GLAccount,
I_StRpTaxItem.AccountingDocumentHeaderText,
I_StRpTaxItem.AccountingDocumentType,
@Semantics.currencyCode:true
I_StRpTaxItem.AdditionalCurrency1,
@Semantics.currencyCode:true
I_StRpTaxItem.AdditionalCurrency2,
I_StRpTaxItem.BusinessPartner,
I_StRpTaxItem.BusinessPartnerName,
I_StRpTaxItem.BusinessPlace,
I_StRpTaxItem.CompanyCodeCountry,
@Semantics.currencyCode:true
I_StRpTaxItem.CompanyCodeCurrency,
@Semantics.currencyCode:true
I_StRpTaxItem.CountryCurrency,
I_StRpTaxItem.CustomerSupplierAddress,
@Semantics.currencyCode:true
I_StRpTaxItem.DocumentCurrency,
I_StRpTaxItem.DocumentDate,
I_StRpTaxItem.DocumentReferenceID,
I_StRpTaxItem.FiscalPeriod,
I_StRpTaxItem.IsReversal,
I_StRpTaxItem.IsReversed,
I_StRpTaxItem.Ledger,
I_StRpTaxItem.LedgerGroup,
I_StRpTaxItem.LowestLevelTaxJurisdiction,
I_StRpTaxItem.PostingDate,
I_StRpTaxItem.ReportingDate,
I_StRpTaxItem.ReferenceDocumentType,
I_StRpTaxItem.ReportingCountry,
@Semantics.currencyCode:true
I_StRpTaxItem.ReportingCurrency,
I_StRpTaxItem.ReverseDocument,
I_StRpTaxItem.ReverseDocumentFiscalYear,
I_StRpTaxItem.TargetTaxCode,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
I_StRpTaxItem.TaxAmount,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency1'
I_StRpTaxItem.TaxAmountInAdditionalCurrency1,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency2'
I_StRpTaxItem.TaxAmountInAdditionalCurrency2,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CountryCurrency'
I_StRpTaxItem.TaxAmountInCountryCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
I_StRpTaxItem.TaxAmountInRptgCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CountryCurrency'
I_StRpTaxItem.TaxBaseAmountInCountryCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'ReportingCurrency'
I_StRpTaxItem.TaxBaseAmountInRptgCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'DocumentCurrency'
I_StRpTaxItem.TaxBaseAmountInTransCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency1'
I_StRpTaxItem.TaxBaseAmtInAdditionalCrcy1,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'AdditionalCurrency2'
I_StRpTaxItem.TaxBaseAmtInAdditionalCrcy2,
I_StRpTaxItem.TaxIsNotDeductible,
I_StRpTaxItem.TaxItemGroup,
I_StRpTaxItem.TaxJurisdiction,
I_StRpTaxItem.TaxNumber1,
I_StRpTaxItem.TaxNumber2,
I_StRpTaxItem.TaxNumber3,
I_StRpTaxItem.TaxReportingDate,
I_StRpTaxItem.TaxReturnCountry,
I_StRpTaxItem.TaxType,
I_AR_ImportServiceDocumentType.DocumentTypeCategory,
I_AR_ImportServiceDocumentType.IsRespForImportDeclaration,
I_CountrySpecificDocumentType.AR_OfficialDocumentClass,
I_CountrySpecificDocumentType.AR_IsSelfIssuedDocument,
I_Altvcurrency.AlternativeCurrencyKey,
@Semantics.unitOfMeasure: true
cast( 'X' as abap.unit( 3 ) ) as QuantityUnit, //dummy unit for length field
@Semantics.quantity.unitOfMeasure: 'QuantityUnit'
@DefaultAggregation: #SUM
length(I_StRpTaxItem.BusinessPartnerName) as LinearDataLength,
case
when I_StRpTaxItem.AccountingDocumentHeaderText is not null
then substring(I_StRpTaxItem.AccountingDocumentHeaderText, 1, 2)
else
I_StRpTaxItem.AccountingDocumentHeaderText
end as CountryFreeText,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
case
when I_StRpTaxItem.TaxBaseAmountInCoCodeCrcy < 0
then I_StRpTaxItem.TaxBaseAmountInCoCodeCrcy
else I_StRpTaxItem.TaxBaseAmountInCoCodeCrcy
end as TaxBaseAmountInCoCodeCrcy,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
case
when I_StRpTaxItem.TaxAmountInCoCodeCrcy < 0
then I_StRpTaxItem.TaxAmountInCoCodeCrcy
else I_StRpTaxItem.TaxAmountInCoCodeCrcy
end as TaxAmountInCoCodeCrcy,
case
when I_Supplier.Supplier <> '' then
I_Supplier.Country
end as BusinessPartnerCountry,
case
when I_Customer.Customer <> '' then
I_Customer.TaxNumberType
when I_Supplier.Supplier <> '' then
I_Supplier.TaxNumberType
end as TaxNumberType,
case length( I_StRpTaxItem.DocumentReferenceID )
when 13 then substring(I_StRpTaxItem.DocumentReferenceID,6,8)
when 14 then substring(I_StRpTaxItem.DocumentReferenceID,7,8)
end as AR_OfficialDocumentNumber,
case length( I_StRpTaxItem.DocumentReferenceID )
when 13 then substring(I_StRpTaxItem.DocumentReferenceID,1,4)
when 14 then substring(I_StRpTaxItem.DocumentReferenceID,1,5)
end as AR_Branch,
case length( I_StRpTaxItem.DocumentReferenceID )
when 13 then substring(I_StRpTaxItem.DocumentReferenceID,5,1)
when 14 then substring(I_StRpTaxItem.DocumentReferenceID,6,1)
end as AR_PrintCharacter,
'' as TaxClassification, //this GFN cannot be used since its default data element is type length 1
I_AR_TaxClassIdentification.StRpTaxClassification as TaxClassificationCategory,
substring(I_AR_TaxClassIdentification.StRpTaxClassification,1,2) as StRpTaxClassification,
@DefaultAggregation:#MAX
case I_StRpTaxItem.DocumentCurrency
when 'ARS' then 1
else I_StRpTaxItem.ExchangeRate
end as ExchangeRate,
case substring(I_AR_TaxClassIdentification.StRpTaxClassification,1,2)
when 'TX' then 1
when 'VL' then 1
when 'VN' then 1
end as NmbrOfVATRates,
case I_StRpTaxItem.TaxNumber1
when '30546676591' then I_StRpTaxItem.DocumentReferenceID
when '33693450239' then I_StRpTaxItem.DocumentReferenceID
else ' '
end as PurchaseImportForm,
ZeroVATRsn,
case
when _ReverseDoc.FiscalPeriod = I_StRpTaxItem.FiscalPeriod
then 'X'
end as ClearingIsReversible,
/* Associations */
I_StRpTaxItem._AccountingDocument,
I_StRpTaxItem._GLAccount,
I_StRpTaxItem._ReceivablesPayablesItem,
I_StRpTaxItem._ReportedItemsLog,
I_StRpTaxItem._ReportingCurrency,
I_StRpTaxItem._TaxJurisdiction,
I_StRpTaxItem._TaxTypeText,
I_AR_TaxClassIdentification.GLBusinessTransactionType,
I_Supplier.ResponsibleType as ResponsibleType,
_QuantityUnitOfMeasure
}
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