cancel
Showing results for 
Search instead for 
Did you mean: 

Unmanaged Draft : EDIT + SAVE || Refresh isssue

0 Kudos
1,361

Hi All,

I am working on draft version of the RAP application. When I am saving the application using BAPI, I get the message 'Your chnages have been Saved successfully'.

1. CHnages are reflcted in DB Table

2. Chnages are reflected on UI field that has been chnged.

Hoever, when I click on the 'EDIT' option again then i get below Error message :

Your changes could not be saved. A more recent version is available. To make changes to the latest version, please refresh the data.

Kindly suggest how can we get rid of this Error message.

Thanks !!

Accepted Solutions (0)

Answers (2)

Answers (2)

matiasmiano1982
Explorer
0 Kudos

Hi btp_rap

Do you have the code to share? I'm facing the same issue and I cannot make it work.

Regards

Matias

j_pavan_kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Snehal,

Did you fill MAPPED table with the key generated during the creation of the record?

and also, please check the draft actions are specified in the behavior definition or not.

{

draft action Edit;

}

Thanks,

Pavan

Hi Pavan,

Thanks for sharing. Actually I have invoked BAPI in method 'SAVE' insteaed of mehod 'CHECK_BEFOR SAVE'. Affter coying the code in mehod 'CHECK_BEFOR SAVE', issue is resolved.

saurabh__khare
Participant
0 Kudos
I too am facing a similar issue. Mine is draft-enabled managed app with managed save and the BAPI call is in a determination that triggers on update during save. The error message I get is: Your changes could not be saved. Refresh the data to work with the most recent version.