06-26-2008 10:43 AM
Hii...
I have developed a screen with table control..my requirement is
I have one column (i.e) check box in edit mode..after it was checked and pressed 'enter' I want to go for display mode only..how can I solve this problem..
i tried like this but this is not working..
if checkbox = 'X'.
Loop at screen.
screen-active = 0.
screen-input = 0.
modify screen.
endloop.
regards
sugu
06-26-2008 10:52 AM
Hello,
Suppose your tablecontrol name is TCTRL.
Declare a work area WA_COLS.
Now in the PBO (in the table control loop) you can write a new module suppose its MODULE SET_SCR.
MODULE SET_SCR.
LOOP AT TCTRL-cols INTO WA_COLS.
WA_COLS-SCREEN-INPUT = 0.
MODIFY TCTRL-cols FROM WA_COLS INDEX SY-TABIX.
ENDLOOP.
ENDMODULE.
Hope this clears .
Neeraj
06-26-2008 10:56 AM
In the PBO - >
LOOP AT INT_TAB_CNTR INTO WA_TAB_CNTR
WITH CONTROL TAB_CNTR
CURSOR TAB_CNTR-CURRENT_LINE.
module display_screen. "it will deactivate table control fields
ENDLOOP.
module display_screen.
if wa_tab_cntr-checkbox = 'X'.
Loop at screen.
screen-active = 0.
screen-input = 0.
modify screen.
endloop.
endif.
endmodule.
Reward if useful.
06-26-2008 10:56 AM
LOOP AT sCREEN.
screen-input = 0.
screen-invisible = 0.
MODIFY SCREEN.
ENDLOOP.
It will work,
Regards,
Swarup