on 08-25-2005 7:47 AM
Hi,
I would like to know how transaction management can be done from JCO. How do I Rollback transactions from JCO??
In Java
{
//Execute RFC through JCO Call(Creates DB record in R/3)
//Face exception here
//I need to roll back the RFC ????
}
Thanking You,
Guru
Hi Guru,
I think you are performing a process through a Transaction Id (or without it) with the help of a remote enabled function module(RFM). All these changes will not be reflected in DB unless it is committed. Hence after performing the required task through a RFM you can commit it ot rollback it. This commit/rollback will affect for the transaction performed immediately before it. Hence there will not be any problem i suppose (as far as i have known).
Thanks & Regards
Kathirvel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guru,
http://66.102.7.104/search?q=cache:YnarUK_KhHcJ:www.tnatum.com/SAP/SAPPJ/Vol%25202/Issue%25203/p025....rollbackspecifictransactionsidsusingBAPI_TRANSACTION_ROLLBACK&hl=en
Check this out.
Regards,
Kathirvel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guru,
By default auto commit property is set to be false.whn you want to set is then you have explicitly set it to true.
rdgs,
guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guru,
Yes you approach is correct, make sure commit/rollback is possible only when a change is/was made in database.
Go through these links will be helpful,
Hope that solves your problem.
Thanks & Regards,
Kathirvel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>> make sure commit/rollback is possible only when a change is/was made in database
What would be wrong with calling a commit/rollback if no database changes have been made?
I've got a generic framework and have no idea if the BAPIs that are being called will update the database or not. So I always call commit.
TIA
Ian
Hi Guru,
Welcome to SDN.
Use BAPI_TRANSACTION_COMMIT to commit changes to DB after any operation. Use BAPI_TRANSACTION_ROLLBACK to roll back.
Cheers
Kathirvel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.