‎2007 Jun 12 3:20 AM
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.
‎2007 Jun 12 3:25 AM
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
‎2007 Jun 12 3:24 AM
‎2007 Jun 12 3:24 AM
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.
‎2007 Jun 12 3:25 AM
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
‎2007 Jun 12 3:33 AM
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.
‎2007 Jun 12 4:28 AM
Hi praveena,
Then use the code given by Seshu. it will work.
Regards,
Atish
‎2007 Jun 12 9:43 AM
hi praveena,
just do like this,
initilization.
s_option-low = '00'.
append s_option.
regards,
seshu.
‎2007 Jun 12 8:45 AM
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
‎2007 Jun 12 8:54 AM
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.
‎2007 Jun 12 8:57 AM
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.
‎2007 Jun 12 8:59 AM
use:
select-options zabc for vbak-kunnr default '123'.
rgds.
reward points if it helps.
‎2007 Jun 12 9:06 AM
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>
‎2007 Jun 12 9:40 AM
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
‎2007 Jun 12 9:40 AM
Hi,
try like this.
INITIALIZATION.
s_status-sign = 'I'
s_status-option = 'EQ'.
s_status-low = '00'.
APPEND s_status.
regards,
sudha