09-05-2006 3:40 PM
Hello Friends,
In my selection screen,
select options - I have to default 2 values and it should consider only those 2 values.
select-options: s_vkgrp FOR vbak-vkgrp.
for EG - i want 10 and 20 as the default values and it should not consider anything between 10 and 20.
Any help on this is highly appericiated.
Shejal Shetty.
09-05-2006 3:45 PM
Hi Shejal,
Try this.
select-options: s_vkgrp FOR vbak-vkgrp.
initialization.
s_vkgrp-low = '10'.
s_vkgrp-option = 'EQ'.
append s_vkgrp.
s_vkgrp-low = '20'.
s_vkgrp-option = 'EQ'.
append s_vkgrp.
-Anu
09-05-2006 3:43 PM
hi Shejal,
include those values in Multiple option Button..i.e, you can see a arrow mark button at the side of your select option .. just click on that and include your values in that ...
Regards,
Santosh
Message was edited by: Santosh Kumar P
09-05-2006 3:45 PM
or use as defalut in your abap:
look at sample code na read abap help for initialisation
DATA SBOOK_WA TYPE SBOOK.
SELECT-OPTIONS FL_DATE FOR SBOOK_WA-FLDATE.
INITIALIZATION.
MOVE: 'I' TO FL_DATE-SIGN,
'EQ' TO FL_DATE-OPTION,
'DATE1' TO FL_DATE-LOW.
APPEND FL_DATE.
MOVE: 'I' TO FL_DATE-SIGN,
'EQ' TO FL_DATE-OPTION,
'DATE2' TO FL_DATE-LOW.
APPEND FL_DATE.
09-05-2006 3:45 PM
Hi Shejal,
Try this.
select-options: s_vkgrp FOR vbak-vkgrp.
initialization.
s_vkgrp-low = '10'.
s_vkgrp-option = 'EQ'.
append s_vkgrp.
s_vkgrp-low = '20'.
s_vkgrp-option = 'EQ'.
append s_vkgrp.
-Anu
09-05-2006 3:49 PM
Thanks Anupama,
I will try this out and I think it should work.
Shejal.
09-05-2006 3:45 PM
HI,
you need to enter the values 10 and 20 in the multiple options. or you can also do it programatically by assigning these values with eq option in the program itself.
Regards,
Richa
09-05-2006 3:46 PM
Shejal
U can define your select-option with no-interval so that it would accept only single values...and also in the initialization event populate the default.
select-options: s_vkgrp FOR vbak-vkgrp no intervals.
initialization.
s_vkgrp-sign = 'I'.
s_vkgrp-option = 'EQ'.
s_vkgrp-low = '10'.
append s_vkgrp.
s_vkgrp-low = '20'.
append s_vkgrp.
Message was edited by: Anurag Bankley
Message was edited by: Anurag Bankley
09-05-2006 3:49 PM
09-05-2006 3:47 PM
Hi, you can set the values and then lock it down.
report zrich_0001.
tables: vbak.
select-options: s_vkgrp for vbak-vkgrp modif id chk.
initialization.
s_vkgrp-sign = 'I'.
s_vkgrp-option = 'EQ'.
s_vkgrp-low = '10'.
append s_vkgrp.
s_vkgrp-low = '20'.
append s_vkgrp.
at selection-screen output.
loop at screen.
if screen-group1 = 'CHK'.
screen-input = '0'.
modify screen.
endif.
endloop.
Regards,
Rich Heilman