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

Clearing Select-Options in selection screen

Former Member
0 Likes
963

Hello,

im having trouble clearing the select options in a selection screen.

i dont really know why, but if i run the program, and add REFRESH TABLE_RANGE[] (which was declared as a select-options) , it does clear the table in the debug, but shows it again on the screen.

i've tried CLEAR too, but it didnt really help.

is there a know solution?

thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
790

Hi,

TABLE_RANGE[] isn't your select-options.

Select-options name must be max 8 characters.

Find your select-options and refresh it in the Initialization event.

Rgs

Hi,

TABLE_RANGE[] isn't your select-options.

Select-options name must be max 8 characters.

Find your select-options and refresh it in the Initialization event.

Rgs

5 REPLIES 5
Read only

Former Member
0 Likes
790

Hi,

There are two things associated with select-option one is header and other table

Try

CLEAR: TABLE_RANGE[] .

CLEAR TABLE_RANGE.

And are you sure your select-option name is TABLE_RANGE as I think only 8 character are allowed to name the selection screen field.

Regards,

Atish

Read only

former_member195698
Active Contributor
0 Likes
790

Where have you put your code for clearing the select-option? put in at selection-screen output. It will get cleared whenever your screen is going to be displayed.

What is your requirement?

Read only

Former Member
0 Likes
790

Hi Eli,

Create a Push Button on the Selection Screen (code for it in the selection screen logic); check for sy-ucomm (checking for the button being pressed by the user) and then refresh the table_range in the at selection-screen event.

Regards,

George

Read only

Former Member
0 Likes
790

'ive tried putting the refersh / clear in the initalization proccess, that way it is called again after the user has pressed a button, i see in the debug data that the table is initialized , but the numbers appear again on the screen!

i am helpless...

Read only

Former Member
0 Likes
791

Hi,

TABLE_RANGE[] isn't your select-options.

Select-options name must be max 8 characters.

Find your select-options and refresh it in the Initialization event.

Rgs