cancel
Showing results for 
Search instead for 
Did you mean: 

Checkbox by group

Former Member
0 Kudos

Hi All,

I used the below code for generating the value for checkbox by group. I want a add a description to my check box so that while display on run time , the key value(L1) along the description(level management) should be displayed. Can any one help me resolving this issue please.

method FILL_SCOPE .

DATA lt_scope TYPE wd_this->Elements_scope.

DATA ls_scope LIKE LINE OF lt_scope.

ls_scope-text = 'L1'.

append ls_scope to lt_scope.

ls_scope-text = 'L2'.

append ls_scope to lt_scope.

ls_scope-text = 'L3'.

append ls_scope to lt_scope.

ls_scope-text = 'CR'.

append ls_scope to lt_scope.

ls_scope-text = 'SR'.

append ls_scope to lt_scope.

node->bind_table(

new_items = lt_scope

set_initial_elements = abap_true ).

endmethod.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi All,

What i did was, added an another attribute to the context node. Placed the key values in one attribute and read that attribute in the code for further manipulations and the description in the another attribute and binded that attribute to the checkbox property value.

Former Member
0 Kudos

MY PROBLEM GOT RESOLVED.

Former Member
0 Kudos

would be nice and useful for other readers if you detail the solution.