SET UPDATE TASK LOCAL

本文深入探讨了ABAP中本地更新任务与CALLFUNCTION结合使用的特点,包括数据处理方式、更新过程、事务处理、以及与CALLTRANSACTION、SUBMIT的区别。重点介绍了本地更新任务如何在不改变原有程序流程的情况下实现数据更新,以及其对对话部分更改的处理方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

SET

Effect

Switches on the local update task. This means that when you specify CALL FUNCTION ... IN UPDATE TASK , the update data is not stored in the database, but in ABAP/4 Memory. The update works as before. The only difference is that it is not performed in a separate process, but in the same process as the calling program, i.e. when a COMMIT WORK occurs, processing does not continue until all the update requests have been performed. In the standard setting, the normal update task is always active.

 

The switch status is not passed on from program to program. This means that CALL TRANSACTION and SUBMIT use the standard setting. In contrast to this, a module called with CALL DIALOG inherits the switch setting. This is because CALL TRANSACTION and SUBMIT run in their own LUW, while CALL DIALOG does not.

The switch setting is ignored in the update.

On COMMIT WORK and ROLLBACK WORK , the switch is reset.

Update requests with a delayed start (V2) cannot be processed locally.

Like in the normal update task, all messages apart from type 'S' result in termination and rollback.

Note

Unlike the normal update task, the local update task does not run in its own LUW . If a rollback occurs, any changes made in the dialog part are also reset.

SY-SUBRC = 1:

The local update task could not be switched on because a CALL FUNCTION ... IN UPDATE TASK has already been started. The system continues in the normal update mode.

SET UPDATE TASK LOCAL.

转载于:https://www.cnblogs.com/ruingy/p/3594717.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值