cancel
Showing results for 
Search instead for 
Did you mean: 

How to know BAPI_TRANSACTION_COMMIT done?

Former Member
0 Kudos

In my webdynpro program, I use BAPI to edit data on screen and use BAPI_transaction_commit to save to database.

After finishing commit, I will automatically refresh the view to display the updated data.

How to know that commit is done in backend system?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185029
Active Contributor
0 Kudos

Hello Li,

You can set a return message in your BAPI.

Then you can read this return message in WebDynpro to know if the transaction is successful or not.

So if the trasaction is successful in BAPI, set the return flag to "S" (example) and check in WebDynpro whether the return flag is "S" or not.

You can read return message by writting

wdContext.current<Model Name>Element().modelObject().getReturn().get<Return Flag>;

Hope that helps

Ashutosh