Application Development and Automation 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: 
Read only

Cardinality in BOPF Framework development

thirus11
Participant
0 Likes
948

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

1 ACCEPTED SOLUTION
Read only

former_member190794
Active Participant
0 Likes
653

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

1 REPLY 1
Read only

former_member190794
Active Participant
0 Likes
654

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