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

Select-options with multiple default values

Former Member
0 Likes
12,178

Hi -

Is it possible to have multiple default values for a field? I know there is the option to do a single default value and from a range to a range. However, I am not able to populate the selection screen with more than one value for a field.

Example:

SELECT-OPTIONS: S_PAY FOR BSIK-ZLSCH NO INTERVALS DEFAULT 'V'.

When run the program, V is displayed as default value for field S_PAY. However, I want to also add 2 more default values 'X' and 'Z' . Please advise how to do this.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,871

Hi Ravi,

You can move desired default values to select-option directly.

s_pay-sign = 'I',

s_pay-option = 'EQ'.

s_pay_low = 'X'.

append s_pay.

s_pay_low = 'Y'.

append s_pay.

s_pay_low = 'Z'.

append s_pay.

clear s_pay.

You can see all 3 values as default.

Regards,

Aparna Gaikwad

7 REPLIES 7
Read only

Former Member
0 Likes
4,872

Hi Ravi,

You can move desired default values to select-option directly.

s_pay-sign = 'I',

s_pay-option = 'EQ'.

s_pay_low = 'X'.

append s_pay.

s_pay_low = 'Y'.

append s_pay.

s_pay_low = 'Z'.

append s_pay.

clear s_pay.

You can see all 3 values as default.

Regards,

Aparna Gaikwad

Read only

0 Likes
4,871

I need the value to display at time the selection screen is displayed. I don't want to use option AT SELECTION SCREEN OUTPUT to assign the using the codes given because it overrides the program variant and I don't want to do that.

Read only

0 Likes
4,871

Put my code in INITIALIZATION event.

Read only

0 Likes
4,871

IINITIALIZATION event will not overrides the variant values. It will be called only once when the program is executed.

Ranganathan.

Read only

0 Likes
4,871

This message was moderated.

Read only

0 Likes
4,871

Thanks for your help. I am able to meet my requirement with your suggestion.

Read only

Former Member
0 Likes
4,871

Hi Ravi,

U can append the Select options internal table in the INITIALIZATION Event.

Ranganathan.