I am working on Travel Request Application which is built in Web Dynpro ABAP and FPM technology.
I have added custom button on General Data component to check some validation, when i through a error message it is showing the error but the navigation is not canceled how to stop the FPM navigation when there is an error ?
Your help is really appreciated
I assume you are using the FPM message manager to throw the error message. If yes, then it is possible to stop the navigation of the application based on your validations.
In the FPM message manager methods, there exists a parameter IS_NAVIGATION_ALLOWED. All you need to do is pass the value abap_false explicitly to this parameter when you throw the message. The FPM framework will take care of stopping the validation.