‎2007 Jul 29 2:37 PM
select-options :s_kunnr for kna1-kunnr.
s_kunnr-low = 1000.
the select options low value is 1000 and freeze the low value.mean's output mode onely.next high value is modified giving variable value.in select options how to freeze the only low value?
‎2007 Jul 29 3:23 PM
REPORT demo_sel_screen_select_options.
DATA wa_carrid TYPE spfli-carrid.
SELECT-OPTIONS airline FOR wa_carrid.
LOOP AT airline.
WRITE: / 'SIGN:', airline-sign,
'OPTION:', airline-option,
'LOW:', airline-low,
'HIGH:', airline-high.
ENDLOOP.
Structure of select options:
LOW Low value
HIGH High value
SIGN E = Excluding, I = Including
OPTION BT = Between EQ = Equal
data: l_sign(2) type c,
l_option(3) type c.
WRITE AT 3 Printdoc: INTENSIFIED ON. loop at s_prtdoc. if s_prtdoc-sign = E. l_sign = <>. else. l_sign = =. endif. if s_prtdoc-option = EQ. clear l_option. else. l_option = to. endif. write at 35 l_sign. write at 39 s_prtdoc-low. write at 55 l_option. write at 59 s_prtdoc-high. new-line. endloop.
REPORT:
Printdoc: = 800000000501 to 800000000501 <> 800000000502 = 800000000503
‎2007 Jul 30 2:05 AM
hi,
You want to make the low of the select options as display only? if yes
Her you go with the code
TABLES : vbak.
DATA : wa LIKE mkpf.
SELECT-OPTIONS : s_vbeln FOR vbak-vbeln.
INITIALIZATION.
s_vbeln-low = 1000.
APPEND s_vbeln.
LOOP AT SCREEN.
IF screen-name = 'S_VBELN-LOW'.
screen-input = 0.
MODIFY SCREEN .
ENDIF.
ENDLOOP.
Thanks
Mahesh
‎2010 Mar 30 6:41 AM
TRY this if above logic is not working
SELECT-OPTIONS : s_vbeln FOR vbak-vbeln MODIF ID SO1.
INITIALIZATION.
s_vbeln-low = 1000.
APPEND s_vbeln.
LOOP AT SCREEN.
IF screen-group1 = 'SO1'.
screen-input = 0.
MODIFY SCREEN .
ENDIF.
ENDLOOP.