cancel
Showing results for 
Search instead for 
Did you mean: 

save action in RAP

jasper_nan
Explorer
0 Kudos

What is the use of save action in RAP?

I defined two methods with two actions with the same abap logic.

I only found that if the save action is used, the draft data cannot be manipulated.

But ordinary actions (Approve_Order) can be operated

- error with save action (TestSaveAction)

Can someone explain the specific usage of save action?

Thanks!

View Entire Topic
dominik_ee
Advisor
Advisor
0 Kudos

Hi Jasper,

Save actions have certain restrictions which are documented:

Action Types: https://help.sap.com/docs/btp/sap-abap-restful-application-programming-model/action-definition#actio...

Save Sequence: https://help.sap.com/docs/btp/sap-abap-restful-application-programming-model/save-sequence-runtime

ABAP Doc: https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenbdl_action_onsave.htm

I think the ABAP Keyword Doc answers your question regarding usages or use cases in the Hints section:

"RAP save actions are required for the RAP representation of certain existing functionality which does not maintain a transactional buffer but (from a RAP perspective) only has a save phase."

jasper_nan
Explorer
0 Kudos

Thank you for your answer !