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

BACK Button Problem

Former Member
0 Likes
781

HI,

by using user exit i validate the values which is entered by enduser.

when user press SAVE button .. user exit triggers and validate the values, if condition fails show a error message in status bar.

the problem is when user press BACK button ... user exit triggers, if condition fails.. a popup error coming instead of in statusbar. in popup only exit button is there... when exit then out of t-code.

can anyone help.. how can we solve this popup problem by back button.

even when user press 'EXIT' button then error comes in status bar.

Regards

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
665

Hi, in your user exit, make sure to check the SY-UCOMM value before doing your validations. You will need to find out what the fcodes are for the BACK, EXIT, and CANCEL buttons in the gui status of of the screen.

check sy-ucomm <> 'BACK'.

Regards,

Rich Heilman

Read only

0 Likes
665

hi,

end user can press back, exit, cancel buttons also... not only save button.

even user press back button i need a error message in status bar only not as popup....

when we press back button somewhere it changes the message type ... and popup coming.

Regards

Read only

0 Likes
665

Oh, so you still want the message, just in the status bar, not as a popup? Not sure how you would control this.

Regards,

Rich Heilman

Read only

0 Likes
665

yes, i want this message...

the thing is...

if i press back button (first button) then it showing in popup.

if i press first exit button ( condition fails... error in status bar).. edit values... then i press back button.. error comes in status bar.

dont know where it is triggering the popup option.

Regards

Read only

0 Likes
665

go into debugging mode (/h) and then do breakpoints-breakpoint at->statement-> and enter 'Message'. This should show you the difference between the two options and maybe help you to code round it.