Application Development 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: 

How to add record in List Box in Screen Painter(SE51) ?

Former Member
0 Kudos

I am not able to add record in List box in Screen Painter using se51 Transaction code.

Regards,

Nirav Desai

3 REPLIES 3

MarcinPciak
Active Contributor
0 Kudos

You didn't provide much details how you trying to add the record so the answer would be also not specific one: you can find details in demo programs DEMO_DROPDOWN_LIST_BOX , DEMO_DYNPRO_DROPDOWN_LISTBOX .

Regards

Marcin

faisal_altaf2
Active Contributor
0 Kudos

Hi, Nirav

You will have to create a Search help and attach it to that field it will automatically Populate List Box.

Please Reply if any Confusion.

Thanks and Best Regards,

Faisal

Former Member
0 Kudos

Dear All,

I found the solution.

If you are facing same problem , follow the bellow steps.

1. Declare in report.

TYPE-POOLS: VRM.

DATA: NAME TYPE VRM_ID,

LIST TYPE VRM_VALUES,

VALUE LIKE LINE OF LIST.

2. IN PBO Event.

clear: list.

NAME = 'TXT_PERIOD'. " your screen field name

VALUE-KEY = '1'.

VALUE-TEXT = 'LINE 1'.

APPEND VALUE TO LIST.

VALUE-KEY = '2'.

VALUE-TEXT = 'LINE 2'.

APPEND VALUE TO LIST.

VALUE-KEY = '3'.

VALUE-TEXT = 'LINE 3'.

APPEND VALUE TO LIST.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING ID = NAME VALUES = LIST.

Regards,

Nirav Desai