Application Development and Automation 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: 
Read only

Setting Check Box Status

0 Kudos
372

Respected Gururs,

Kindly guide me for Scenario.

I am having a field as status of a table zmmrecon and i display it as checkbox in module pool program screen. If i click status its value bcomes X .means ( zmmrecon-status = 'X'.)

I want this check automatically get clicked on other screen of other module pool program in table zmmtttab . Kindly tell me lines of codes.

I have written that

In PAI

case 'SAVE'.

if zmmrecon-status = 'X'.

Zmmttab -status = 'X'.

modify zmmttab.

endif.

tell me why dnt it work?

3 REPLIES 3
Read only

Former Member
0 Kudos
332

Hi

U need to assign a functional code (OK_CODE) to you input/output field, so that field become as pushbutton.

Max

Read only

Former Member
0 Kudos
332

Hi Sudha,

Open the Function Group of the table and go to the Layout of your table.

There you mention a field name OK_CODE of type ok_field (type will already be there).

Now you can use this field in your Program, to check whether the Status check box is checked or unchecked.

This will serve your purpose.

Regards,

Amit.

Read only

Former Member
0 Kudos
332

hi,

if YYY is the func code for the check box

400--screen number

then in pai in module_user_commqand_0400 input

DATA : TAB TYPE C. " here TAB is same as the name property of table in screen painter...

CASE SY-UCOMM.

WHEN 'YYY'.

MESSAGE ' you have selected the checkbox' TYPE 'I'.

TAB = 'X'

ENDCASE.