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
2,542

Hi,

I have a different requirement for my module pool program.

I have a list box in module pool program.I have set VRM_SET_VALUES

Once I select the values it is saving only key,it is saving only key value i.e 001, 002 ...etc

But I need to save key as well as text.

for example 001 - abc

002- xyz

003-mnb

can some one provide me code or idea?

thanks in advance

3 REPLIES 3
Read only

Former Member
0 Likes
1,206

HI,

DEMO_DYNPRO_DROPDOWN_LISTBOX

Refer to this link..

Read only

former_member632729
Contributor
0 Likes
1,206

Hi Dude,

GO through this Link:[http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm]

Example


REPORT ZLIST.

TYPE-POOLS: VRM.

DATA: NAME  TYPE VRM_ID,
      LIST  TYPE VRM_VALUES,
      VALUE LIKE LINE OF LIST.

PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.

AT SELECTION-SCREEN OUTPUT.

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.

START-OF-SELECTION.
WRITE: / 'PARAMETER:', PS_PARM.

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
1,206

Hi,

Refer the programs:-

DEMO_DYNPRO_DROPDOWN_LISTBOX

DEMO_DROPDOWN_LIST_BOX

Also you can refer:

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm

Hope this helps you.

Regards,

Tarun