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

Regarding Select-options

Former Member
0 Likes
467

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?

3 REPLIES 3
Read only

Former Member
0 Likes
434

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

Read only

Former Member
0 Likes
434

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

Read only

0 Likes
434

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.