Skip to Content

Associations and checks

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 16, 2016 at 04:05 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.