`
jgtang82
  • 浏览: 396781 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Trigger batch job via background event

Go 
阅读更多

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 

2. PDF http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e061f728-7c77-2c10-13bd-cddd326ad82e?QuickLink=index&overridelayout=true 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics