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

at exit-command

Former Member
0 Likes
934

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.

8 REPLIES 8
Read only

vinod_vemuru2
Active Contributor
0 Likes
894

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.

Read only

0 Likes
894

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.

Read only

0 Likes
894

Thanks Vinod, Problem is solved

Read only

Former Member
0 Likes
894

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

Read only

0 Likes
894

Hi,

I am using standard exit button. not from the screen, Can you please suggest me.

Read only

0 Likes
894

Hi Ranjith, Activate ur PF status. Regards, Venkat.O

Read only

Former Member
0 Likes
894

Problem is solved

Read only

0 Likes
894

how?