‎2011 Feb 10 4:34 AM
Hi all,
when i click a button the next button must be visible. so i wrote a code like this.
MODULE user_command_9000 INPUT.
CASE sy-ucomm.
WHEN 'CL1'.
LOOP AT SCREEN.
if screen-group1 = 'G1'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endcase.
next button is not visible.
please tell a solution
Edited by: sivakumar87 on Feb 10, 2011 5:34 AM
‎2011 Feb 10 4:54 AM
Hi,
I am giving a sample piece of code.Hope it will help you.Please check whether it is working or not.
Declare globaly the variable.
DATA check type string value 'INITIAL'.
Module change_screen OUTPUT.
if check = 'NEW'
loop at screen.
if screen-group1 = 'G1'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
Endmodule.
Module user_command INPUT.
case okcode.
when 'CL1'.
clear okcode.
check = 'NEW'.
leave to screen XX. "this screen
endcase.
Endmodule.
Regards,
Suvajit
‎2011 Feb 10 4:46 AM
Hi,
Write the same code in PBO module means before calling the screen again.
Regards,
Suvajit
‎2011 Feb 10 4:54 AM
Hi,
I am giving a sample piece of code.Hope it will help you.Please check whether it is working or not.
Declare globaly the variable.
DATA check type string value 'INITIAL'.
Module change_screen OUTPUT.
if check = 'NEW'
loop at screen.
if screen-group1 = 'G1'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
Endmodule.
Module user_command INPUT.
case okcode.
when 'CL1'.
clear okcode.
check = 'NEW'.
leave to screen XX. "this screen
endcase.
Endmodule.
Regards,
Suvajit
‎2011 Feb 10 6:00 AM
Hi Shiva
first check in which group you have defined the group for that button
according to your code it should be in group 1 only.
Thanks
Lalit
‎2011 Feb 15 9:55 AM
Hi Siva,
Code written by you is correct but has to be written in PBO & not in PAI.
Goodluck.