Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create a measurement document of the data from an opc server via PCo 2.3

Former Member
0 Kudos

Hello everybody,

I want to transfer data from an opc server UA to a measurement document. I allready have the data in the sap system via rfc connection, I can browse the namespace etc.

Is it complicated to take the data from the rfc connection to a measurement document?

Finaly I want to create a performance based maintenance strategie.

Thank you very much!

4 REPLIES 4

Former Member
0 Kudos

Hi Till,

there is a framework in NW-layer that could be used to read data from data sources like OPC UA via SAP Plant Connectivity (PCo). Please have a look at the following SCN links that describe in detail how to do this:

http://scn.sap.com/docs/DOC-27223 (Learn the Basics)

http://scn.sap.com/docs/DOC-27545 (Quick Start)

http://scn.sap.com/docs/DOC-27546 (Sample Query for Data Acess)

Best regards, Hans-Jürgen

0 Kudos

Dear Hans-Jürgen,

thank you very much for your answer. I´ve read these documents.

Especially I wanted to know, how to automatically create measurement documents from the data I get from the test program RPCO_BS_INT_TEST.

For example:

A program schould create a measurement document every 5 minutes. This should be a measurement document I can see via transaktion IK13.

Thanks for your help!

0 Kudos

Hi Till,

there isn't an out of the box solution for applications that are going to use SAP Plant Connectivity. The connectivity framework in ABAP is located in package S_PCO. There you find all classes that could be used to build your own application. The test report RPCO_BS_INT_TEST is a sample application that we provided. With this test report you can see how you can implement for example queries that read tag values from an OPC server.

If you want to create a measurement document, you have to use the methods as shown in the test report in order to read the tag data and fill the tag data into your measurement documents. The test program can't be used for this purpose.

Best regards, Hans-Jürgen

0 Kudos

Hi Hans-Jürgen,

thank you for your answer. That´s exactly what I wanted to know, so I have to build my own application.

Best regards!