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

List box on selection screen

Former Member
0 Likes
2,088

Hi,

I have created a list box on selection screen and i am passing the values to that dynamically. My requirement is when i select any value from list and press enter the value is reset to the blank in that field.

What i need to do to keep that value even when any user action happens or execute the report ?

Thanks & regards,

Srinath

Hi,

I have created a list box on selection screen and i am passing the values to that dynamically. My requirement is when i select any value from list and press enter the value is reset to the blank in that field.

What i need to do to keep that value even when any user action happens or execute the report ?

Thanks & regards,

Srinath

7 REPLIES 7
Read only

Former Member
0 Likes
1,418

Hi,

There are somany threads available for this. Please refer the SCN Rules before Posting.

Please research in SCN Before Posting.

With Regards,

Sumodh.P

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,418

Did you write the code to populate the listbox in AT SELECTION-SCREEN OUTPUT event ?

Read only

Former Member
0 Likes
1,418

Hi

Do the following.

PARAMETERS name(n) AS LISTBOX VISIBLE LENGTH n. Here n is an integer and name is the name of parameter.

Fill the drop down table att the selection screen event AT SELECTION-SCREEN OUTPUT. Your work will be done.

Thanks

Venkat.

Read only

Former Member
0 Likes
1,418

Hi

I forgot to give you the function module used to fill the drop down table.

PARAMETERS name(n) AS LISTBOX VISIBLE LENGTH n. Here n is an integer and name is the name of parameter.

Fill the drop down table att the selection screen event AT SELECTION-SCREEN OUTPUT USING function module 'VRM_SET_VALUES' . Your work will be done.

Thanks

Venkat

Read only

Former Member
0 Likes
1,418

Hi Srinath,

Check the below thread,

Create a test program as explained in the thread and Check

You need to pass same values to both Key and Text (As per my observations then only they will be displayed on Screen after you press enter )

I faced similar Issue, hence i could advice you about it.

Cheerz

Ram

Read only

Former Member
0 Likes
1,418

Hi...

Attached the sample code..for List...Hope this solves your problem

REPORT ZTMS_TEST1 .

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.

clear: list.

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.

VALUE-KEY = '3'.

VALUE-TEXT = 'LINE 3'.

APPEND VALUE TO LIST.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING ID = NAME VALUES = LIST.

START-OF-SELECTION.

WRITE: / 'PARAMETER:', PS_PARM.

Read only

Former Member
0 Likes
1,418

thanks to all