This automation enables monitoring of PI/PO system by using ECC system(You can use any third party system which can send HTTP request and get response).
We can access PI message overview data by using external tools via MessageOverviewQueryServlet.
This servlet is provided by sap which can be used any time when you need to send the RWB message overview data to an external system.
You can access the servlet by using below URL
It will display all components in which you can make a query
Select PI component and append it to query string
Now select view as per your requirement and build query
Available options of views are as follows
- R_ENTRY_VIEW_XPI– Message status sorted by receiver
- S_ENTRY_VIEW_XPI– Message status sorted by receiver
- SR_ENTRY_VIEW_XP– Message status sorted by sender and receiver (detail view)
- SR_ENTRY_OVERVIEW_XPI– Message status sorted by sender and receiver (overview)
Now you have to specify interval in your query which completes your query
Format of StartDateTime and EndDateTimeis YYYY-MM-DD hh:mm:ss.0
which can be obtained from above qeury
Final Request Query will be
Now to retrieve and process response you need xsd which will be obtain from below URL
For detailed information of above mention steps refer below blogs
Now lets get started with PI configuration
Here I have used ECC system hence I have created sync proxy
Its Proxy SOAP to REST scenario
To send interval dynamically we havecreated a program in ECC system.
Create data type to send request which will send StartDateTime & EndDateTime
Create message type of the same
Now import xsd file external definition to request and get response from servlet
Create data type to transform received response from servlet
Create Message type of the same
Create Outbound and Inbound Service interfaces
Create Request and Response Mapping
Create Operation mapping and assign Request and response mapping to it
Now lets Configure the ID objects
Create proxy Sender channel
Create Rest channel with GET operation, and use basic authentication option.
URI till View name will be constant and we will be passing interval parameters through payload
Final step is to configure ICO as below
This program has two variants one which will run on hourly basis to fetch data on basis and another variant run only once a day to fetch daily data.
Input to proxy
Synchronous proxy call
Output Received in proxy