cancel
Showing results for 
Search instead for 
Did you mean: 

How to create association from EBO to custom BO

Former Member
0 Kudos

Hello there!

I need to include an association from the Customer BO to a new BO (CustomerType).

I'm trying to do the following:

businessobject CustomerType {

     element ID : ID;

     element Description : LANGUAGEINDEPENDENT_MEDIUM_Name;

     node CustomerSubType [0,n] {

          element CustomerSubTypeID : ID;

          element Description : LANGUAGEINDEPENDENT_MEDIUM_Name;

     }

}

[Extension] businessobject AP.FO.BusinessPartner.Global:Customer {

     node AddressInformation {

     }

   

     node Common {

         

          association ToCustomBO [1,1] to myBO;             

     }

}

The following error is shown:

Keyword 'association' is not supported in business object extensions.

How it could be done?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

umehring4cloud
Participant
0 Kudos

Hi,

Unfortunately it is not possible to have an association in an XBO. Thus you need a workaround. As I do not know what you exactly want to do I can only tell you how I usually solve problems like this.

First of all, my custom BO should have the ID of the Customer BO as alternative key. And make sure to use the same data type for the ID (Most probably the BusinessPartnerInternalID datatype). Thus you could easily retreive the information of your customer BO in case you need it.

If you want to have the info in the UI use an EC which you place in the Customer UIs. I am not sure, but normally the QA and OIF of the customer should offer the CustomerID in the outports to fire your EC. The inport of the EC should first do a Read operation with the CustomerID - and in case nothing is found it can do a create.

This way you can "fake" an association, but it still is a lot of work and coding to do.

Hope to help,

Uwe

Former Member
0 Kudos

Thank you very much.

I'll try something like this.

Answers (0)