Skip to Content
0
Oct 07, 2020 at 08:08 AM

Business Partner different address in OVS in a custom embedded component

40 Views

Hi experts,

I have a custom BO in which I can select a business partner and add some additional information to it. The client would like to be able to select an address of the different address a business partner might have in the master data. For instance this business partner have 2 address:

When I select this partner in the following list view, I would like to have the addresses associated with it be shown when I click on the OVS of the addresses:

I tried with this reuse UI OVS: /SAP_BYD_APPLICATION_UI/crm/ovs/selectaddress/SelectAddress.OVS.uicomponent but I couldn't achieve the right result.

The code of the BO :

import AP.Common.GDT as apCommonGDT;
import AP.FO.BusinessPartner.Global;
import AP.ProjectManagement.Global;
businessobject ProjectBusinessPartner 
{
[AlternativeKey]element ProjectUUID:UUID;
node BusinessPartners[0,n]
{
[Label("Business Partner ID")]element BusinessPartnerID: BusinessPartnerID;
[Label("Business Partner")]element BusinessPartnerName: LANGUAGEINDEPENDENT_MEDIUM_Name;
[Label("Rolle")]element Role : PartnerRoleCode;
[Label("Typ")]element Type : PartnerTypeCode;
[Label("Branche")]element Branche :IndustrialSectorCode;
[Label("Obsolet")]element Deprecated:Indicator;

association toBusinessPartner to BusinessPartner;
}
association toProject to Project;

}

Any suggestions?