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: 
Hi RAP developers,

have you also struggled with data inconsistencies on the UI in your draft-enabled app? This can happen if UI inputs trigger data changes of other fields. The SAP FIori UI doesn't necessarily trigger a reload of all related BO properties after every user input, as it simply doesn't know anything about data changes on the draft tables.

Side Effects can help you with that!

Finally, there is a simple solution to communicate with the UI by just adding some elements to your behavior definition in the backend. "Communication with the UI" in this case means to tell it when to reload which properties to get updated and thus consistent data.

Check out the video on SAP Developers YouTube channel for a quick overview on Side Effects:



Find the complete documentation on Side Effects in the RAP guide: ABAP RESTful Application Programming Model - Side Effects

This feature is available for the following products:

  • SAP BTP, ABAP environment as of 2302

  • SAP S/4HANA Cloud as of 2302

  • For the availability on SAP S/4HANA and SAP S/4HANA Cloud, private edition, see ABAP Platform Roadmap Information: ABAP Platform: Roadmap Information

5 Comments
Peter_Inotai
Active Contributor
Hi Marina,

Thanks for sharing this video.

I have to admit I found "sife effect" for this feature an absolutely misleading term. Side effect in my eyes are bugs. However here it could have been called dependency or something similar. It would have been less misleading.

At least if there is a bug for this feature we could call it a "side effect for side effects" 🙂

Best regards,

Peter
Agree, Side Effects sounds misleading, especially because it already has a meaning in the context of programming.
cesar_gr
Explorer
0 Kudos
Hi veilm

This is a great feature, but it didn't works if you delete a child entity (in non draft mode).
In your video , "Total Price" field is not updated if I delete a booking entity.

In an RAP application created over abap cloud environment, this feature only works on create and delete actions. Is this an unsupported feature for delete entity action?


Regards!
Hi Cesar,

thanks for your comment! Please note that side effects are specifically designed for draft scenarios to get updated content on the UI.

Nevertheless, you are right. Currently, for CREATE and DELETE the side effect for a parent entity field is not triggered.

Best regards!

 
scott_bleier
Explorer
Hi Marina - have you heard any update around supporting side-effects on non-draft RAP applications?  This is a very useful feature but often we have apps that do not require draft programming but we still need this feature.  I could not find anything on the roadmap - do you happen to know if side-effects will be supported for non-draft apps in the future?

Thanks -
Scott