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

Default Select Option

Former Member
0 Likes
806

Hi All,

I want to default a Select-option with a value.

How to do it.

Regards,

Sandy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
751

If U want to do it at INITIALIZATION,

Do it like this....

S_OPT-LOW = Value.

S_OPT-SIGN = 'I'.

S_OPT-OPTION = 'EQ'.

APPEND S_OPT.

6 REPLIES 6
Read only

Former Member
0 Likes
751

Hi,

<b>Use RANGE table for the Default values rather than Select Option.</b>

<b>

RANGES Tables</b>

You can use the RANGES statement to create internal tables of the same type as selection tables.

RANGES <rangetab> FOR <f>.

This statement is simply a shortened form of the following statements:

DATA: BEGIN OF <rangetab> OCCURS 0,

SIGN(1),

OPTION(2)

LOW LIKE <f>,

HIGH LIKE <f>,

END OF <rangetab>.

Internal tables created with RANGES have the same structure as selection tables, but they do not have the same functionality.

Regards,

Ranjit Thakur.

<b>Please Mark The Helpful Answer.</b>

Read only

Former Member
0 Likes
751

Hello,

Check this.

SELECT-OPTIONS: S_WERKS FOR IT_OPENRESPOS-WERKS.

INITIALIZATION.
s_werks-sign = 'I'.
s_werks-option = 'BT'.
s_werks-low = 'AAAA'.
s_werks-high = 'BBBB'.

Append s_werks.

VAsanth

Read only

Former Member
0 Likes
752

If U want to do it at INITIALIZATION,

Do it like this....

S_OPT-LOW = Value.

S_OPT-SIGN = 'I'.

S_OPT-OPTION = 'EQ'.

APPEND S_OPT.

Read only

Former Member
0 Likes
751

hi,

1.select-options s_bukrs for bkpf-bukrs default 1000 to 3000.

2.

initialization.


s_akont-low = '0000004711'.
s_akont-sign = 'I'.
s_akont-option = 'EQ'.
APPEND s_akont.
s_akont-low = '0000005000'.
APPEND s_akont.
s_akont-low = '0000006000'.
APPEND s_akont.

Regards,

Santosh

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
751

Hi,

YOu can suppy initial values to PARAMTERS OR SELECT-OPTIONS In the INITIALIZATION event of the report.

See below.

INITIALIZATION.

sel_crit-low = 'LOW_VALUE'

sel_crit-sign = 'I'

sel_crit-option = 'EQ'

append sel_crit.

sel_crit-high = 'HIGH_VALUE'

sel_crit-sign = 'I'

sel_crit-option = 'EQ'

append sel_crit.

Regards,

Sesh

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
751

Hi,

tables mara.

select-options s_matnr for mara-matnr default '123'.

If you want to populate full range or many values,it should be done in initialization as suggested.