‎2016 Feb 24 5:15 PM
Hi All,
I have some clarifications related to cardinality!!
My requirement is to have 3 nodes
Root->Parent->Child
The cardinality from ROOT to PARENT is 0..1 and
The cardinality from PARENT to CHILD is 1..N
Is there any option or possibility to restrict the records based on cardinality of the nodes by caller program(or class) or any configuration set up. we tried by setting the association cardinality of Root(1..1) and Parent node(1..1) but when tried creating a record in BOBT it is allowing more than one record even though cardinality is 1…1.
Our main requirement is to have only one record at root and parent node, but child node can have multiple records corresponding to parent node key. Please find the below image of our BOPF object structure in pictorial representation.
TYPO in the Below Pic -->> Root to Parent 2 is 1...1
Would be really nice if you can guide us!!
Regards,
Thiru
‎2016 Feb 25 4:21 AM
Hello Thiru,
you should use library class /BOBF/CL_LIB_V_ASSOC_CARD and configure it as action validation on save. As this check also costs performance, it is not inbuilt in the framework by default.
Best regards
Tilmann
‎2016 Feb 25 4:21 AM
Hello Thiru,
you should use library class /BOBF/CL_LIB_V_ASSOC_CARD and configure it as action validation on save. As this check also costs performance, it is not inbuilt in the framework by default.
Best regards
Tilmann