Skip to Content
Author's profile photo Uladzislau Pralat

Automation of RDA Scheduling and Monitoring

     Real Time Data Acquisition can be controlled and monitored using trx. RSRDA. The same tasks can be accomplished programmatically. I created a set of programs that simplifies RDA scheduling and monitoring. It is not a big deal to debug trx. RSRDA and create such programs. What makes these programs unique is an added intelligence that helps:

  • identify scheduling problems (start, stop and monitor programs)
  • prevent locking conflicts (stop program)
  • identify failures even though deamon status is green (monitor program)

 

Z_RDA_DAEMON_START Program

Similar to starting RDA in trx. RSRDA it can be started using Z_RDA_DAEMON_START Program

RDA1.jpg

RDA2.jpg

If you run the program and daemon is already started the program issues an error message notifying about scheduling problem

RDA3.jpg

 

Z_RDA_DAEMON_STOP Program

Similar to as RDA is stopped in trx. RSRDA it can be stopped using Z_RDA_DAEMON_STOP Program

RDA4.jpg

RDA5.jpg

Program is intelligent enough to wait till the daemon is completely stopped such a way preventing possible locking conflict (for example, next step in day end deletes content of RDA DSO)

 

If you run the program and daemon is already stopped the program issues an error message notifying about scheduling problem

 

RDA6.jpg

 

 

Z_RDA_DAEMON_MONITOR Program

Similar to Monitoring RDA in trx. RSRDA it can be monitored using Z_RDA_DAEMON_MONITOR Program

RDA7.jpg

RDA8.jpg

RDA9.jpg

Monitor program also handles situation when daemon is running but underlying DTP or InfoPackage failed

RDA10.jpg

RDA11.jpg

If you run the program and daemon is already stopped the program issues an error message notifying about scheduling problem.

RDA12.jpg

 

Start, Stop and Monitor Process Chains

The programs are used in ABAP Process Chain Types Steps. RDA13.jpg

RDA14.jpg

RDA15.jpg

Here is an example of Monitor Process Chain in case of DTP failure

RDA16.jpg

RDA17.jpg

Described programs can be downloaded from GitHub:

Z_RDA_DAEMON_TOP

Z_RDA_DAEMON_APPL

Z_RDA_DAEMON_START

Z_RDA_DAEMON_STOP

Z_RDA_DAEMON_MONITOR

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Megha Chawla
      Megha Chawla

      Could you please provide the link for the programs.

       

      Author's profile photo Uladzislau Pralat
      Uladzislau Pralat
      Blog Post Author

      Hi Megha,

      I uploaded the sources to GitHub.

      Regards, Uladzislau

       

      Author's profile photo Megha Chawla
      Megha Chawla

      Thanks  Uladzislau,

       

      Do you know if there is any way we cna get the alerts on email if any deamon fails?

      I tried in Solution Manager but it its for process chains and not for the DTP's.

       

      Thanks and Regards,

      Megha.

      Author's profile photo Uladzislau Pralat
      Uladzislau Pralat
      Blog Post Author

      Hi Megha,

      the way it works for us, Z_RDA_DAEMON_MONITOR program is run as ABAP Process Type step of Process Chain. Monitor Process Chain is scheduled every 5 mins. In Process Chain ABAP Process Type step error handling is defined to notify via email if error occurs.

      Regards, Uladzislau

      Author's profile photo Gergely Gombos
      Gergely Gombos

      Dear Uladzislau,

      in your ABAP code there is a declaration:

      DATA: exception TYPE REF TO zcx_exception.

       

      We have not zcx_exception type in our system, can you please show what it is?

      We try to use your program but we get an error message:

      Type "ZCX_EXCEPTION" is unknown

       

      Thanks!

      Gergely Gombos

      Author's profile photo Uladzislau Pralat
      Uladzislau Pralat
      Blog Post Author

      Hi Gergely,

      please import Z_EXCEPTION ABAP Git repository.

      Regards, Uladzislau