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

VRM_SET_VALUES

Former Member
0 Likes
384

Hi,

When I am using the FM : VRM_SET_VALUES, I am geting the key value but not the text. Below is the code:

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.

WRITE: / 'PARAMETER:', PS_PARM.

Here the value for PS_PARM is 2(when second record is selected).

How can i get LINE 2 instead of 2?

I did try using read statement but its not working....

1 REPLY 1
Read only

Former Member
0 Likes
303

I did try loop ... end loop.. it works now....

Hence, the thread is closed. Awards to myself.....:-)