02-23-2010 3:45 PM
HI All,
I have one CHECK BOX in my screen in SE51. It has the name as well as Function code as 'CHECK'.
But when i am writing this code in PBO event ...it is giving me syntax errror that CHECK field is not defined..
Please help.
CASE SCREEN-NAME.
WHEN 'BOX'.
SCREEN-COLOR = 9.
MODIFY SCREEN.
WHEN 'LIPS-MATKL'.
IF LIPS-MATKL IS NOT INITIAL .
SCREEN-INVISIBLE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'LIPS-MATWA'.
IF CHECK EQ 'X'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
ENDIF.
WHEN 'LIPS-MATKL'.
IF CHECK EQ 'X'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
ENDIF.
ENDCASE.
Thanks in Advance
Mayank Verma
Edited by: Mayank Verma on Feb 23, 2010 4:45 PM
02-23-2010 3:47 PM
02-23-2010 3:47 PM
02-23-2010 3:52 PM
Hi,
Pleae use a Module Statement and Code the Above program in a module Statement.
FIELD Examle MODULE Check_exaple.
02-23-2010 4:03 PM
Hi,
<li> CHECK might be defined as Checkbox name on screen layout, but you need to declare in the TOP include of your module pool program if you want to use that in the PBO or PAI of the screen.
<li>Not only check box name, any screen element name if you want to use in the program logic that variable has be defined.
Thanks
Venkat.O
DATA: check type C.
02-23-2010 6:54 PM