PM Scada PCS
PM Scada PCS
PM Scada PCS
PUBLIC
Warning
This document has been generated from the SAP Help Portal and is an incomplete version of the official SAP product
documentation. The information included in custom documentation may not re ect the arrangement of topics in the SAP Help
Portal, and may be missing important aspects and/or correlations to other topics. For this reason, it is not for productive use.
This is custom documentation. For more information, please visit the SAP Help Portal 1
5/14/2023
Purpose
You use this component in Plant Maintenance (PM) or Customer Service (CS) to enter measurement and counter readings for
technical objects . This can be of use in the following situations:
You want to document the condition of a technical object at a particular point in time.
Documenting the condition of a particular object is of great importance in cases where detailed records regarding the
correct condition have to be kept for legal reasons. This could involve critical values recorded for environmental
protection purposes, hazardous working areas that are monitored for health and safety reasons, the condition of
equipment in hospitals (intensive care units), as well as measurements of emissions and pollution for objects of all types.
Condition and counter-based maintenance tasks are forms of preventive maintenance. Generally, these tasks should
reduce the number of breakdowns for your objects.
In the case of counter-based maintenance, maintenance activities are always performed when the counter of the
technical object has reached a particular counter reading, for example, every 100 operating hours.
In the case of condition-based maintenance, maintenance activities are always performed when the measuring point of a
technical object has reached a particular state, for example, every time a brake pad has been worn away to the minimum
thickness permitted.
Integration
This component is composed as follows:
You enter data manually into the SAP System using the SAP user interface.
You use the Internet Application Component (IAC) to enter data in an entry screen in the browser and transfer this data
to the SAP System using the Internet.
You can enter data using a barcode reader and transfer it to the SAP System using the PM-PCS interface .
The PM-PCS Interface is an interface between the SAP System and external systems, such as a Process Control System
(PCS).
You can enter data using a laptop and transfer it to the SAP System using the PM-PCS Interface.
Data from a process control system is data that arises during the monitoring, control, regulation, and optimization of a
technical process. You can transfer this data to the SAP System using the PM-PCS Interface.
When doing this, you can use a SCADA System (Supervisory Control and Data Acquisition System) which lters the data
from the process control system and only transfers to the SAP System the data that is actually relevant.
You can use the customer exit to automate your business processes.
This is custom documentation. For more information, please visit the SAP Help Portal 2
5/14/2023
For more information on the maintenance planning functions in the SAP System (for example, creating a maintenance plan,
scheduling) see Maintenance Planning .
Features
Within the components PM and CS, the component Measuring Points and Counters is divided into:
Basic functions , which are the prerequisites for using measuring points and counters
Additional Functions
Use
You only use these optional functions once you have represented your measuring points and counters in the SAP system and
are productively using the entry of measurement and counter readings.
You use some of these functions just once when a particular event occurs. None of the additional functions constitutes a
necessary part of your day-to-day work.
This is custom documentation. For more information, please visit the SAP Help Portal 3
5/14/2023
Features
Transfer of Measurement and Counter Readings
Dependencies can exist between measuring points/counters. The measurement readings entered for a measuring point
can also be valid for other measuring points, or the counter reading differences entered for a counter can also be valid
for other counters. In cases such as these, you can make sure that this data is transferred automatically.
You can compile a freely de nable sequence of measuring points/counters to better plan the actual procedure of
entering measurement and counter readings (for example, in preparation for the work to be performed by the person
taking the readings).
A one-off activity that you only perform when you replace counters.
The SAP system converts measurement units automatically. You can simulate this conversion function.
Purpose
You can use this interface to transfer measurement and counter readings from feeder systems into the SAP System. In the SAP
System, data is saved in measurement documents and can be used by both the PM (Plant Maintenance) and CS (Customer
Service) application components.
Performance-based, planned maintenance enables you to plan maintenance activities based on counter readings that
are maintained for your technical objects .
In the case of condition-based maintenance, maintenance-relevant events are recognized by an external system. By
transferring these events to the PM-PCS interface, malfunction noti cations can be created in the SAP System.
You can use measurement documents to record information that is necessary for plant safety, job safety and
environmental protection.
From Release 4.0, you can also use measurement documents as the basis for consumption billing for real estate
management.
Implementation Considerations
Possible feeder systems:
This is custom documentation. For more information, please visit the SAP Help Portal 4
5/14/2023
Technical Objects
De nition
In the SAP System, you represent the systems to be maintained as technical objects. Technical objects are managed in the
master data of the SAP System as functional locations and pieces of equipment.
A functional location is an organizational unit within Logistics that structures the maintenance objects of a company according
to functional, process-oriented or spatial criteria.
Structure
Functional locations are structured hierarchically to represent the structure of the system to be maintained. Functional
locations of different hierarchies can be linked to one another. In this way, you can represent the global network structure of a
technical system, the links between different technical systems and the dependencies between individual functional locations.
A piece of equipment can be installed at a functional location or in a superior piece of equipment for a certain period of time. In
the course of its useful life, it can be used at different installation locations.
Equipment can also be assigned hierarchically, enabling you to represent pieces of equipment that have a more complex
structure. Pieces of equipment can also be linked to one another. In this way you can represent the global network structure of a
technical system and the dependencies between the individual pieces of equipment.
Purpose
The PM-PCS interface transfers ltered data from a process control system (PCS) to the SAP System. Measurement
documents are created automatically in the SAP System for the measurement and counter readings.
You should implement this interface if you want to use measurement documents in the SAP System as the basis for performing
maintenance activities or for documenting information.
Process Flow
Process control systems provide a wealth of data that arises within a particular process, building, or infrastructure. SCADA
systems perform a lter function in these circumstances. They lter out the maintenance-relevant data and, in this way, prevent
the SAP System from being ooded with process data.
In addition, SCADA systems enable communication between one or more process control systems and the SAP System.
SCADA System Connected Directly to the Field Bus -> PCS does not require a SCADA interface
This is custom documentation. For more information, please visit the SAP Help Portal 5
5/14/2023
Some process control systems have their own necessary lter and interface functions, which means that they can be connected
directly to the SAP System without the requirement of an intermediate connection to a SCADA system.
This is custom documentation. For more information, please visit the SAP Help Portal 6
5/14/2023
Both process control systems (PCS) and Supervisory Control and Data Acquisition Systems (SCADA) often provide a graphical
user interface, for example:
You can access directly the master data of the technical objects Error! No bookmark name given. from this user interface (for
example, by double-clicking). When doing this, the PM-PCS interface enables a dialog transaction to be started for the speci ed
technical object in the SAP System. The transaction is started on the same PC but in a second window.
First of all, the master record of the technical object is simply displayed. You can switch to the change mode at any time. You can
use the menu functions to access the technical object’s logistics and business environment.
Generally, the same object is managed in different systems under different keys. For example, a measuring point with the
number 4711 in the SAP System corresponds to the data address P-1001 in the process control system.
The conversion of the object key of the external system into the SAP key is generally performed using an assignment table. This
table can either be located in the external system or in the SAP System.
In the case of the PM objects “Functional location” and “Measuring point”, the object key of the external system can be stored
on the part of SAP system as a standard attribute (secondary index) of the SAP object. This means that when the
corresponding RFCs are called up, the SAP primary key does not have to be transferred.
Implementation
Use
Generally, logging is required in the following areas for monitoring an interface between two systems:
For performing the retrospective entry of events that occurred during a phase when the target system was not available.
For saving all incoming events, if processing does not take place simultaneously.
For monitoring event processing, if this takes place in separate steps (transactions), as with Work ow.
However, in the case of the PM-PCS interface, SAP logging is not necessary.
Prerequisites
Event processing in the SAP system takes place simultaneously.
This is custom documentation. For more information, please visit the SAP Help Portal 8
5/14/2023
Each event results directly in an entry in an SAP application table, meaning that each event generates a measurement
document in the SAP System.
If a malfunction report is generated, then this should happen together with the creation of a measurement document in
an SAP transaction.
Activities
Normal Operating Situation
The only logging is in the source system (PCS/SCADA). There, the SAP measurement document number is logged for each
event that is transferred. This enables the completeness of the transfer to be checked at any time.
When the document number is returned to the source system from the SAP System, the database has already been updated.
This is also the case when a malfunction report is created in addition to the measurement document.
The source system must deal with the following scenarios of the SAP System not being available:
The measuring point, for which the event should be transferred, is currently locked in the SAP System.
In the source system log, the exception POINT_LOCKED, that is returned by the SAP System, is logged for the event
record.
For some reason, event processing in the SAP System takes too long.
The exception ZZ_SAP_TIME_OUT is written in the log. Con rmation from the SAP System is no longer being waited for;
the work process in the source system is released.
The PM-PCS interface enables the automatic completion of event transfer. For this, the log in the source system must be
continuously monitored. Where necessary, events are transferred to the SAP System again. The source system recognizes
events that have not yet been transferred by the missing SAP document number in the log.
After the exceptions POINT_LOCKED and ZZ_SAP_NOT_AVAILABLE, the repeated transfer of the event is not critical
because event processing has not taken place in the SAP system.
After the exception ZZ_SAP_TIME_OUT, it should be checked whether the event is being processed in duplicate after its
repeated transfer to the SAP System (duplicate records).
Duplicates are not immediately recognizable in the SAP System because usually every incoming event results in the creation of
a new measurement document. For this reason, the source system must transfer each event with a customer-speci c
document ID. The SAP System is able to recognize the repeated transfer of an event that has already been processed from this
document ID, and can therefore avoid duplicate processing.
Therefore, the recognition of duplicates in the SAP System is controlled on the basis of additional, customer-speci c
information. From Release 3.1I, the necessary enhancements for doing this are included for the PM-PCS interface.
This is custom documentation. For more information, please visit the SAP Help Portal 9
5/14/2023
Transfer of a customer-speci c document ID:
For this, you can create a eld, ZZ_CUST_ID, of any format in the Customizing include CI_IMRG that has been prepared.
When you call up the SAP function module MEASUREM_DOCUM_RFC_SINGLE_001, set the parameter
CHECK_CUSTOM_DUPREC = X.
The function module sets the indicator CUSTOM_DUPREC_OCCURED = X. The function module returns the number of
the measurement document that already existed instead of a new measurement document number. This number is
logged for the event in the source system as in the normal operating situation.
Use
All individual functions are performed in the SAP System using RFC-enabled function modules (Remote Function Call). These
function modules were rst delivered with Release 3.0E.
The function modules for measurement documents and measuring points are able to return the complete object data to the
calling application from Release 3.1. This is because the inclusion of oating point elds (Format FLTP) in the structures and
tables of the RFC interfaces was not previously supported.
From Release 3.1I / 4.0B, you can use the following Customer Exits for measuring points and measurement documents:
IMRC0001 runs before the update and enables you to de ne particular eld contents in measurement points and
measurement documents, to generate work ow events and to update customer-speci c tables.
IMRC0002 and IMRC0003 make available menu exits in the online processing of measuring points and measurement
documents, so that you can trigger customer-speci c functions or call up customer-de ned screens.
You can also create the Customizing includes CI_IMPTT or CI_IMRG to extend the tables IMPTT (measuring point) or IMRG
(measurement document) respectively, to include customer-de ned elds. For each of the three mentioned Customer exits, you
then maintain control of the customer-speci c elds.
Prerequisites
Because all individual functions can be called up using RFC, the calls can also be made by OLE (Object Linking and Embedding)
(using SAP’s WDTFUNCS.OCX).
All function modules are online interfaces. If the SAP System is ever unavailable, the measurement values to be transferred in
the process control system or in the SCADA system must be able to be buffered.
Use
This is custom documentation. For more information, please visit the SAP Help Portal 10
5/14/2023
This RFC enables the following remote calls for creating measurement documents:
The session "Create with dialog" can be used for the correction of incorrect data records (compare with processing in the
foreground for incorrect batch input sessions).
You can use the parameter CREATE_NOTIFICATION to determine whether another maintenance noti cation should be created
for the measurement document.
If a noti cation is to be created, a noti cation type that is set in Customizing of the target system can be assigned, using the
parameter NOTIFICATION_TYPE. The standard noti cation type M2 = Malfunction report is preassigned.
Additionally, the noti cation can be assigned a priority that also has to be set in Customizing of the target system.
The following data can be copied into the noti cation from the measurement document or the measuring point:
The eld Assembly for the measuring point (should be included in the bill of material of the measuring point object)
Measurement time in the eld Malfunction start (date and time) of the noti cation
Short text
Valuation code, as long as its catalog type is the same as the catalog type de ned in Customizing for Problems
(V_TQ80_C-FEKAT) of the respective noti cation type.
Notes
If a unique value has been maintained in the eld Measurement position of the measuring point, the measuring point can
also be identi ed by the measurement position. In this case, use the parameter SECONDARY_INDEX.
RECORDED_VALUE is transferred in CHAR format. If the eld contains decimal places, these must be separated using a comma
or period according to the setting in the user master.
If the parameter RECORDED_UNIT is transferred blank, the system assumes that the unit of measurement of the
measuring point MEASUREMENT_POINT should be used.
If the measurement document table IMRG has been extended to include customer-spec c elds by creating the Customizing
include CI_IMRG, these elds can be lled using the parameter USER_DATA.
If the parameter CHECK_CUSTOM_DUPREC has been transferred with 'X', the system checks whether a measurement that has
not been canceled already exists for the measuring point and time stamp (READING_DATE + READING_TIME).
If this is the case, a new measurement document is not created. Instead, the system returns the parameter
CUSTOM_DUPREC_OCCURED with 'X'. In the parameters MEASUREMENT_DOCUMENT, COMPLETE_DOCUMENT and
This is custom documentation. For more information, please visit the SAP Help Portal 11
5/14/2023
NOTIFICATION, the data of the already-existing measurement documents is returned. For this reason, the exception
TIMESTAMP_DUPREC cannot be set, also not for counters.
If you want to allow more than one measurement document per time stamp (second), you must create the Customizing include
CI_IMRG with the eld ZZ_CUST_ID. You can de ne the eld ZZ_CUST_ID with any format. It is then available automatically in
the database table IMRG and in the parameter USER_DATA, and is used during the above-mentioned DupRec-check as a
re nement of the time stamp. This means that in the eld ZZ_CUST_ID, you are able to transfer an internal counter per
measuring point and time stamp, an extension of the time stamp in micro/nanoseconds, or the number of the original
document from the feeder system.
Import Parameters
This is custom documentation. For more information, please visit the SAP Help Portal 12
5/14/2023
CREATE_NOTIFICATION CHAR 1 X = Create PM noti cation
Export Parameters
IMRG Structure
Length 8
This is custom documentation. For more information, please visit the SAP Help Portal 13
5/14/2023
document included after
corresponding task
This is custom documentation. For more information, please visit the SAP Help Portal 14
5/14/2023
entry
Exceptions
NO_AUTHORITY No authorization
This is custom documentation. For more information, please visit the SAP Help Portal 15
5/14/2023
NOTIF_PRIO_NOT_FOUND Priority not de ned
Use
Notes
Apart from when an EXCEPTION occurs, the measurement document data (structure IMRG) is always returned.
After a remote dialog in change mode, the redundant elds of the measurement document in the calling system can be
synchronized.
Import Parameters
Export Parameters
IMRG_BA See IMRG structure See IMRG structure Work area returned from
transaction
IMRG Structure
This is custom documentation. For more information, please visit the SAP Help Portal 16
5/14/2023
Name Type Length Short text
Length 8
This is custom documentation. For more information, please visit the SAP Help Portal 18
5/14/2023
WOOBJ CHAR 22 Object number of the order etc.
Exceptions
NO_AUTHORITY No authorization
Use
Notes
1. Apart from when an EXCEPTION occurs, the measuring point data (structure IMPT) is always returned.
2. After a remote dialog in change mode, the redundant elds of the measuring point in the calling system can be
synchronized.
3. If a unique value has been maintained in the eld Measurement position for the measuring point, the measuring point
can also be identi ed by the measurement position. In this case, use the parameter SECONDARY_INDEX.
Import Parameters
This is custom documentation. For more information, please visit the SAP Help Portal 19
5/14/2023
ABAP level
Export Parameters
IMPT_BA See IMPT structure See IMPT structure Work area returned from
transaction
IMPT Structure
This is custom documentation. For more information, please visit the SAP Help Portal 20
5/14/2023
from the reference measuring
point
This is custom documentation. For more information, please visit the SAP Help Portal 21
5/14/2023
MRMAX FLTP 16 Upper measurement range limit
or maximum total counter
reading
Exceptions
NO_AUTHORITY No authorization
This is custom documentation. For more information, please visit the SAP Help Portal 22
5/14/2023
Task
RFC to functional location: Individual processing, Change/Display/Read
Use
This RFC enables the following remote calls for functional locations:
Notes
1. Apart from when an EXCEPTION occurs, the location data (view IFLO) is always returned.
After a remote dialog in change mode, the redundant elds of the location in the calling system can be synchronized.
2. If a unique value has been maintained in the sort eld of the functional location, the location can also be identi ed by the
sort eld. In this case use the parameter SECONDARY_INDEX and create an index with the following elds for the table
ILOA:
EQFNR
OWNER
3. If alternative labeling of functional locations is active in your system, you can also identify the functional location using
the parameter FUNC_LOCATION_LABEL and LABELLING_SYSTEM.
You can therefore represent in parallel the location labels of different partner systems in the SAP System and use them
when calling up the SAP System to identify the functional locations.
Import Parameters
Export Parameters
This is custom documentation. For more information, please visit the SAP Help Portal 23
5/14/2023
IFLO_BA SeeIFLO structure SeeIFLO structure Work area returned from
transaction
This is custom documentation. For more information, please visit the SAP Help Portal 24
5/14/2023
This is custom documentation. For more information, please visit the SAP Help Portal 25
5/14/2023
MAPAR CHAR 30 Development reserve: Format
CHAR, Length 30
This is custom documentation. For more information, please visit the SAP Help Portal 26
5/14/2023
SUBMT CHAR 18 Construction type material of
the technical object
Table Parameters
Exceptions
NO_AUTHORITY No authorization
Data Elements
Use
Domain IMRC_FLTPS
Dependencies:
This is custom documentation. For more information, please visit the SAP Help Portal 27
5/14/2023
When you enter the document, the system makes an identical record in the database of the measurement reading entered,
together with its associated unit of measurement due to veri cation purposes. The system then converts the measurement
reading on the basis of its SI-unit and records this in the database as well.
All further processing is then performed on the basis of the measurement reading after conversion to its SI-unit.
De nition:
The system enters in this eld the information on the origin of the measurement document.
Checks:
1 Customer variant 1
This is custom documentation. For more information, please visit the SAP Help Portal 28