cancel
Showing results for 
Search instead for 
Did you mean: 

OSI PI Historian and MII

Former Member
0 Kudos

I have an application that has an hourly BLS transaction scheduled in the scheduler that goes to the OSI PI Historian data and calculates machine speed and looks for any downtime starts and ends. I write this information to sql tables for reporting perposes. The reason we write it to sql is because the app will tie the order running on the machine to an order number, operator and shift times.

The business now want the information written to the sql tables the instant a downtime event happens and the instant the downtime event ends.

They way I have things set up now is through a scheduled job.

Is there a way in MII for an outside app like the PI Historian to trigger a job to start?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Helo,

You can call any MII Transaction from any thirdy application over Webservice. You can find more details

in the help.

SAP MII 12.0.x:

You can get the WSDL using a Uniform Resource Identifier (URI). The format of the URI is

http://<servername>:<port>/XMII/WSDLGen/<TransactionFolder(s)>/<Transaction>. 

Regards

Pedro

Answers (1)

Answers (1)

former_member4529
Active Contributor
0 Kudos

Hi,

Any BLS can be executed as a web service by the following URL format :

http://<server>:<port>/XMII/SOAPRunner/<BLSTransactionNameWithPath>;

and the corresponding WSDL can be retrieved by the following URL format :

http://<server>:<port>/XMII/WSDLGen/<BLSTransactionNameWithPath>;

Otherwise a BLS transaction can also be called as a HTTP service externally as follow:

http://<server>:<port>/XMII/Runner?Transaction=<BLSTransactionNameWithPath>&XacuteLoginName=<usernam...

<inputParamValue1>

So if you can call web service or a HTTP service from PI Historian and configure it to call a web/HTTP service on a machine-down event you can call the SAP MII BLS to record the machine-down event and raise a corresponding alert.

Thanks,

Dipankar