P_BPPartnerFunctionNumber

DDL: P_BPPARTNERFUNCTIONNUMBER SQL: PBPPFNUMBER Type: view COMPOSITE Package: VDM_MD_BP

Union view of various partner types

P_BPPartnerFunctionNumber is a Composite CDS View that provides data about "Union view of various partner types" in SAP S/4HANA. It reads from 4 data sources (I_ContactPerson, I_Customer, I_PersWrkAgrmtSrchHelp_1, I_Supplier) and exposes 28 fields with key fields BusinessPartner, PartnerFunctionType, PartnerFunctionType, PartnerFunctionType, PartnerFunctionType. Part of development package VDM_MD_BP.

Data Sources (4)

SourceAliasJoin Type
I_ContactPerson I_ContactPerson union
I_Customer I_Customer from
I_PersWrkAgrmtSrchHelp_1 I_PersWrkAgrmtSrchHelp_1 union
I_Supplier I_Supplier union

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PBPPFNUMBER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #REQUIRED view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner I_Customer Customer
KEY PartnerFunctionType
BusinessPartnerName
OrganizationBPName1 I_Customer OrganizationBPName1
BusinessPartnerName1 I_Customer BusinessPartnerName1
OrganizationBPName2 I_Customer OrganizationBPName2
BusinessPartnerName2 I_Customer BusinessPartnerName2
SupplierasBusinessPartner
KEY PartnerFunctionType
BusinessPartnerName
OrganizationBPName1 I_Supplier OrganizationBPName1
BusinessPartnerName1 I_Supplier BusinessPartnerName1
OrganizationBPName2 I_Supplier OrganizationBPName2
BusinessPartnerName2 I_Supplier BusinessPartnerName2
KEY PartnerFunctionType
BusinessPartnerName PersonFullName
OrganizationBPName1 LastName
BusinessPartnerName1 LastName
OrganizationBPName2 FirstName
BusinessPartnerName2 FirstName
ContactPersonasBusinessPartner
KEY PartnerFunctionType
BusinessPartnerName
OrganizationBPName1 I_ContactPerson LastName
BusinessPartnerName1 I_ContactPerson LastName
OrganizationBPName2 I_ContactPerson FirstName
BusinessPartnerName2 I_ContactPerson FirstName
IsBusinessPurposeCompleted IsBusinessPurposeCompleted
@AbapCatalog.sqlViewName: 'PBPPFNUMBER'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AccessControl.personalData.blocking: #REQUIRED
define view P_BPPartnerFunctionNumber
  as select from I_Customer
{
  key I_Customer.Customer                                                        as BusinessPartner,
  key cast ( 'KU' as char2 )                                                     as PartnerFunctionType,
      I_Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartnerName as BusinessPartnerName,
      I_Customer.OrganizationBPName1,
      I_Customer.BusinessPartnerName1,
      I_Customer.OrganizationBPName2,
      I_Customer.BusinessPartnerName2,
      I_Customer.IsBusinessPurposeCompleted

      //    @Consumption.filter.hidden: true

      //    @UI.hidden: true

      //    I_Customer._CustomerToBusinessPartner.Customer,

      //    I_Customer._CustomerToBusinessPartner._Customer

      //        //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataControllerSet,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController1,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController2,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController3,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController4,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController5,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController6,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController7,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController8,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController9,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Customer.DataController10

}

union

select from I_Supplier
{
  key I_Supplier.Supplier                                                        as BusinessPartner,
  key cast ( 'LI' as char2 )                                                     as PartnerFunctionType,
      I_Supplier._SupplierToBusinessPartner._BusinessPartner.BusinessPartnerName as BusinessPartnerName,
      I_Supplier.OrganizationBPName1,
      I_Supplier.BusinessPartnerName1,
      I_Supplier.OrganizationBPName2,
      I_Supplier.BusinessPartnerName2,
      I_Supplier.IsBusinessPurposeCompleted

      //    @Consumption.filter.hidden: true

      //    @UI.hidden: true

      //    I_Supplier._SupplierToBusinessPartner.Supplier,

      //    I_Supplier._SupplierToBusinessPartner._Supplier


      //    //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataControllerSet,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController1,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController2,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController3,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController4,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController5,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController6,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController7,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController8,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController9,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController10

}

union

select from I_PersWrkAgrmtSrchHelp_1
{
  key PersonWorkAgreement             as BusinessPartner,
  key cast ( 'PE' as char2 )          as PartnerFunctionType,
      PersonFullName                  as BusinessPartnerName,
      LastName                        as OrganizationBPName1,
      LastName                        as BusinessPartnerName1,
      FirstName                       as OrganizationBPName2,
      FirstName                       as BusinessPartnerName2,
      IsBusinessPurposeCompleted


}

union

select from I_ContactPerson
{
  key I_ContactPerson.ContactPerson                                               as BusinessPartner,
  key cast ( 'AP' as char2 )                                                      as PartnerFunctionType,
      concat_with_space( I_ContactPerson.LastName, I_ContactPerson.FirstName, 1 ) as BusinessPartnerName,
      I_ContactPerson.LastName                                                    as OrganizationBPName1,
      I_ContactPerson.LastName                                                    as BusinessPartnerName1,
      I_ContactPerson.FirstName                                                   as OrganizationBPName2,
      I_ContactPerson.FirstName                                                   as BusinessPartnerName2,
      IsBusinessPurposeCompleted

      //    @Consumption.filter.hidden: true

      //    @UI.hidden: true

      //    I_ContactPerson.Customer,

      //    I_ContactPerson._Customer


      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_ContactPerson._Customer.DataControllerSet

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController1,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController2,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController3,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController4,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController5,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController6,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController7,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController8,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController9,

      //      //added only for DCL check

      //      @UI.hidden: true

      //      @Consumption.filter.hidden: true

      //      I_Supplier.DataController10

}