Applied To


SAP BI 7.X

Summary


This article is regarding how to create a Job to trigger process chain which will check dependency with another chain before triggering and send alert, if job not triggered.

Author


Maneesh Kumar

Scenario

Suppose you want to trigger one process chain say ZTEST in BI system but you need to make sure this won’t run if process chain say ZTest1 is in progress and get alert in mail box about the process chain not started.

Steps to include:


The above mentioned scenario is possible by creating Job to trigger the Process Chain.

  1. Before Creating Job, we need to create one variant which we use in the Job we will create to trigger process chain (ZTEST).

          Goto TCode – SE38, you will find below screen.

          Put the Program Name by which you normally trigger your process chain (e.g.ZBI_RSPC_API_CHAIN_START)

          Now click on Radio Button Variants and then Display

          /wp-content/uploads/2014/01/1_356471.png

               Now you will see below screen.

  2.  Click on Create – To create a New Variant.

              /wp-content/uploads/2014/01/2_356473.png

               Mention any Variant name as below (E.g. ZTEST_VARR)

               /wp-content/uploads/2014/01/3_356474.png


3.  Now you will see below screen, please fill detailed as below then Click on Attributes

     Chain To Execute: The Process Chain for which you want to create Job

     Status Check: Checked

     Chain(s) for Status Check: Chain you want to make sure shouldn’t in running state (here ZTEST1) when triggering process chain ZTEST (you can mention                                                multiple Chains for Status Check)

     Pass Status: G

     Send e-mail?: Checked

     Enter e-mail address(es): email ID on which want to get Alert.

               /wp-content/uploads/2014/01/4_356475.png

4. Mention Description and then Save

               /wp-content/uploads/2014/01/5_356476.png

5. Goto TCode SM36 , you will see below screen.

     Now mentioned any Job Name then Click Step

               /wp-content/uploads/2014/01/6_356477.png

6. Now mentioned the program name (used in Step 1) and Varient we have created, then Save

  

               /wp-content/uploads/2014/01/7_356482.png

7. You will find details like below  when click on Back

                   /wp-content/uploads/2014/01/8_356481.png

   

8. Check the Variant details by single click on Program Name, then Goto à Variant.

                    /wp-content/uploads/2014/01/9_356480.png

                         /wp-content/uploads/2014/01/10_356483.png

9. Now Go to Tcode SM37 and search for job you have created.

     You will find the job in Scheduled state, we can Release the job by selecting Start condition.

                    /wp-content/uploads/2014/01/11_356484.png

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Mario Tibollo

    you could as well:

    in ZTEST1,

    first step => program to update an entry in TVARV with value ‘ON’

    last step of this chain => program to update an entry in TVARV with value ‘OFF’

    in chan ZTEST:

    first step = check value of entry in TVARV:

    if ON – send mail

    If OFF continue the chain

    M.

    (0) 

Leave a Reply