Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Selection screen - List box

Former Member
0 Likes
549

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.

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
511

Please search in SCN.

Read only

Former Member
0 Likes
511

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,

Read only

Former Member
0 Likes
511

solved

Read only

0 Likes
511

Would you please share the solution? It is part of the forum rules, you know.

Rob