Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

problem in accessing CHECK BOX field in Module Pool

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Did you declare this field CHECK in your TOP include?

Data: check type char01.

Regards,

Rich Heilman

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Did you declare this field CHECK in your TOP include?

Data: check type char01.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi,

Pleae use a Module Statement and Code the Above program in a module Statement.

FIELD Examle MODULE Check_exaple.

venkat_o
Active Contributor
0 Kudos

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.


DATA: check type C. 
<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

Former Member
0 Kudos

Thanks Rich and Venkat for the solution..