‎2009 Nov 17 8:52 PM
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,
‎2009 Nov 17 9:01 PM
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
‎2009 Nov 17 9:01 PM
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
‎2009 Nov 17 9:18 PM
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.
‎2009 Nov 17 9:21 PM
‎2009 Nov 17 9:21 PM
IINITIALIZATION event will not overrides the variant values. It will be called only once when the program is executed.
Ranganathan.
‎2014 Jun 23 11:42 AM
‎2014 Nov 27 11:57 AM
Thanks for your help. I am able to meet my requirement with your suggestion.
‎2009 Nov 17 9:16 PM
Hi Ravi,
U can append the Select options internal table in the INITIALIZATION Event.
Ranganathan.