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

Validity check

Former Member
0 Likes
386

Hi All,

I created a selection screen with some fields with manditory option and i create a button to go back but by problem i cont go back with out fill the obligatory values what to do ..

if sy-ucomm eq 'back'.

leave program.

endif.

reward if helpful answer.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
365

Hi Satwika,

Are u want to go back when press back button in menu bar

try this

SET PF-STATUS 'MY MENU'.

Double click in my menu you will go to create your menu bar and goto utilities-> adjust templet-> set seleection radio button and press enter.

double click in back button function code

Set Function code = 'E'.

and save it and activate it.

in your program i.e in se51 create modlue like this in PAI Event write this

MODULE CANCEL AT EXIT-COMMAND.

IN SE38.

MODULE CANCEL INPUT.

LEAVE PROGRAM.

ENDMODULE.

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
365

Go to your PF-STATUS .. double click on the button "BACK".

Set the FUNCTIONAL TYPE = 'E'.

Now in your screen's flowlogic make one module in PAI.

PROCESS AFTER INPUT.
  MODULE EXIT_PROG AT EXIT-COMMAND.

Create module like this:

MODULE EXIT_PROG.
  LEAVE PROGRAM.
ENDMODULE.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
366

Hi Satwika,

Are u want to go back when press back button in menu bar

try this

SET PF-STATUS 'MY MENU'.

Double click in my menu you will go to create your menu bar and goto utilities-> adjust templet-> set seleection radio button and press enter.

double click in back button function code

Set Function code = 'E'.

and save it and activate it.

in your program i.e in se51 create modlue like this in PAI Event write this

MODULE CANCEL AT EXIT-COMMAND.

IN SE38.

MODULE CANCEL INPUT.

LEAVE PROGRAM.

ENDMODULE.