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