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

In Module pool while using Module EXIT code is not working

Former Member
0 Likes
647

Dear All,

In module pool Screen having mandatory fields there for I have used inside PROCESS AFTER INPUT.

MODULE exit_9001 AT EXIT-COMMAND.

MODULE exit_9001 INPUT.

gv_ok_code2 = sy-ucomm.

CASE gv_ok_code2.

WHEN 'CANCEL'.

LEAVE TO SCREEN 0.

WHEN 'EXIT'.

LEAVE TO SCREEN 0.

ENDCASE.

ENDMODULE.

But it is not trigering. Please help me to resolve issue.

Thanks in Advance.

Regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
612

Hi ,

check you have given the pf status for exit button and there set the

functional type as "E".

4 REPLIES 4
Read only

Former Member
0 Likes
613

Hi ,

check you have given the pf status for exit button and there set the

functional type as "E".

Read only

0 Likes
612

Thanks sandy and sachin.

Read only

Former Member
0 Likes
612

when you want to use exit command

then set functional type as E in PF-status.

Read only

Former Member
0 Likes
612

Try

set screen 0.
leave screen.

KR

Veeranji Reddy P.