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

initialize selection screen parameter, select-option value

Former Member
0 Likes
1,253

hi,

may i know how to initialize the selection screen parameter, select-option value?

do i need to refresh or clear every variable? i have many parameter/select-option defined. or is there a shorter way to do so.

thanks

5 REPLIES 5
Read only

Former Member
0 Likes
869

Hi,

Check this example of how to initialize the select-options field.

SELECT-OPTIONS: SO_DATE FOR SY-DATUM.

INITIALIZATION.

SO_DATE-SIGN = 'I'.

SO_DATE-OPTION = 'EQ'.

SO_DATE-LOW = SY-DATUM.

APPEND SO_DATE.

Thanks

Naren

Read only

Former Member
0 Likes
869

Hi,

if you need to specify any default value then append the select options.

s_var1-low = X..

s_var1-high= Y.

append s_var1.

This will give the low value as x and high value as y.

No need to clear all the select options.

It will be initial.

Regards

Rusidar.

Read only

Former Member
0 Likes
869

Hi,

When u press back button in PF-status, write code to refresh the parameters.

http://www.sapdevelopment.co.uk/reporting/selscr/but_buttons.htm

Read only

Former Member
0 Likes
869

Hi,

If you want to clear the values..

Try using

END-OF-SELECTION.

FREE MEMORY. "at the end-of-selection..

Thanks,

Naren

Read only

Former Member
0 Likes
869

you must clear all of them one by one.

refresh : x, y, z, ....