cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual Associations

Former Member
0 Kudos

Dear community,

how can I create a Virtual Associations in the UI Designer?

I tried to create a Virtual Association with theVirtual Associations Modeler with several different bindings, but I always got an error during the activation of the UI.

It is not clear to me, how we configure this properly.

Furthermore, i could not find any documentation about this feature. Does someone know, how this works?

What fields do we need to select?

I tried to select the UUID of the target BO in the BO Model of the source BO and the UUID of the target BO in the BOModel of the target BO.

That did not work.

It would be great, if someone could share his experience with this feature.

Kind regards,

Christine Toblier

Accepted Solutions (0)

Answers (1)

Answers (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Christine,

What do you want to achive with a "Virtual Association"?

Thanks,

  Horst

Former Member
0 Kudos

Hello Horst,

I created a custom BO which has an element for the alternative key of a particular SAP Standard BO. There is no association, just the a field with the key on the custom BO. I want to show fields of the standard BO on the screen of my custom BO.

I expected, that virtual associations are the solution to solve this.

In my case the custom BO and the standard BO are part of different deployment units. Maybe, that's the reason for the error.

Kind regards,

Christine

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Christine,

If you add the annoatation [CrossDeploymentUnit] to the association in the BODL of the Custom BO it may work.

This should enable the read access.

HTH,

   Horst

Former Member
0 Kudos

Hi Horst,

thanks for your answer. The goap was to implement this without a solution, just with a foreign key field. The reason is that I learned that setting associations costs Performance.

Nevertheless I tried to implement this with an association like that:

[CrossDeploymentUnit] association ToEmployeeTime to EmployeeTime using UUID;

But the association is not available in the UI Designer.

Do you have an idea, what else I need to do in order to add fields of the associated BO to my screen?

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Christine,

I forget about that. Sorry.

What I do for a Virtual Association in the UI Designer is the following:

I select the elements for the source and target keys. Be aware that they are of the same type.

The I give a name and press "Create".

In my case the UI Designer did not nag.

HTH,

   Horst

Former Member
0 Kudos

Hi Horst!

Thank you for your answer! I think I did exactly the same thing.

Saving and activating the screen is OK with my UI Designer. But the error message appeared after I had added a field of the Virutal Association to the screen and tried to save and activate.

Can you show a field of the "Simple" BO on your screen?

Does this work for BOs of different DU too?

Kind regards, Christine

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Christine,

Please tell me the complete story at once the next time.

Curiously the same error message comes up if the target BO is in the same DU as well as in another DU.

So I am afraid you need to raise an incident about a malfunction with the Virtual Association.

Sorry,

   Horst

former_member119294
Discoverer
0 Kudos

Hi Horst,

The same issue applies for Reference Association.


I tried to create a Reference Association in order to filter information from BO Promotion->BusinessTransactionDocumentReference

The reference is created, however when I try to bind it the following error is generated during activation:

XRepositoryException (4)Create Behaviour of attribute 'ID1' expected to be 'NEVER' for secondary bindings with target condtions (fragment 'DUMMY_SADL_BO_UUID')

I will create an incident about this. If you have any additional suggestions or maybe a workaround which would not require to create an additional extension field on BO to replicate data, please let me know.

Best Regards,

Fernando Mendel

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Fernando,

I assume the UI Designer is not made to suppor these features for PDI.

Let's wait for the answer based on the incident.

Bye,

   Horst

Former Member
0 Kudos

Hello Horst,

Do you know if the feature is available for pdi?

Is it planned to be available? Would be a nice feature

Kind Regards,

Lukas

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Lukas,

We have only a very small influence in the UI Designer.

They will tell us: You have your association the BODL. Use that.

Therefore the answer is: No, it will not come.

Sorry,

   Horst