You are on page 1of 10

Intersession Events

XStep Café
April 01, 2015 Public

Summer Season in Germany


Exchange of Events in PP-PI-PMA Applications
Introduction
MDA Services
Various PP-PI-PMA applications already exchange events
SAP ALERT PM Destinations
 Usage of Manufacturing Data Access (MDA)
– Broadcast values
Process Messages
– Read and write OPC data points/tags etc.
 Usage of Intersession Event framework (ISE) by MDA
 Various MDA Services in SAP Standard MSG PSH PMC

– Definition of custom MDA service possible


– BAdI SCM_CMX_DA_SRV (package CMX_DA) MDA SYS

Legend (MDA Services) ODA


MSG: Process Messages
PSH: PI Sheets
PI - PCS SAP PCo
PMC: Cockpits
SYS: System Data
ODA: OPC Data Access
PCS .................. SCADA

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Public 2


Exchange of Events in PP-PI-PMA Applications
Challenges

Customer reported problems with stability and performance


 High workload peaks observed, caused by ISE framework
– Reported by non PP-PI-PMA application that uses ISE
 Short dumps occur when MDA functions are used
 Permanent blocking of work processes by RFC function module (ISE)
– Seems to run in an endless loop – why?

Consequences
 Renovation of ISE framework, shipped with SAP notes
 Share insights on ISE framework (this session)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Public 3


Intersession Events (ISE): Basic Processes
Processing ISE Events
• Application started (two users) Application Server
• User B: Registration of application for receiving
Session User A Session User B
events
• User A: Application fires event
Application X Application X
• Event data is added to event queue of
Raise event register Callback
application B (shared buffer) on_event_raised

• User B: Event is detected and processed by the ISE Manager ISE Manager

application
• Callback from ISE Manager to application

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Public 4


Intersession Events (ISE): Registration
Listening to ISE Events
Registration of application X on ISE event Application Server 1 Application Server 2

 Call REGISTER method of ISE manager 1 Session User B

– Transfer event class and event key Application Roll Area 1


 ISE manager stores registration in DB table 2 Application X

– System-wide access to registration 3 1


 ISE manager starts ISE service ISE-Manager
(Singleton)
– ISE service = asynchronous RFC 4
3 start ISE service

 ISE service checks the ISE event periodically Neue User-Session


ISE Service
(aRFC Function Module)
2
Roll Area 2
register 4
ISE Event Queue
(Shared Buffer)

Registration DatabaseTable
(CMX_ISE_REG)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Public 5


Intersession Events (ISE): Process Events
Raising and Receiving ISE Events
Application Server 1 Application Server 2
Raise and Process ISE event Session User A Session User B
 Application X raises ISE event (session user A) 1
Application Roll Area 1 Application Roll Area 1
 ISE manager read registration DB to identify event Application X
listeners 2 Application X

1 raise_event 6 7 8
 ISE event listener found 3
ISE-Manager ISE-Manager
– Add event to ISE event queue (session user B)
 ISE service (aRFC) detects ISE event 4 5
Neue
 ISE service stopped, returns to (parent) application 5 ISE Service
3 (aRFC Function Module)
 ISE manager triggers PBO/PAI processing 6
Roll Area 2
 Application starts distribution of ISE events 7 2 4
 Events are distributed to registered event handler 8 RFC
ISE Event Queue
(Shared Buffer)

Registration DatabaseTable
(CMX_ISE_REG)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Public 6


Intersession Events (ISE)
Demo

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Public 7


Intersession Events (ISE)
Additional Information

ISE Source Coding


 Package CMX_ISE

Relevant SAP notes


 2131657 - Performance problems with regard to intersession events (ISE)
 2133793 - Intersession eventing: Performance improvement (subsequent note)
 2136067 - Intersession eventing: No manual read of ISE event queue
 2137408 - Intersession events (ISE): Cleanup of shared buffer

SAP Library
 Manufacturing Data Access

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Public 8


Miscellaneous

Industry 4.0
 Technical and Operational Solutions for Industry 4.0 in ERP Systems

Increasing Size of PI Sheet Database Tables


 Prominent: POC_DB_VALUE
 Implement SAP note 1944659 - Performance improvement with PI-Sheet
– Error cause: Missing reset of buffer tables during sending of control recipes

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Public 9


Thank you

© 2015 SAP SE or an SAP affiliate company. All rights reserved.

You might also like