What is the difference between BAPI_TRANSACTION_COMMIT and COMMIT WORK?
Page 1 of 1
What is the difference between BAPI_TRANSACTION_COMMIT and COMMIT WORK?
-Both are used to update data into database table.
-Difference between BAPI_TRANSACTION_COMMIT and COMMIT WORK is that BAPI_TRANSACTION_COMMIT refreshes BAPI buffer.
-BAPI buffer holds data to be updated into database table. IF we use COMMIT WORK and if it fails for any reasone then buffer does not refreshes. Hence when we call COMMIT WORK again then the previous data which is present in the buffer is updated. While in BAPI_TRANSACTION_COMMIT Function Module we use BUFFER_REFRESH_ALL function module right after COMMIT WORK. Hence if it fails then buffer is refreshed.
-Hence it is good to use BAPI_TRANSACTION_COMMIT instead of COMMIT WORK.
-Difference between BAPI_TRANSACTION_COMMIT and COMMIT WORK is that BAPI_TRANSACTION_COMMIT refreshes BAPI buffer.
-BAPI buffer holds data to be updated into database table. IF we use COMMIT WORK and if it fails for any reasone then buffer does not refreshes. Hence when we call COMMIT WORK again then the previous data which is present in the buffer is updated. While in BAPI_TRANSACTION_COMMIT Function Module we use BUFFER_REFRESH_ALL function module right after COMMIT WORK. Hence if it fails then buffer is refreshed.
-Hence it is good to use BAPI_TRANSACTION_COMMIT instead of COMMIT WORK.
govind- Admin
- Posts : 54
Join date : 2012-01-31
Similar topics
» What is a work process?What are types of work processes?
» How are Capital Work in Progress and Assets accounted in SAP?
» How does SAP calculate Work in Process (WIP) in product cost by order?
» There are Result analysis categories in WIP (Work in Process). What do you mean by the result analysis category Reserves for unrealized costs?
» How are Capital Work in Progress and Assets accounted in SAP?
» How does SAP calculate Work in Process (WIP) in product cost by order?
» There are Result analysis categories in WIP (Work in Process). What do you mean by the result analysis category Reserves for unrealized costs?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Mon Aug 20, 2012 4:37 pm by Admin
» Difference between Type and Like
Thu Jun 07, 2012 2:40 pm by Admin
» How to handle table control fields in Module Pool program?
Wed May 09, 2012 2:41 am by govind
» Three tables inner join in SAP
Thu May 03, 2012 4:47 pm by Uma_ABAP
» Creating table type in ABAP
Sat Apr 28, 2012 9:03 pm by Uma_ABAP
» Creating user defined types and structures in ABAP
Sat Apr 28, 2012 8:55 pm by Uma_ABAP
» Creating Dynamic Internal Table and Dynamic Field catalog in SAP-ABAP
Fri Apr 27, 2012 11:00 am by Admin
» Copy Custom PF-Status from Standard program to Custom Program in ALV
Thu Apr 26, 2012 9:52 pm by Uma_ABAP
» Calculate/find number of working days between two dates in SAP
Tue Apr 24, 2012 2:06 pm by Uma_ABAP