‎2010 Jan 13 4:23 PM
On selection screen I have one field and I want to add some values to that field.
So, I am planning to use List box so Can anyone please guide me how to add the values to the particular field.
Thank you so much in advance.
‎2010 Jan 13 4:27 PM
‎2010 Jan 13 4:34 PM
HI,
DATA: lista TYPE vrm_values.
DATA: linea LIKE LINE OF lista.
SELECT * FROM zproyecto WHERE empresa = empresa.
linea-key = zproyecto-proyecto.
linea-text = zproyecto-descr.
APPEND linea TO lista.
ENDSELECT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'LS_PROYECTO'
values = lista.
where,
LS_PROYECTO is the name of the field (listbox in dynpro)
Regards,
‎2010 Jan 13 5:44 PM
‎2010 Jan 13 6:08 PM
Would you please share the solution? It is part of the forum rules, you know.
Rob