2013 Feb 18 5:11 PM
Hi,
Currently i am triggering a user exit in PM module.
Would like to stop it like how error message work by preventing the progress from Stage A to Stage B.
Question is what syntax in ABAP will allow the user exit to trigger the stop behavior and back to the main screen without saving any data?
I tried Exit & leave, somehow it stop, but still continue to save screen data, or it just leave the standard program.
Please help.
Thanks.
2013 Feb 24 4:30 PM
I actually found a way to solve the problem.
Where i go to the PBO of the main program and enhance from it.
Solved!
Hi,
Currently i am triggering a user exit in PM module.
Would like to stop it like how error message work by preventing the progress from Stage A to Stage B.
Question is what syntax in ABAP will allow the user exit to trigger the stop behavior and back to the main screen without saving any data?
I tried Exit & leave, somehow it stop, but still continue to save screen data, or it just leave the standard program.
Please help.
Thanks.
2013 Feb 18 5:22 PM
Hi, what is transaction code where you need to implement the exit?
2013 Feb 18 5:29 PM
IW22, there are stage "INIT" , "AWAP" etc. i was implementing my custom code in user exit and would like to stop the progress based on condition.
2013 Feb 18 5:42 PM
Hi,
you need to use this exit QQMA0014 (Checks before saving a notification).
insert your logic there.
if you dont want to save the data, use
LEAVE [PROGRAM].
It will stop the processing of current ABAP program.
LEAVE TO TRANSACTION <tcod> [AND SKIP FIRST SCREEN].
It will stop the processing of current ABAP program and will process another program (specified with its transaction code).
Regards
2013 Feb 21 3:58 AM
Hi Miguel,
thanks for your reply.
But i dont think it work for me.
Because i was trying to implement a function module inside a user exit. LEAVE [PROGRAM]. will not suit to use in this case.
The value will be clear after PAI module.
2013 Feb 18 5:26 PM
Hello,
Try the following:
MESSAGE 'Your Error Message' TYPE 'W' DISPLAY LIKE 'E'.
LEAVE TO SCREEN sy-dynnr.
Hope it helps.
Rgrds,
Sravan
2013 Feb 24 4:30 PM
I actually found a way to solve the problem.
Where i go to the PBO of the main program and enhance from it.
Solved!
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |