2009 Jan 22 10:55 AM
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?
2009 Jan 22 11:01 AM
Hi
U need to assign a functional code (OK_CODE) to you input/output field, so that field become as pushbutton.
Max
2009 Jan 22 11:17 AM
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.
2009 Jan 23 1:51 AM
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.