Skip to Content
0
B K
Mar 24, 2009 at 02:39 PM

how to populate both key and text in drop down list in dialog prog screen

168 Views

Hi, Can anyone please advice how to display both key and text in the drop down list in dialog prog screen. I tried with below code. keys and texts are getting populated in values table but only text is appearing when click on drop down. need to display both key and text in the drop down. Thanks in advance.

TABLES: ZRPP_MODELS, ZRPP_FFLSTRATEGY.
TYPE-POOLS : VRM.
DATA : field_id TYPE VRM_ID ,
       values   TYPE VRM_VALUES,
       value    LIKE LINE OF values.
-------------------------------------
FORM fill_model_list .
  select MODEL MODEL_DESC from ZRPP_MODELS into value.
    APPEND value TO VALUES.
  endselect.

  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id     = 'ZRPP_MODELS-MODEL'
      values = values.
ENDFORM.