RAP Side Effects in a Nutshell
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