Skip to Content
0
Former Member
Apr 27, 2009 at 11:54 AM

problem in loop screen

19 Views

Hi abapers,

I have written the following code:

selection screen: begin of block b1.

p_new radiobutton group new,

p_saved radiobutton group new.

selection screen: end of block b1.

selection-screen :begin of block b3 with frame title text-013.

parameters:p_rec type string.

selection-screen :end of block b3.

selection-screen: begin of block b4 with frame title text-014.

parameters:p_excel like RLGRAP-FILENAME MEMORY ID M01.

selection-screen:end of block b4.

now my requirment is that when radio button p_new is selected p_excel should be disabled

and when p_saved in checked p_REC should be disabled.

I have written the following code:

At selection-screen output.

perform f_disable-screen.

form f_disable.

loop at screen.

if p_new eq 'X'.

if screen-name = 'P_EXCEL'.

screen-input = 0 .

screen-intensified = 0.

modify screen.

endif.

endif.

if p_saved eq 'X'.

if screen-name = 'P_REC'.

screen-input = 0.

screen-intensified = 0.

modify screen.

endif.

endloop.

endform.

The code is also working but i have one problem.

when the slection screen is displayed no field is disabled

.

I have to press enter for the code to work i.e when i press enter only then the code for the particular radio button works.

I want to get around this and the code should work without pressing enter when any radio buttton is changed.

regards.

Aditya

Edited by: ADITYA KULKARNI on Apr 27, 2009 1:55 PM

Edited by: ADITYA KULKARNI on Apr 27, 2009 1:56 PM

Edited by: ADITYA KULKARNI on Apr 27, 2009 1:56 PM