Application Development 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: 

How to set default values to a select-option?

dev_parbutteea
Active Contributor
0 Kudos

both fields low and high.thx.

1 ACCEPTED SOLUTION

former_member188829
Active Contributor

Hi,

Check this Example..

TABLES:MARA.

SELECT-OPTIONS:S_MATNR FOR MARA-MATNR DEFAULT '0000000000000100' TO

'0000000000001000'.

3 REPLIES 3

Former Member
0 Kudos

Hi,

In the Initialization event do like this

s_opt-sign = 'I'.

s_opt-option = 'BT'.

s_opt-low = Value.

s_opt-high = Value.

append s_opt.

Regards,

Satish

former_member188829
Active Contributor

Hi,

Check this Example..

TABLES:MARA.

SELECT-OPTIONS:S_MATNR FOR MARA-MATNR DEFAULT '0000000000000100' TO

'0000000000001000'.

raymond_giuseppi
Active Contributor
0 Kudos

Look at online documentation, syntax is

1. ... DEFAULT g

2. ... DEFAULT g ... OPTION xx ... SIGN s

3. ... DEFAULT g TO h

4. ... DEFAULT g TO h ... OPTION op ... SIGN s

Look at [Default Values for Selection Criteria|http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/dba75335c111d1829f0000e829fbfe/frameset.htm]

(You can also use variants associated to transaction, or programmatically in INITIALIZATION block.)

Regards