1. Use transaction SM64 to create a background event. (also can start events in it)
2. We can use FM BP_EVENT_RAISE to create the event in runtime
CALL FUNCTION 'BP_EVENT_RAISE' "Trigger Background Event
EXPORTING
eventid = "
eventid = " Identifier of the Event to be Triggered
* eventparm = SPACE " Optional Event Parameters
* target_instance = SPACE " msxxlist-name Instance on Which the Event is Processed
EXCEPTIONS
BAD_EVENTID = 1 " Invalid Event ID
EVENTID_DOES_NOT_EXIST = 2 "Unknown Event
EVENTID_MISSING = 3 "Event ID Missing
RAISE_FAILED = 4 "Error when Triggering the Event
.
3. Set Start condition of Job to option "After event" and specify a background event defined in SM64.
Ref:
1. http://www.abaplearning.com/abap-tutorials/data-interfaces/71-job-scheduling
本文介绍了如何利用transactionSM64创建后台事件,并通过指定事件ID来触发事件,同时设置了作业的启动条件为事件触发之后。提供了解决方案的详细步骤及参考资源。
4129

被折叠的 条评论
为什么被折叠?



