cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding dorpdowns in ALV

Former Member
0 Kudos

Hi All,

I have 2 columns in the ALV employee number and Name.

For the emp no i have dropdown by index with a list of values (Empno and Employee name concatenated) as a valueset.

I have shown this concatenated value to the user in the dropdown. When the user selects any value from this list, I need to show the value to the user after the selection.

LOOP AT wd_comp_controller->lit_employees INTO wd_comp_controller->lis_employees.
      CONCATENATE wd_comp_controller->lis_employees-pernr '-'
                  wd_comp_controller->lis_employees-emp_name INTO lv_str.
      ls_value_set-value = wd_comp_controller->lis_employees-pernr.
      ls_value_set-text  = lv_str.
      APPEND  ls_value_set TO lt_value_set_emp.
      CLEAR ls_value_set.
    ENDLOOP.                  
*?For consolidated
  IF lr_node_info IS BOUND.
    lr_node_info->set_attribute_value_set( name = 'PERNR'
               value_set = lt_value_set_emp ).
  ENDIF.                              "IF lr_node_info is bound. 

In one of the ALV events, i have coded by getting the value but as this attribute is initialy bound to the TEXT (ie lv_str) i tried to show the value to the user by defaluting but this shows the concatenated value.

My requirement is to show the user with conctatenated values when clicks on dropdown and after selection only needs to be shown.

Any inputs.

Regards,

Lekha.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

done