P_AR_PurchaseVATRateSupplier

DDL: P_AR_PURCHASEVATRATESUPPLIER SQL: PARPURVTRTSUPLR Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_AR

Argentina Purchase VAT Rate - Supplier

P_AR_PurchaseVATRateSupplier is a Consumption CDS View that provides data about "Argentina Purchase VAT Rate - Supplier" in SAP S/4HANA. It reads from 1 data source (I_Supplier) and exposes 5 fields with key fields CompanyCode, FiscalYear, AccountingDocument, SupplierendaslifnrasSupplier. Part of development package GLO_FIN_IS_VAT_AR.

Data Sources (1)

SourceAliasJoin Type
I_Supplier Supplier inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PARPURVTRTSUPLR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_OperationalAcctgDocItem CompanyCode
KEY FiscalYear I_OperationalAcctgDocItem FiscalYear
KEY AccountingDocument I_OperationalAcctgDocItem AccountingDocument
KEY SupplierendaslifnrasSupplier
DebitCreditCodeendasDebitCreditCode
@AbapCatalog.sqlViewName: 'PARPURVTRTSUPLR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.private:true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass:  #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #D

define view P_AR_PurchaseVATRateSupplier
  as select distinct from I_OperationalAcctgDocItem
    inner join   I_Supplier as Supplier on I_OperationalAcctgDocItem.Supplier = Supplier.Supplier
                                        and Supplier.TaxNumber1 <> '30546676591'
                                        and Supplier.TaxNumber1 <> '33693450239'
{
  key I_OperationalAcctgDocItem.CompanyCode,
  key I_OperationalAcctgDocItem.FiscalYear,
  key I_OperationalAcctgDocItem.AccountingDocument,
  key cast(
        case
          when Supplier.FiscalAddress <> ''
            then Supplier.FiscalAddress
          else Supplier.Supplier
        end as lifnr
      )   as Supplier,

      case
        when SpecialGLTransactionType = 'A' and DebitCreditCode = 'S'
          then 'H'
        when SpecialGLTransactionType = 'A' and DebitCreditCode = 'H'
          then 'S'
        else I_OperationalAcctgDocItem.DebitCreditCode
      end as DebitCreditCode
}
where
      I_OperationalAcctgDocItem.FinancialAccountType       = 'K'
  and I_OperationalAcctgDocItem.IsUsedInPaymentTransaction = ''