Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Associations and checks

Roman71
Explorer
0 Kudos

Hello,

I create a root -> sub object node structure with a 1:1 association, is the association checked by the BO and I can´t create more than one sub object or do I have to program any checks to avoid creation of more than one sub object.

Can anyone explain the logic to me? Is there an example in the system?

Many thanks

Best regards


Roman

1 ACCEPTED SOLUTION

former_member190794
Active Participant
0 Kudos

Hello Roman,

as this check would cost performance, it is not inbuilt in the framework itself. There are applications that rely on fieldcontrol (or are satisfied with just raising error messages) and would not like to spend performance on checking the cardinality and rejecting the modifications.

However you can configure /BOBF/CL_LIB_V_ASSOC_CARD in case you need this functionality (e.g. raising an error message in case of cardinality violation). You could configure it as action validation on save.

Best regards

Tilmann

2 REPLIES 2

former_member190794
Active Participant
0 Kudos

Hello Roman,

as this check would cost performance, it is not inbuilt in the framework itself. There are applications that rely on fieldcontrol (or are satisfied with just raising error messages) and would not like to spend performance on checking the cardinality and rejecting the modifications.

However you can configure /BOBF/CL_LIB_V_ASSOC_CARD in case you need this functionality (e.g. raising an error message in case of cardinality violation). You could configure it as action validation on save.

Best regards

Tilmann

0 Kudos

Hello Tilmann,

many thanks for the quick and clear answer.

Best regards

Roman