P_RO_SAFTNTRTAXINFO

DDL: P_RO_SAFTNTRTAXINFO Type: view_entity CONSUMPTION Package: GLO_FIN_IS_SAFT_RO

Purchase invoice items

P_RO_SAFTNTRTAXINFO is a Consumption CDS View that provides data about "Purchase invoice items" in SAP S/4HANA. It reads from 1 data source (I_TaxItem) and exposes 3 fields. Part of development package GLO_FIN_IS_SAFT_RO.

Data Sources (1)

SourceAliasJoin Type
I_TaxItem Bset from

Annotations (7)

NameValueLevelField
VDM.viewType #CONSUMPTION view
VDM.private true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (3)

KeyFieldSource TableSource FieldDescription
CompanyCode I_TaxItem CompanyCode
FiscalYear I_TaxItem FiscalYear
AccountingDocument I_TaxItem AccountingDocument
@VDM.viewType: #CONSUMPTION
@VDM.private:true
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view entity P_RO_SAFTNTRTAXINFO

  as select from I_TaxItem as Bset

{

  Bset.CompanyCode,
  Bset.FiscalYear,
  Bset.AccountingDocument,
  cast( max (case when Bset.TaxBaseAmountInTransCrcy <> 0 then
    get_numeric_value(Bset.TaxBaseAmountInCountryCrcy) / get_numeric_value(Bset.TaxBaseAmountInTransCrcy) else 0 end )
    as saft_ro_exchange_rate) as RO_SAFTExchangeRate
}
where
  Bset.TaxCountry = 'RO'

group by
  Bset.CompanyCode,
  Bset.FiscalYear,
  Bset.AccountingDocument