cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Selection screen

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.