Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
victorsilva
Product and Topic Expert
Product and Topic Expert

Hello community,

If you've read the What's New on SAP Cloud Applications Studio 1608, you probably seen this.

Mandatory error message for OnSave validation

The system now displays an error message to the developer when a Save is rejected. There is an enhancement in the OnSave validation framework to check if any custom error messages are generated in the OnSave event while it returns false value. If not, the system displays a technical error message to explain which solution is responsible for the rejection.

Well, the problem is that you may have developed solutions and have raised some messages on the BeforeSave to improve performance or other specific reasons. In this case you've probable used a Transient flag to check if the object is valid or not. Then on OnSave you've just returned this flag, blocking then the Save.

In this scenario you will probably find an error message similar to this.

In order to remove this message, you will have to raise an ERROR message on the OnSave event. You can use something like this.

DONE! Your result should be similar to this.

5 Comments