Skip to Content
Author's profile photo Former Member

Trigger a Process Chain using Event & Event by Program

Trigger a  Process chain , using Event   & Event by Program

Summary

This document discuss how to trigger the Process Chain at 3 different odd  time in a day, using events.

Scenario

Some times our requirement comes like we can not use any of standard scheduling functions available to start a Process Chain.

Ex: Process chain has to start at 3 different odd times in a day ( like 4.00 AM , 9.30 AM & 1.05 PM )

For the above requirements, to control Process Chain effectively it is

better to start Process Chain through an Event.

   1.   First step is to create an event Z_TEST in SM62

·        Go to  Transaction code SM62 

·        Select  BckProcEvnts Tab

·        Select Create

ScrSHT.JPG

Put Event name Z_TEST Description Just for Testing    and Save .

2.  Schedule your Process Chain through Event

·        Go to Transaction code  RSPC

·        Select your Process Chain

·        Double click on Start and then click on Change selection 

  • Select    –> After    Event Tab –> Put Event Name Z_Test

ScrSHT.JPG

Tick the check box for Periodic job and save.

3.   Triggering Event by Program

·        Go to Transaction codeSE38 

·        Program BTC_EVENT_RAISE

  • SE38   –> Put BTC_EVENT_RAISE  –> Select Variant radio button  –> choose display

ScrSHT.JPG

4.      Create Variant Z_TEST

·        Put  Variant Name Z_TEST   & Select  Attribute Radio Button .

ScrSHT.JPG

      Create .

  • Put Event Name in Background Processing Event   & Click on Attribute Button .

    

ScrSHT.JPG

  • Enter Description Periodic event

ScrSHT.JPG

      Save.

Step 5   .  Define the Back Ground Jobs 

·        Go to Transaction code SM36

·        Put Job Name  TEST

·        Select tab –> Step

ScrSHT.JPG

Put the name of program BTC_EVENT_RAISE  & Variant Name Z_TEST

    

ScrSHT.JPG

Check & Save . 

·        Select Tab  –> Start condition  

ScrSHT.JPG

  • Select  Date/Time Tab  –>  Enter  Date  & Time  –> check Periodic Job 
  • Select  –> Daily   –>  Save

ScrSHT.JPG

  Save  .

ScrSHT.JPG

  

Save  .  It will message   ‘ job TEST saved with status : Released 

Similarly you can define jobs for 4.00 AM  & 1.05 PM also. You can check these jobs by Transaction Code SM37 .  

Finally go to Process Chain & schedule it .

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Benedict Venmani Felix
      Benedict Venmani Felix

      Hi,

      Nice work.

      I would like to add a point, instead of creating separate jobs the same job can be scheduled repetedly.

      SM37 -> give job name -> In Menu -> Job -> Repeat Scheduling

       

      Regards,

      BenyV

      Author's profile photo Former Member
      Former Member

      Hi,

       

      Thanks for appreciation. Yes same job can be schedule repeatedly.

       

      Regards,

       

      Anand Mehrotra.