cancel
Showing results for 
Search instead for 
Did you mean: 

How To Set Cardinality Dynamically

former_member226225
Contributor
0 Kudos

Hi Friends,

            

              I am creating node as dynamically , so when i am creating the node by default it is taking the cardinality as MULTIPLE but i want to restrict  the node as 1..1 .

How to set Cardinality as dynamically.

Thanks,

Raghunadh.K

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi  Raghu,

Use below code...

 

lr_child_node_info = lr_node_info->add_new_child_node(

name = 'STUDENT'

is_singleton = abap_true

is_multiple = abap_false

is_mandatory = abap_true

static_element_type = 'YSTR_PERSON' ).

in above code 

 

IS_MULTIPLE  =   abap_false.   (Gives  cardinality   1...1).

Regards,

Venkat