cancel
Showing results for 
Search instead for 
Did you mean: 

using listbox in report

Former Member
0 Kudos

Hi,

its possible to use in report as parameter listbox with type of internal table? I had filled table it_status_texts with datas, but the listbox is still empty.

thanks,

DATA:

BEGIN OF wa_status_texts,

gbsta_bez LIKE vbstt-gbsta_bez,

END OF wa_status_texts,

it_status_texts LIKE TABLE OF wa_status_texts with header line.

PARAMETERS:

p_status LIKE it_status_texts-gbsta_bez AS LISTBOX

VISIBLE LENGTH 20.

INITIALIZATION.

SELECT DISTINCT bezei FROM tvbst

INTO wa_status_texts-gbsta_bez

WHERE spras = sy-langu

AND tbnam = 'VBUK'.

APPEND wa_status_texts TO it_status_texts.

CLEAR wa_status_texts.

ENDSELECT.

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

You need to use FM VRM_SET_VALUES to ge the dropdown with values.

here is the code sample.


type-pools: vrm.
data: name type vrm_id, list type vrm_values, value like line of
list.

parameters: p_obj(2) as listbox visible length 50 obligatory
            default 'A' .

at selection-screen output .

   clear list .
    refresh list .
    name = 'P_OBJ'.
    value-key = 'A'. value-text = 'Object A'.
    append value to list .

     value-key = 'B'. value-text = 'Object B'.
    append value to  list .


 call function 'VRM_SET_VALUES'
         exporting
              id     = name
              values = list.

Hope this helps.

Regards

Raja

Answers (0)