所以说COMMIT WORK是异步的,为了使其同步,所有就有了COMMIT WORK AND WAIT. 对于COMMIT WORK AND WAIT 来说,是可以判断是否更新成功的,SY-SUBRC NE 0就是有问题的。 上面是最简单的区别,再有: 由于系统中COMMIT WORK的数量是有限的,比如说我们系统是4000个,同时只能提交4000个更新进程,对于COMMIT WORK来说,执...
语句WAIT UNTILL用于异步RFC调用中等待结果的返回,该项必须与performing附加项配合使用,否则没有意义: WAIT UNTIL log_exp [UP TO sec SECONDS]. 当满足log_exp条件后,程序继续执行,否则程序将挂起,并等待异步RFC调用的返回结果,当功能模块调用结束时,系统将自动执行回调子程序,在其中接收返回结果并设定相关的逻辑条...
From the documentation we would expect that using COMMIT WORK AND WAIT (or the BAPI with WAIT = 'X') should be sufficient to ensure that the new object had been created successfully before the next statement is executed. In some cases this is correct in other cases it i...
1.3Synchronous Update(同步更新):在这种情况,调用程序提交事务需要等待Update Work Process完成数据更新处理。使用命令:COMMIT WORK AND WAIT。 1.4Local Update(本地更新):这类数据更新是同个work process中完成,程序执行必须等待更新完成才能继续执行。使用命令:SET UPDATE TASK LOCAL。
SAP Managed Tags: ABAP Development Hi Experts, I have a program with calls a normal function module (NOT update task). Inside this FM, there are Insert / Update / Delete performed on database tables. After this function module, we call 'COMMIT WORK AND WAIT'. The issues is all records...
COMMIT WORK AND WAIT同步更新,该语句执行后会等待所有更新函数都执行完后才继续执行后面的代码,执行结果可以通过sy-subrc来判断事务提交是否成功 2.4.本地、非本地方式提交 本地方式:如果在调用UPDATE FUNCTION之前,先调用SET UPDATE TASK LOCAL.语句,这样所有在该语句后使用CALL FUNCTION...IN UPDATE TASK注册的更新...
SAP Managed Tags: ABAP Development There's no delay. COMMIT WORK AND WAIT is not needed (AND WAIT is not for the direct database update as yours, it's to be used only if you have used CALL FUNCTION 'XXX' IN UPDATE TASK). There's an issue in your code somewhere. Are you sure ...
ABAP将数据字典中的数据commit work提交数据库分为2中:隐式提交(implicit commit)显式提交(explicit ...
2、 CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = 'X'. 如有commit失败的,则在commit之后加:WAIT UP TO 2 SECONDS.延迟执行 失败: 1、ROLLBACK WORK. 2、 CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'. 数据库更新: 异步:COMMIT WORK, 同步:COMMIT WORK AND WAIT. BP: 创建BP BAPI 功能 BAPI...
From the documentation we would expect that using COMMIT WORK AND WAIT (or the BAPI with WAIT = 'X') should be sufficient to ensure that the new object had been created successfully before the next statement is executed. In some cases this is correct in other cases it i...