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-option

Former Member
0 Likes
1,222

Hi all,

I have created a table field which is of type N and length 2. When I am using it in select-option, I need to pass a default value '00' to the low value of the select-option.. When i am doing it it is not showing the default value on the selection screen.

Instead it is showing a equal to sign infront of the low value.

It is my requirement to shoe the default value in the selection -screen.

I need some thing like this.

s_status-low 00 to s-status-high -


Thnaks,

Munagala.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,180

Hi praveena,

The = sign means that there is a value in the select-option.

If you click on the puch button of the select-option(multiple selection), you will find 00 there.

there is no need to write a different code for this as it is the standard way if you are getting = sign.

Reward points if useful.

Regards,

Atish

13 REPLIES 13
Read only

Former Member
0 Likes
1,180

hi,

u assign it as

s_status-low = '00'.

Read only

Former Member
0 Likes
1,180

take one local variable and data type would be charcter ,

see the example code

data v_typ(2) type c.

select-options s_typ for v_typ.

initialization.

s_typ-low = '00'.

s_typ-high = '01'.

append s_typ.

Read only

Former Member
0 Likes
1,181

Hi praveena,

The = sign means that there is a value in the select-option.

If you click on the puch button of the select-option(multiple selection), you will find 00 there.

there is no need to write a different code for this as it is the standard way if you are getting = sign.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
1,180

Thanks for the replay.

My problem is that instead of clicking on the multiple entries i want it to display on the selection-screen. and i dont want that equal to sign.

Read only

0 Likes
1,180

Hi praveena,

Then use the code given by Seshu. it will work.

Regards,

Atish

Read only

0 Likes
1,180

hi praveena,

just do like this,

initilization.

s_option-low = '00'.

append s_option.

regards,

seshu.

Read only

Former Member
0 Likes
1,180

Hi,

Check the below program, u will get 0 in both the select-options and also it will give ur select-option as mandatory entries also.

<b>REPORT ZSURESH12062007 .

TABLES : skb1.

SELECT-OPTIONS : s_saknr FOR skb1-saknr OBLIGATORY .

INITIALIZATION.

MOVE '00' to s_saknr-low.

MOVE '00' to s_saknr-high.

APPEND s_saknr.

  • this code will make ur select-option high value also mandatory..

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'S_SAKNR-HIGH'.

screen-required = 1.

ENDIF.

MODIFY SCREEN.

ENDLOOP.</b>

Award points if it helps you...

Thanks,

Suresh

Read only

Former Member
0 Likes
1,180

hi,

try like this..........

select-options:s01(2) type n.

initialization.

s01-low = '00'.

s01-high = '100'.

.............

............

appens s01.

if useful reward some points.

with regards,

suresh.

Read only

Former Member
0 Likes
1,180

hi,

To assign default values to a selection criterion, you use the following syntax:

<b>SELECT-OPTIONS <seltab> FOR <f> DEFAULT <g> [TO <h>] ....</b>

<b>select-options: s_status for <refarence-filed> DEFAULT s_statue 00.</b>

<b>or</b>

in initialization event define default values..

<b>INITIALIZATION.

s_status-low = 00.</b>

regards,

Ashokreddy.

Read only

former_member188827
Active Contributor
0 Likes
1,180

use:

select-options zabc for vbak-kunnr default '123'.

rgds.

reward points if it helps.

Read only

Former Member
0 Likes
1,180

Hello Praveena,

C the code bellow.

REPORT zex.

DATA: v1(2) TYPE n.

SELECT-OPTIONS: s_v1 FOR v1.

INITIALIZATION.

s_v1-sign = 'I'.

s_v1-option = 'EQ'.

s_v1-low = 00.

APPEND s_v1.

After executing this code... The selection screen consists an = sign left to low value. You can see that value by pressing the arrow button which is present at extream right. <b>This is in the case of only with zero</b>. Even though it doesn't show anything... that select-options will have that value.

<b>REWARD POINTS IF HELPFUL</b>

Read only

S0025444845
Active Participant
0 Likes
1,180

Hi,

try like this.

INITIALIZATION.

s_status-sign = 'I'

s_bwart-option = 'EQ'.

s_bwart-low = '00'.

APPEND s_status.

regards,

sudha

reward points if useful

Read only

0 Likes
1,180

Hi,

try like this.

INITIALIZATION.

s_status-sign = 'I'

s_status-option = 'EQ'.

s_status-low = '00'.

APPEND s_status.

regards,

sudha