Quantcast
Channel: SCN : Document List - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 571

Reading the adapter status for alerting purposes

$
0
0

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:

1.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.

2.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:

3.jpg

Questions or remarks?

 

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


Viewing all articles
Browse latest Browse all 571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>