‎2006 Nov 21 6:09 PM
Hi,
I m working on table control. i have used chain..end chain functionality for checking input. But if user changes any thing in the table control and he click on Cancel button then it is not coming out of the program. I mean it check for the input only, unless and until that field is corrected it will not allow to come out.
How to come out through Cancel button if user enters anything wrong and want to come out without changing the wrong value?
Thanx in advance.
-Umesh
‎2006 Nov 21 6:12 PM
Hi,
For the cancel button have the function type as 'E' (Exit command).
And create a module in the PBO...like this..
PROCESS AFTER INPUT.
MODULE EXIT_COMMAND AT EXIT-COMMAND .
MODULE EXIT_COMMAND.
IF SY-UCOMM = 'CANCEL'.
LEAVE PROGRAM.
ENDIF.
ENDMODULE.
Thanks,
Naren
‎2006 Nov 21 6:12 PM
Hi,
For the cancel button have the function type as 'E' (Exit command).
And create a module in the PBO...like this..
PROCESS AFTER INPUT.
MODULE EXIT_COMMAND AT EXIT-COMMAND .
MODULE EXIT_COMMAND.
IF SY-UCOMM = 'CANCEL'.
LEAVE PROGRAM.
ENDIF.
ENDMODULE.
Thanks,
Naren
‎2006 Nov 21 6:33 PM
HI Naren,
Thankx for the quick response.
Problem is solved adn given u the point.
-Umesh