on 03-20-2008 3:59 AM
Hi,
i am having 2 fields on my selection screen as select-options like
s_docno and s_mblnr
if i entered data in s_docno i want disable s_mblnr select-option.
please give me solution for this. how to do that
Hi,
Check this code. I hope it will help.
<code>
SELECTION-SCREEN: BEGIN OF BLOCK b1.
SELECT-OPTIONS: s_docno FOR v_var,
s_mblnr FOR v_var MODIF ID md1.
SELECTION-SCREEN: END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF s_docno NE space.
IF screen-group1 EQ 'MD1'.
screen-input = 0.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
<code>
The second field is disabled only after pressing the enter button on the first field.
Regards.
Abhisek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai Santhosh,
Parameters:
A1(3) type c,
A2(3) type c.
at selection-screen output.
loop at screen..
if not A1 is Initial.
Loop at screen.
if screen-name = 'A2'.
screen-input = 0.
modify screen.
else.
screen-input = 1.
modify screen.
endloop.
endif.
Regards.
Eshwar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
data : s_docno.
data : s_mblnr modif id s1.
loop at screen.
if s_docno ne space.
if screen-group1 = 's1'.
screen-input = '0'.
screen-active = '0'.
endif.
endif.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.