P_RO_SAFTCACTGSTDPARTADDRTXNRM

DDL: P_RO_SAFTCACTGSTDPARTADDRTXNRM Type: view_entity CONSUMPTION Package: FKK_ID_RO_REP

Standard Partner Address and Tax Number

P_RO_SAFTCACTGSTDPARTADDRTXNRM is a Consumption CDS View that provides data about "Standard Partner Address and Tax Number" in SAP S/4HANA. It reads from 3 data sources (I_BusinessPartner, P_RO_SAFTCActgStdPartAddr, I_Country) and exposes 2 fields with key field BusinessPartner. Part of development package FKK_ID_RO_REP.

Data Sources (3)

SourceAliasJoin Type
I_BusinessPartner BP from
P_RO_SAFTCActgStdPartAddr BPAddr left_outer
I_Country Country left_outer

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner I_BusinessPartner BusinessPartner
BPTaxType
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
    serviceQuality: #X,
    sizeCategory: #S,
    dataClass: #MIXED
}
@VDM.private: true
@VDM.viewType: #CONSUMPTION
define view entity P_RO_SAFTCACTGSTDPARTADDRTXNRM as 
select from I_BusinessPartner as BP 
    left outer join P_RO_SAFTCActgStdPartAddr as BPAddr 
        on BPAddr.BusinessPartner = BP.BusinessPartner
    left outer join I_Country as Country 
        on Country.Country = BPAddr.Country
//    left outer to one join dfkkbptaxnum as BPTax 

    left outer to one join I_Businesspartnertaxnumber as BPTax 
        on BPTax.BusinessPartner = BP.BusinessPartner 
        and Country.CountryISOCode = left(BPTax.BPTaxType,2)
{
  key BP.BusinessPartner,
  max(BPTax.BPTaxType)  as BPTaxType
}
where BPTax.BPTaxType <> 'RO9'
group by BP.BusinessPartner