on 11-02-2006 1:04 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.