2012 Oct 15 8:02 AM
Hello Experts,
Can any one please tell me is there any other way to call a BAPI with out using bapi_transaction_commit to save the changes?
Regards,
Bindu
2012 Oct 15 8:05 AM
Hi Bindu,
Use commit work statement after Fm call.
Regards,
Amol
2012 Oct 15 11:29 AM
Hi Amol,
Commit and bapi_transaction_commit both are not same.
Regards,
Madhu.
2012 Oct 15 11:54 AM
Hi Amol,
As i know commit and bapi_transaction_commit are not same...
bapi_transaction_commit will call a function module to refresh the buffer if previous bapi have any errors or not ...with commit functinality
but commit_work does't have a concept of buffer...please go through the SDN once
Regards,
Bindu.
2012 Oct 15 1:42 PM
2012 Oct 16 5:26 AM
2012 Oct 15 8:05 AM
2012 Oct 15 8:16 AM
Hi,
Most Bapis require a separate commit/rollback so that an external application can have control over whether to save or discard the changes it has communicated to SAP. This means you can call several bapis then, if everything goes all right, commit else rollback. Hence the two (RFC) bapis for commit and rollback. If you are using one or more bapis in an ABAP program, you still need to commit or rollback. In this case, as said before, it is sufficient to use a simple ABAP commit statement.
regards,
Phillip
2012 Oct 15 12:57 PM
2012 Oct 15 7:01 PM
I agree with Kesavadas. What is the problem you are trying solve? Asking us for an alternative to bapi_transaction_commit is not too helpful. Tell us why it is not working for you.
2012 Oct 16 5:34 AM
Hello Larry,
Here iam not facing any problem while using bapi_transaction _commit....
recently i have attended interview there my interviewer asked this qstn that what is alternative for bapi_transaction _commit ?
he said without using bapi_transaction_commit there is other way to work with bapi...that is what i want to know
Regards,
Bindu.
2012 Oct 16 5:58 AM
Hi BIndu,
We deal here with business scenarios and technical problems. Next time please do not ask an interview question. I am leaving the thread free.
Regards
Kesav
2012 Oct 17 9:16 PM
I personally do not know of any other way to commit DB changes performed by a bapi (that does not do a commit of it's own) other than bapi_transaction_commit or just a plain old commit statement. Maybe the right answer to this interview question is "there is no other way".
2012 Oct 18 7:27 AM
2012 Oct 18 1:45 PM
Hi Bindu,
The only other option of enforcing update task to be executed (and that's what Bapis are using) is to use statement SET UPDATE TASK LOCAL. With this any commit (directly in code as COMMIT WORK or any statement that lead to losing work process like GUI operation, WAIT, end of report or other) will save changes that were made by Bapi in DB.
Best regards
Marcin Cholewczuk
2012 Oct 19 6:04 AM
Hi Marcin,
Thank you very much for reply..its useful for me..
closing thread here now
Regards,
Bindu