on 12-15-2004 11:46 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.