Skip to Content
Author's profile photo Former Member

Trigger the Process Chain using RDA

Introduction

In this article we will discuss on how to trigger the process chain through events with the help of RDA.

Requirement:

We have a scenario where we have to trigger a process chain through events and that event will be called in the end routine of transformation. DTP will be triggered by RDA which will execute the end routine in the transformation and hence the process chain.

How to Achieve:

We will create the event in transaction SM64 and this event will be added in the Process chain. RDA Data Source will be assigned with transaction RSRDA. In the end routine, between DSO and Data Source, BP_EVENT_RAISE Function Module will be called by RDA which triggers the event which in turn triggers the process chain.

Step 1

Go to transaction SM64 and click on create button to create event. Give event name and description as required.

/wp-content/uploads/2013/09/1_288266.png

Step 2

Goto transaction RSRDA and click on create Daemon. Give the description as needed and click save.

/wp-content/uploads/2013/09/2_288267.png

Step 3

Right click on the data Source you want and give Daemon ID created in 1st step.

/wp-content/uploads/2013/09/3_288268.png

Once above step is done, Data Source will be available under Daemon created, as shown below.

/wp-content/uploads/2013/09/3a_288272.png

Step 4

Right click on the Data Source selected and select Assign DTP.

/wp-content/uploads/2013/09/4_288273.png

Step 5

Check the checkbox, as shown below, to assign DTP.

/wp-content/uploads/2013/09/5_288274.png

The DTP and Info Package get assigned, as shown below. Period can be changed by right clicking on Data Source and selecting assign daemon.

/wp-content/uploads/2013/09/5a_288275.png

Step 6

Go to end routine of the transformation of DSO and DTP and put below code.

/wp-content/uploads/2013/09/6_288276.png

In the above select statement, give the Process Chain ID you want to trigger. The above code selects Process Chain ID and its Status from the table RSPCLOGCHAIN. It checks the status of the chain is A (Active) i.e. if it’s running or not. If the Status is not ‘A’ then it will raise the FM BP_EVENT_RAISE which will trigger the event ‘ZTEST_EVENT’ which we have created and if the Status is ‘A’ it will sleep for 10 seconds.

Table RSPCLOGCHAIN contains the various Process chain parameters like Process chain ID, Log ID, Variant Name, Status, Timestamp etc.

Step 7

Select the Process Chain which needs to be triggered. Right click on the Process Chain and select Maintain Variant.

/wp-content/uploads/2013/09/7_288277.png

Step 8

Now, select Direct Scheduling and click on Change Selections.

/wp-content/uploads/2013/09/8_288278.png

Step 9

Select After Event and give event name. Also check the Periodic Job checkbox.

/wp-content/uploads/2013/09/9_288279.png

Step 10

Goto RSRDA transaction, right click on the Data Source and select Start Upload.

/wp-content/uploads/2013/09/10_288280.png

Once this is done it will trigger the DTP and End routine will be triggered. The BP_EVENT_RAISE FM will be triggered in the end routine which will start the process chain.

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Martin Grob
      Martin Grob

      Nice work to trigger it through RDA.

      Martin

      Author's profile photo Satendra Mishra
      Satendra Mishra

      Nice information.

      🙂

      Regards,

      SM