ā2008 Apr 22 4:03 PM
Hi,
I have made a field mandatory, and The function codes checked in the AT EXIT-COMMAND module is designated as type E function codes and module with AT-EXIT COMMAND is written first in the list
But when I press exit in the screen it is still triggering a message as 'Fill in all required entry fields". Can anybody please rectify my error.
Thanks in Advance.
Hi Ranjit Reddy,
The exit button on the screen is nothing to do with the EXIT-COMMAND. the logic will come to the EXIT-COMMAND Module pool statement only for function codes checked as type E function codes.
Hope this helps.
Thanks,
Greetson
ā2008 Apr 22 4:08 PM
Hi Ranjith,
Put a break point in the exit module and check whether control is going there or not. What code u r writing in the form. Is it like this
CASE ucomm.
WHEN 'EXIT'.
LEAVE PROGRAM.
.
.
.
Also make sure that OK code should be in capital letters.
I thing problem must be because of OK code.
Thanks,
Vinod.
ā2008 Apr 22 4:20 PM
Hi Vinod,
Thanks for Quick response, As the OK_CODE in general Attributes in the last row is in capitals by default, and the code in the module is as folllows.
MODULE EXIT INPUT.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'CANCEL'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE.
Even I kept break point, but it is not stopping there.
but still the same problem, please suggest me.
ā2008 Apr 22 4:39 PM
ā2008 Apr 22 4:11 PM
Hi Ranjit Reddy,
The exit button on the screen is nothing to do with the EXIT-COMMAND. the logic will come to the EXIT-COMMAND Module pool statement only for function codes checked as type E function codes.
Hope this helps.
Thanks,
Greetson
ā2008 Apr 22 4:22 PM
Hi,
I am using standard exit button. not from the screen, Can you please suggest me.
ā2008 Apr 22 4:32 PM
ā2008 Apr 22 4:38 PM
ā2008 Apr 22 4:39 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |