这意味着当前没有任何插入的行能 永久地保存在数据库中。要撤销当前LUW 对数据库的更改,请使用ROLLBACK WORK,它将取消前一次数据库提交后的所有更改。 4. COMMIT WORK [AND WAIT(同步)]. 如果使用AND WAIT选项,那么在程序继续执行以前,它要等到更新任务的结束。如果更新是成功的,SY-SUBRC 就设置为0。
关于SAP BAPI_TRANSACTION_ROLLBACK/COMMIT 和 ROLLBACK/COMMIT 1、这两个语句都是数据的提交操作,但有点不同的是: BAPI_TRANSACTION_COMMIT之后会执行一个buffer_refresh_all函数,也就是BAPI_TRANSACTION_COMMIT函数在数据提交之后还有个刷新了BAPI buffer缓冲区的操作,这个操作可避免多表写入时发生的错误,所以当我们...
SAP ABAP中关于commit的一点解释 SAP中的COMMIT分两种:显示提交和隐士提交。 COMMIT的解释:把当前流程中所有排队的数据更新提交。 commit work 语句是显式更新,程序中还有一些地方可以隐式更新,即不用写这个语句去更新数据库。 如果是隐式,就不需要做什么了。在程序执行完毕的时候,系统会自动执行提交,这就是隐式提...
ROLLBACK WORK Terminates a SAP-LUW without storing the changes. The statement ROLLBACK WORK closes the current SAP-LUW and opens a new one. In doing so, all change requests of the current SAP-LUW are canceled. To do this, ROLLBACK WORK carries out the following actions: COMMIT work ...
SAP provided the statement IN UPDATE TASK or perform XXXX on commit to avoid this issue. Better to create one custom function module and write the code to update the tables. Note here do not put any commit work and rollback work statement. then call the FM in IN UPDATE TASK. I will...
SAP Managed Tags: ABAP Development Hi, It not necessary to execute BAPI_TRANSACTION_COMMIT if the execution was ok, or execute BAPI_TRANSACTION_ROLLBACK if the execution wasn´t ok? before compelting the execution of FM 'BAPI_REQUISITION_RELEASE' the commit work will be performed. Regards...
COMMIT WORK AND WAIT ROLLBACK WORK **&----------------------
SAP Managed Tags ABAP Development Hi all, I have a problem using the FM's BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK. In my case I submit several records for one employee using the FM HR_INFOTYPE_OPERATION with NOCOMMIT = 'X'. If an error occurs submitting any of these records...
COMMIT WORK [AND WAIT]. 如果使用 AND WAIT 选项,那么 在程序继续 执行以前, 它要等到更 新任务的结 束。如果更 新是成功的 ,SY-SUBRC 就设置为 0。如果 SY-SUBRC 返回一个非 零值,就没 有成功的存 储所作的更 改。 要在保存之 前取消对数 据库表所作 的更改,请 按下列形式 使用 ROLLBACK WORK...
在以下几种情况下,会触发隐式提交:COMMIT WORK ROLLBACK WORK SUBMIT CALL TRANSACTION LEAVE TO ...