I_MX_BPRelationshipRole

DDL: I_MX_BPRELATIONSHIPROLE Type: view_entity COMPOSITE Package: GLO_FIN_IS_MX_GEN

Provides Business Partners Roles

I_MX_BPRelationshipRole is a Composite CDS View that provides data about "Provides Business Partners Roles" in SAP S/4HANA. It reads from 8 data sources and exposes 24 fields with key fields CompanyCode, BusinessPartnerUUID, OffsettingAccountType, OffsettingAccount, Language. Part of development package GLO_FIN_IS_MX_GEN.

Data Sources (8)

SourceAliasJoin Type
I_CustomerToBusinessPartner BusinessPartner inner
I_SupplierToBusinessPartner BusinessPartner inner
I_CompanyCode CompanyCode from
I_CompanyCode CompanyCode union_all
I_Customer Customer inner
I_CustomerCompany CustomerCompany inner
I_Supplier Supplier inner
I_SupplierCompany SupplierCompany inner

Parameters (1)

NameTypeDefault
P_CompanyCode fis_bukrs

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Provides Business Partners Roles view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode
KEY BusinessPartnerUUID I_SupplierToBusinessPartner BusinessPartnerUUID
KEY OffsettingAccountType
KEY OffsettingAccount
KEY Language I_CompanyCode Language
ReferenceAccountGroup
CoCodeSpcfcAuthorizationGroup I_CustomerCompany AuthorizationGroup
IsOneTimeAccount I_Customer IsOneTimeAccount
TaxNumberType I_Customer TaxNumberType
AddressID I_Customer AddressID
TaxNumber1 I_Customer TaxNumber1
PostalCode I_Customer PostalCode
KEY BusinessPartnerUUID I_SupplierToBusinessPartner BusinessPartnerUUID
KEY OffsettingAccountType
KEY OffsettingAccount
KEY Language I_CompanyCode Language
ReferenceAccountGroup
CoCodeSpcfcAuthorizationGroup I_SupplierCompany AuthorizationGroup
IsOneTimeAccount I_Supplier IsOneTimeAccount
TaxNumberType I_Supplier TaxNumberType
AddressID I_Supplier AddressID
TaxNumber1 I_Supplier TaxNumber1
PostalCode I_Supplier PostalCode
TaxNumberResponsible I_Supplier TaxNumberResponsible
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl:{
  authorizationCheck: #MANDATORY,
  personalData.blocking: #REQUIRED
}
@EndUserText.label: 'Provides Business Partners Roles'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #C,
  sizeCategory: #L,
  dataClass: #MIXED
}
@VDM.viewType: #COMPOSITE
define view entity I_MX_BPRelationshipRole
  with parameters
    @EndUserText.label: 'Company Code'
    P_CompanyCode : fis_bukrs

  as select from I_CompanyCode               as CompanyCode
    inner join   I_CustomerCompany           as CustomerCompany on CustomerCompany.CompanyCode = CompanyCode.CompanyCode
    inner join   I_CustomerToBusinessPartner as BusinessPartner on BusinessPartner.Customer = CustomerCompany.Customer
    inner join   I_Customer                  as Customer        on Customer.Customer = CustomerCompany.Customer
{
  key cast( CustomerCompany.CompanyCode as fis_bukrs preserving type ) as CompanyCode,
  key BusinessPartner.BusinessPartnerUUID,
  key cast( 'D' as gkoar preserving type )                             as OffsettingAccountType,
  key cast( BusinessPartner.Customer as gkont preserving type )        as OffsettingAccount,
  key CompanyCode.Language,
      cast( Customer.CustomerAccountGroup as ktokd preserving type )   as ReferenceAccountGroup,
      CustomerCompany.AuthorizationGroup                               as CoCodeSpcfcAuthorizationGroup,
      Customer.IsOneTimeAccount,
      Customer.TaxNumberType,
      Customer.AddressID,
      Customer.TaxNumber1,
      Customer.PostalCode,
      cast( '' as stenr )                                               as TaxNumberResponsible
}
where
      CompanyCode.Country         = 'MX'
  and CustomerCompany.CompanyCode = $parameters.P_CompanyCode

union all

select from  I_CompanyCode               as CompanyCode
  inner join I_SupplierCompany           as SupplierCompany on SupplierCompany.CompanyCode = CompanyCode.CompanyCode
  inner join I_SupplierToBusinessPartner as BusinessPartner on BusinessPartner.Supplier = SupplierCompany.Supplier
  inner join I_Supplier                  as Supplier        on Supplier.Supplier = SupplierCompany.Supplier
{
  key cast( SupplierCompany.CompanyCode as fis_bukrs preserving type ) as CompanyCode,
  key BusinessPartner.BusinessPartnerUUID,
  key cast( 'K' as gkoar preserving type )                             as OffsettingAccountType,
  key cast( BusinessPartner.Supplier as gkont preserving type )        as OffsettingAccount,
  key CompanyCode.Language,      
      cast( Supplier.SupplierAccountGroup as ktokd preserving type )   as ReferenceAccountGroup,
      SupplierCompany.AuthorizationGroup                               as CoCodeSpcfcAuthorizationGroup,
      Supplier.IsOneTimeAccount,
      Supplier.TaxNumberType,
      Supplier.AddressID,
      Supplier.TaxNumber1,
      Supplier.PostalCode,
      Supplier.TaxNumberResponsible
}
where
      CompanyCode.Country         = 'MX'
  and SupplierCompany.CompanyCode = $parameters.P_CompanyCode