Skip to Content
Author's profile photo Dimitri Sannen

Reading the adapter status for alerting purposes

Why this document?

I had the opportunity to work with a third-party adapter on our SAP PI 7.11 and PI 7.3 system. In both cases, the adapter was not 100% integrated into the alerting framework and we had to find a solution for that.

So, I wrote an ABAP program reading the adapter status. Based on that status the report produces an e-mail.

I just want to share the adapter status reading part and something extra to build this solution.

ABAP code logic

The code fragment to read the adapter status:

/wp-content/uploads/2013/05/1_217048.jpg

The return code must be checked. If this is 200, the adapter status can be read. If not, I created an alert e-mail mentioning that the adapter engine is not accessible.

/wp-content/uploads/2013/05/2_217064.jpg


Now, you can build and send your e-mail.

Extras

To be able to read the adapter status, an extra role must be granted to the user. Please note this role must be assigned to the user via the SAP NetWeaver Administrator. Make sure the following actions are assigned to the role:

/wp-content/uploads/2013/05/3_217065.jpg

Questions or remarks?

If you have a (technical) question, feel free to send me an e-mail or post your thought or question.

Assigned Tags

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

      Hi Dimitri,

      i would be interesting to have the URL you are using for this.

      Regards,

      Nicolas

      Author's profile photo Dimitri Sannen
      Dimitri Sannen
      Blog Post Author

      Hi Nicolas,

      The URL is this one:

      http://<host>:<HTTPport>/AdapterFramework/ChannelAdminServlet?party='xxxx'&service='xxxx'&channel='xxxx'&action=status

      Kind regards,

      Dimitri