2010/12/02

[ABAP] Display ListBox in Parameter of Selection Screen

Display ListBox in Parameter of Selection Screen

REPORT zpwtest.


TYPE-POOLS: vrm.

DATA: name TYPE vrm_id,

      list TYPE vrm_values,

      value LIKE LINE OF list.

 

PARAMETERS: ps_parm(10) AS LISTBOX VISIBLE LENGTH 10.

 

AT SELECTION-SCREEN OUTPUT.

 

  name = 'PS_PARM'.

  value-key = '1'.

  value-text = 'LINE 1'.

  APPEND value TO list.

  value-key = '2'.

  value-text = 'LINE 2'.

  APPEND value TO list.

  CALL FUNCTION 'VRM_SET_VALUES'

       EXPORTING

            id     = name

            values = list.

 

START-OF-SELECTION.

  WRITE: / 'PARAMETER:', ps_parm.

沒有留言:

發佈留言