Upload
krushi123
View
146
Download
6
Embed Size (px)
DESCRIPTION
SCM 344 Process Management
Citation preview
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 Preface-1
SAP AG 2003
SCM344 Process Management
THE BEST-RUN BUSINESSES RUN SAP
SAP AG 2003
SCM344Process Management
SAP R/3 Enterprise 2003/Q3 50063197
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 Preface-2
SAP AG 2003
Copyright 2003 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.
All rights reserved.
Copyright
Trademarks: Some software products marketed by SAP AG and its distributors contain proprietary software
components of other software vendors. Microsoft, WINDOWS, NT, EXCEL, Word, PowerPoint and SQL Server are registered
trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390,
AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix and Informix Dynamic ServerTM are trademarks of IBM Corporation in USA and/or other countries.
ORACLE is a registered trademark of ORACLE Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, the Citrix logo, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame,
MultiWin and other Citrix product names referenced herein are trademarks of Citrix Systems, Inc. HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C, World Wide Web
Consortium, Massachusetts Institute of Technology. JAVA is a registered trademark of Sun Microsystems, Inc. JAVASCRIPT is a registered trademark of Sun Microsystems, Inc., used under license for technology
invented and implemented by Netscape. MarketSet and Enterprise Buyer are jointly owned trademarks of SAP AG and Commerce One. SAP, SAP Logo, R/2, R/3, mySAP, mySAP.com, and other SAP products and services mentioned herein
as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 Preface-3
several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 Preface-4
SAP AG 2003
Course Prerequisites
z PLM115 Basic Data for Process Manufacturingz SCM340 Process Manufacturing
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 Preface-5
SAP AG 2003
z Participants This course is aimed at project team members and key
users responsible for setting up the functions of SAP R/3 Process Management.
z Duration: 3 days
Target Group
Notes to the user
The training materials are not teach-yourself programs. They complement the course instructor's explanations. Space is provided in the course material for you to note down additional information.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 1-1
SAP AG 2003
z Course goalz Course objectivesz Course contentz Course overview diagramz Main business scenario
Contents
Course Overview
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 1-2
SAP AG 2003
This course tells you how to:
z Set up and use the data structures and functions of SAP R/3 Process Management
Course Goal
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 1-3
SAP AG 2003
At the conclusion of this course, you will be able to:
Course Objectives
z Maintain the data structures required for SAP R/3 Process Management: Process instructions for control recipes and PI sheets Process messages
z Use the functions of SAP R/3 Process Management
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 1-4
SAP AG 2003
Unit 1 Course Overview
Unit 2 Introduction
Unit 3 Process Messages -Structure and Settings
Unit 4 Process Messages-Processing
Unit 5 Process Messages inthe Standard SAP System
Unit 6 Process Instructions Structure and Settings
Unit 7 Process Instructions for Process Control Systems
Preface
Course Content
Unit 8 Control Recipes -Settings and Processing
Unit 9 PI Sheet Elements and Functions
Unit 10 PI Sheet Process Instructions
Unit 11 Process Instructions -Generation
Unit 12 Decentralized Process Management
Unit 13 Data Transfer Between Applications
Unit 14 SAP OPC Data Access
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 1-5
SAP AG 2003
Course Overview Diagram
Data Transfer Between Applications
1313
DecentralizedProcess Management
1212
Process Instructions -Generation
1111
1010 PI Sheet Process Instructions
99 PI Sheet Elements and Functions
Control Recipes -Settings and Processing
Process Messages -Structure and Settings
Process Messagesin the Standard SAP System
Process messages- Processing
Process Messages -Structure and Settings
Course Overview
Introduction
11
SAP OPC Data AccessProcess Instructions for Process Control Systems
22
33
44
55
66
77
99
1010
1111
1212
1313
1414
88
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 1-6
SAP AG 2003
Main Business Scenario
z You are a member of the project team responsible for setting up and maintaining the data and functions of SAP R/3 Process Management.
z Your tasks include the design and maintenance of process messages, process instructions, control recipes and PI sheets.
z You also have to plan, implement and test the related processes and functions of Process Management.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-1
SAP AG 2003
Introduction
z Basic functions of Process Management: Transferring control recipes to process control Maintaining PI sheets Transferring process messages from process control
Contents:
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-2
SAP AG 2003
Introduction: Course Objectives
At the conclusion of this unit, you will be able to:
z Describe the basic functions of Process Management
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-3
SAP AG 2003
Overview Diagram 2
Data Transfer Between Applications
DecentralizedProcess Management
Process Instructions -Generation
PI Sheet Process Instructions
PI Sheet Elements and Functions
Control Recipes -Settings and Processing
Process Messages -Structure and Settings
Process Messagesin the Standard SAP System
Process Messages- Processing
Process Messages -Structure and Settings
Course Overview
Introduction22
SAP OPC Data AccessProcess Instructions for Process Control Systems
99
1010
1111
1212
1313
1414
88
33
44
55
66
77
11
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-4
SAP AG 2003
Production planning
Process controlsystem (autom.)
Lab info.system
PI sheet (manual) Master recipeMaster recipe
Resource
Material
R/3 master dataQuality
ManagementProcess
Management
Process Manufacturing Functions
Prod.proc.model
Resource
Product
APO master data
R/3non-SAP
R/3
SAPAPO
Core Interface
R/3
SAPAPO
Process Order
Management
R/3
PI
PI
PI PI
The basic functional areas for mapping process manufacuring (PI in the graphic above) are as follows: y R/3 Resource Management: The PI-specific master data of resources describes all means of
production and persons involved in the production process.
y R/3 Master Recipe Management: The PI-specific master data of master recipes describes the manufacture of one or more materials in a production run without referring to specific orders. A master recipe is used as the template for a process order.
y R/3 Process Order Management: Process orders are created on the basis of master recipes. They describe and monitor the actual production process.
y R/3 Process Management coordinates the transfer of data to and from the process control level. It can be used in fully automated, partially automated, and manually operated plants.
It can also be integrated with other functional areas, such as: y R/3 Quality Management. External laboratory information systems can also be connected to R/3
QM using an interface.
y Planning levels (with R/3 and/or APO) y The master data and functions of R/3 Materials Management (such as material, inventory
management).
R/3 master data can be transferred to APO using the Core Interface (CIF).
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-5
SAP AG 2003
Resources
Manual
Planned orderProduction rqmts
Master recipe Productionversion
Process order
Material BOM
Process datadocumentation and
evaluation
Process Management
ProcessMessages
Control recipe:Process
instructions
PI sheetProcess control
system
Proc. controllevel
Process Manufacturing - Data Flow
R/3SAPAPO
R/3
non-SAP
R/3
Material
MM
QM
PI
PP
A production process is triggered by the existing production requirements. Production requirements are created as planned orders in material requirements planning. Planned orders define the basic production dates and planned production quantities.
During process planning, planned orders are converted into process orders. The basic dates and production quantities are copied from the planned order and the actual production dates are calculated using these basic dates. You can also create a process order manually.
A process order describes in detail the actual production of one or more materials in a production run. It is the main control instrument in production, describing and monitoring all planned and actual data relating to production.
A master recipe is used as the basis for a process order. It defines, for example, the planned resources and material components.
After a process order has been released for production, the process instructions maintained in the order are bundled into control recipes by process management. The control recipes are either transferred to a process control system using a specific interface or are displayed on the screen as a process instruction sheet (PI sheet) that can be read and maintained by process operators.
Process management in turn receives process messages from the process control level and forwards them to various destinations. For instance, it is possible to record confirmations for the process order, transfer actual process values to functions for process data documentation and evaluation, post material consumptions or production yields as goods movements, and transfer quality data to Quality Management results recording.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-6
SAP AG 2003
Process Steps of a Process Order
Order request
Costs
Operations
Proc. orders
Phases
Processinstructions
Resourceallocations
Materialcomponents
Process ordersettlement
Batch record
Archiving/deletion
Process messages tovarious destinations
In-process qualityinspections
Order confirmations
Process ordercreation
Availability check
Process orderrelease
Sending control recipes
Goods receipts
Relationships
Batch determination
Resource selection
Shop paper printing
Maintaining PI sheets
Material staging/material withdrawals
Deviation recordingResource/plantschedule
Material quantity calc.
The graphic shows the basic steps involved in executing a process order to control process manufacturing in the SAP System.
The processing steps of a process order can be grouped together in the following segments: y Process planning y Process order execution/Process Management y Order closing
You can execute many of these steps automatically or in background processing to minimize the manual activities involved in order management.
WIP calculation, deviation recording and settlement are usually periodic activities for Cost Object Controlling and are processed in the background.
A range of Customizing settings is required for each of the individual segments to ensure that an order is processed successfully.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-7
SAP AG 2003
Process Management
ExecutionProcessplanning
ProcessManagement
Processcontrol
PI sheet
Processcontrolsystem
PI-PCS
R/3 ornon-SAP system
Othermessage
destinations
Process order
Controlrecipe (proc.instructions)
Processmessages
Process Management serves as the interface between PP-PI and the systems involved in process control. Its flexible structure enables connections with fully automated, partially automated, and manually operated production lines. Process Management comprises the following functions:
y Receiving control recipes with process instructions from released process orders. Process instructions define in detail the process steps to be executed and the process data to be reported (with process messages), for example.
y Transferring control recipes to the relevant process operators or process control systems. y Manual maintenance: Converting control recipes into PI sheets in natural language, which can be read
and maintained online by the process operator.
y Receiving, checking and sending process messages with actual process data from the process control system or the PI sheet.
The PI-PCS interface is used to transfer data to and from process control systems.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-8
SAP AG 2003
Creating and Sending Control Recipes
Process Management Process controlProcess order
OperationsOperationsOperations
PhasesPhasesPhases
Processinstructions
Control recipedestination
PI sheet
Processcontrol systems
Header
PI-PCS
Controlrecipes
Information that is relevant to process control is stored in the process order in the form of process instructions that are assigned to the phases of the process order.
Process Management groups the process instructions together in control recipes and transfers these to the control recipe destination defined in the process order.
You can create control recipes for: y Process control systems in automated production plants y Process operators in manually operated plants
In the latter case, process operators can read and maintain the control recipe online in the form of an R/3 PI sheet.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-9
SAP AG 2003
Control Recipe Monitor
Ctrl recipe Proc.order Address Status Test Created onControl Recipe Monitor
100000003110000000451000000045100000002210000000351000000035
OPER 1PCS 1PCS 3OPER 7OPER 1PCS 5
ProcessedSentTerminatedSentCreatedDiscarded
11.09.200315.09.2003 15.09.200318.09.200321.09.200321.09.2003
100000074100000075100000077100000078100000081100000083
System messages
Send
Log
System messagestRFC Log
The control recipe monitor provides information on the current processing status of a control recipe. From the monitor, you can call different logs that provide more detailed information on the individual
process steps and any errors that may have occurred.
On the basis of this information, you can execute the following functions from the monitor: y Send control recipes if they are not automatically sent in a background job defined in Customizing y Delete control recipes
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-10
SAP AG 2003
PI Sheet
PI sheet
PI sheet 1000000449 ReceivedProcess order 1234 Material: XYZ Test material
Operating grp: W01
Phase 10/Instr. 10Heat the solvent. Temp: ______ CStart the agitator. Speed.: ______Add material ABC. Quantity: ____ kg
Signature: ____Note:
Phase 10/Instr. 20Check material quality. Record inspection results.Record material quantity. Display document.Stop heating and Quantity: ____ kgreduce the stirring speed. Speed.: ______
Signature: ____
Phase 10/Instr. 30 Total qty: ?___Start cooling.Record time and temperatureevery hour.
Time Temperature10:00 175.011:01 168.3
Due to an error...
Additionalinformation
Controlinformation
Header
Inputvalues
Comment sheet
Comments
Inputvalues
Inspectionresults recording
Function call
Signature forprocess step
Formula result
SAP PI sheets enable on-screen maintenance, which means that the process operator can enter, confirm, report or complete data interactively.
Depending on the process instructions contained in the control recipe, the PI sheet may contain various elements and functions, for example:
y Display of process-relevant information (operational method sheets, notes, and so on) y Input fields and tables for reporting process data, input validations and signatures y Batch determination and batch check y Process data calculation y Function calls for requesting data from internal or external applications y Option of branching to QM results recording y Sequence definition for defining the processing sequence of the phases y Comments for documenting and reporting process events
As of Release 4.6C, you have the option of generating PI sheets in HTML layout. The browser-based PI sheet is a further development of the ABAP list-based PI sheet. It offers the advantages of a flexible, user-specific layout definition and enables, an OPC (OLE for Process Control) connection and the definition of frames, for example for including documents, graphics, and Internet and Intranet links.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-11
SAP AG 2003
Process Management
Process control system PI sheetProcess control
QM
Processorder
Inventory Management
Flexible Data Entry with Process Messages
Process dataevaluation
Process datadocumentation
EBR
ProcessMessage
Process Message
PI-PCS
Batch management
Handling UnitManagement
Plant Maintenance
PI-PCS
Process messages are data structures used to report actual process data from process control to one or more destinations.
Users can define their own process messages in Customizing to meet their specific needs. The standard SAP System contains a number of predefined process message categories that enable
you to transfer actual data from process control to the R/3 System.
First, the process messages are sent to Process Management. They are then checked and passed on to predefined destinations.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-12
SAP AG 2003
System messagesLog
System messages
tRFC Log
Message Monitor
Message MonitorMess.cat. Send statusCreation date Time Sender
PI_CRSTPI_PHSTREADPI_CONSPI_PRODPI_COMPI_PHSTPI_PHST
SentSent with warningIncompleteTerminatedDestination errorTo be sentTo be resubmittedTo be resub.w.warning
09.03.200309.03.200309.03.200309.03.200309.03.200309.03.200309.03.200309.03.2003
15:1513:2313:3113:4013:4313:4713:4913:49
SYS 1CTM 1CTM 1CTM 1CTM1CTM1CTM1CTM1
Change message
Display message
Send
The message monitor provides information on the current status of process messages. From the monitor, you can call logs that provide more detailed information on the processing of
individual messages and any errors that may have occurred.
On the basis of this information, you can execute the following functions from the monitor: y Complete or correct incomplete or incorrect messages y Send messages if they are not automatically sent by a background job defined in Customizing y Delete messages
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-13
SAP AG 2003
z Process management provides an interface to the systems involved in process control.
z Information relevant to process control is enteredin the process order in the form of process instructions.
z Process instructions are bundled into controlrecipes and transferred to process controlby Process Management.
z Control recipes can be created for process control systems or as R/3 PI sheets that canbe maintained manually.
z Process messages can be used by process control to transfer actual data to the relevantR/3 functions and other destinations.
z Monitors provide an overview of the current processing status at all stages.
Introduction: Summary
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-14
Exercises
Unit: Introduction
Releasing process orders
Creating and sending control recipes
Maintaining PI sheets
Displaying and sending process messages
1-1 Call process order ORDER-##, which has been created for your group number, in change mode.
1-2 Release your process order and create the control recipe. Save your order.
1-3 In the Process Management application menu, call the control recipe monitor and select the control recipes created for order ORDER-##. Send the control recipe online from the monitor.
1-4 Find the PI sheets belonging to your control recipes by selecting the relevant menu item in the Process Management application menu. Access the PI sheet for the Scales operating group in change mode and maintain some of the process steps in the PI sheet.
1-5 From the Process Management application menu, go to the process message monitor and select the process messages created during maintenance of the PI sheet. Send the control recipe online from the monitor.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 2-15
Solutions
Unit: Introduction
1-1 SAP menu: Logistics Production Process Process Order Process Order Change Process order: ORDER-## Press Enter.
1-2 In the process order: Click the Release icon. Click the Create Control Recipe icon. Choose Save.
1-3 Logistics Production Process Process Management Control Recipe Control Recipe Monitor Plant: 1100 Process order: ORDER-## Press Enter. Select your control recipes in the control recipe monitor and choose Send. To check whether the control recipes have been sent, click the Refresh icon. The control recipes should have the status sent.
1-4 Logistics Production Process Process Management PI Sheet Find Process order: ORDER-## Choose Execute (F8). Select the PI sheet for the Scales operating group and choose Maintain PI sheet.
1-5 Logistics Production Process Process Management Message Message Monitor Process order: ORDER-## Press Enter. Select your process messages in the message monitor and choose Send. To check whether the messages were sent, click the Refresh icon. The messages should have the status sent.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-1
SAP AG 2003
z Structure of process messagesz Message categories and message characteristicsz Structure and types of message destinationsz Assigning message destinations to process message
categories
Process Messages - Structure and Settings
Contents:
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-2
SAP AG 2003
Process Messages -Structure and Settings: Course Objectives
At the conclusion of this unit, you will be able to:
z Create process message categories in Customizingz Define different message destination types in
Customizing and assign these to process message categories
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-3
SAP AG 2003
Overview Diagram 3
Data Transfer Between Applications
Decentralized Process Management
Process Instructions Generation
PI Sheet Process Instructions
PI Sheet Elements and Functions
Control Recipes Settings and Processing
Process Messages -Structure and Settings
Process Messagesin the Standard SAP System
Process Messages Processing:
Process Messages -Structure and Settings
Course Overview
Introduction
33
SAP OPC Data AccessProcess Instructions for Process Control Systems
44
55
66
77
11
2299
1010
1111
1212
1313
1414
88
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-4
SAP AG 2003
Contents of a Process Message - Example
Process order number
Phase number
Measuring device
Unit of measure
Date
Time
Temperature
Message on temperature reading
Process messages are data structures used to report actual process data from process control to one or more destinations.
Users can define their own process messages to meet their specific needs. Process messages for R/3 components are predefined by SAP.
The graphic shows an example of the contents of a process message that reports the value of a temperature reading.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-5
SAP AG 2003
Message on temperature reading
Structure of a Process Message in R/3 - Example
PPPI_PROCESS_ORDER
PPPI_PHASE
PPPI_SOURCE
TEMPERATURE
PPPI_UNIT_OF_MEASURE
PPPI_EVENT_DATE
PPPI_EVENT_TIME
Message characteristics Characteristic values
60000047
4020
T-11
57
C
05.04.2004
15:26
You define the contents of a process message in R/3 by assigning characteristics and characteristic values to it. Each characteristic may be used only once in a process message.
The characteristics together with their formats and value ranges are predefined in Customizing. Depending on the format, the value of a message characteristic may be a date, a time, numeric or alphanumeric key, short text or a long text.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-6
SAP AG 2003
READ message category
Process Message Category - Process Message
req. = required message characteristic
PPPI_PROCESS_ORDER
PPPI_ OPERATION
PPPI_ PHASE
PPPI_ SOURCE
TEMPERATURE
PPPI_UNIT_OF_MEASURE
PPPI_EVENT_TIME
PPPI_EVENT_DATE
req.
req.
req.
req.
req.
PPPI_PROCESS_ORDER
PPPI_PHASE
PPPI_SOURCE
TEMPERATURE
PPPI_UNIT_OF_MEASURE
PPPI_EVENT_DATE
PPPI_EVENT_TIME
60000047
4020
T-11
57
C
05.04.2004
15:26
req.
Proc.message 1000057, READ cat.
Process messages are predefined in Customizing using process message categories. The message category specifies the characteristics a process message can or must contain, that is, the information it conveys.
When you create a process message in the R/3 System (for example, when you report data in a PI sheet), you must use an existing process message category. The characteristics of the message category are copied into the process message. Process-specific characteristic values are added in the message.
Process Management checks every incoming process message against the predefined message category. The diagram shows a message reporting the value of a temperature reading to illustrate the relationship
between process message categories and process messages.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-7
SAP AG 2003
Characteristics for Process Messages
Release forprocess
messagesCharacteristics Process message categories
C2
C3
C6
Group 1
C1
C5
C4
C9
Group 2
Group 3
Mess. category A
C2
C8
Mess. category C
C3
C6
Mess. category B
C7
C6
C7
C8
You create characteristics in Customizing and combine them in groups. To be able to assign a characteristic to a process message, you must first release the characteristics
groups for use in process messages.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-8
SAP AG 2003
Process dataevaluation
ProcessManagement
Processorder
Process control PCSPI sheet
R/3 functionmodule:
Update ofdata inR/3 modules
SAPoffice user:
Information on processevents
ABAP table:Basis for evaluations
Process operatorPlanner
InventoryManagement
Other PCS
Message Destination Types
Processmessage
Coordination withExternal systems
External function:
SAP Alert Mgmt.:Exceptionmessages
Fax
SMS
Process messages can be sent to one or more destinations for further processing. They can be sent to the following message destination types: y R/3 function modules y SAPoffice mail system users y ABAP tables defined by the user y External functions (for example, a process control system) y Alert categories of the SAP Alert Management system
R/3 function module type message destinations are predefined in the standard system. You can use these destinations to execute the following actions, for example:
y Update the status of control recipes y Report time events for the phases of an order y Post goods movements y Report inspection results to QM
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-9
SAP AG 2003
Message Destinations - Structure
Typ
Target fields
Address
Type R/3 function module
SAPoffice user
External function
ABAP table
Name of function module
Table name
SAPoffice user name
RFC destination of the function
Fields specified in the function moduleFields specified in the function module
Table fields
SAP Alert Management system
Alert category
Container elements
Proc. message destinations
You define message destinations in Customizing without reference to a specific process message or message category.
The address you have to maintain for a destination depends on the destination type, that is, the way in which the data is transferred (within R/3 or using a remote function call - RFC).
With R/3 function module, ABAP table, and SAP Alert Management destinations, you can define destination-specific target fields. Target fields are fields within a message destination to which the value of a specific message characteristic is transferred.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-10
SAP AG 2003
Message Category - Message Destination
...
...
Destination 1
Messagecategory 1
Messagecategory 2
Messagecategory 3
Destination 2
Destination 1
Destination 3
Messagecategory 1
...
...
In Customizing, you assign message destinations to message categories.You can: - Assign any number of destinations to each message category
- Assign any number of message categories to each destination
Process Management transfers all incoming messages to the destinations defined for the relevant message category.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-11
SAP AG 2003
Characteristics
Message Characteristics - Target Fields
Target fields
T1
T2
T3
T4
Target fields
TA
TB
TC
......
......
D1
D3 ......
D2
Customizing
C2
C3 req.
......C4 req.
C1 req.
Process message category
Destinations
By assigning message characteristics to destination-specific target fields in Customizing, you specify which characteristic value is to be transferred to which destination field. The destination type determines whether you can or must make this assignment:
y R/3 function module: Assignment is possible if required by the function module. y ABAP table: Assignment is required. Otherwise, no message data is transferred. y SAP Alert Management system: Assignment is required if container elements are to be used. y SAPoffice user: No target fields y External function: No target fields
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-12
SAP AG 2003
Type
Message Destinations, R/3 Function Type
Address: Name of function module
Target fields: specified in the function module(control recipe number)CONTROL_RECIPE
CONTROL_RECIPE_STATUS (control recipe status)EVENT_DATE (date)EVENT_TIME (time)
COCI_CONFIRM_CONTROL_RECIPE
01 (R/3 function module)
Destination PI02, control recipe management
The graphic shows an R/3 function type message destination, which you can use to update the status of control recipes.
You can create your own function modules and define them as message destinations. To do this, refer to the requirements regarding interface and error handling described in the Implementation Guide (IMG).
If you want to transfer the values of the message characteristics to specific fields defined in the function module, you must define these fields as target fields in the message destination.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-13
SAP AG 2003
Destination (PP-PI)
Message Destinations, ABAP Table Type
Type
Address: Table nameYPPPI1
Target fields: Field name in tableAUFNR (order number)
MATCON (material quantity)
PHVAL (pH value)
ERFME (unit of measure)
04 (ABAP/4 table)
Table (ABAP Dictionary)
Data fields
Key
MSID (message number)
WERK (plant):
AUFNR (order number)
CRID (ctrl recipe number)
MATCON (material quantity)ERFME (unit of measure)PHVAL (pH value)
MANDT (client)
CRID (ctrl recipe number)
Table YPPPI1 TAB1 destination, measurement table
The graphic shows the relationship between an ABAP table and the definition of the corresponding message destination.
You can use an ABAP table as a message destination if the following requirements are met: y It is a transparent table. y The table name is within the customer namespace (X* or Y*). y The table is active in the ABAP Dictionary and stored on the database. y The table contains the following fields:.
- MANDT (client): First key field, data type, and field length as in domain MANDT
- MSID (message number): Second key field, data type, and field length as in domain CO_MSID
- WERK (plant): No key field, data type, and field length as in the WERKS domain
You must define all table fields to which you want to transfer the value of a message characteristic as target fields in the message destination. The only exceptions are the MANDT, MSID, and WERK fields mentioned above.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-14
SAP AG 2003
MA01 destination, shift supervisor in plant 0001
Message Destinations, SAPoffice User Type
Type
03 (SAPoffice user)
Address: SAPoffice user name
CMT1
The graphic shows an example of an SAPoffice user type message destination.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-15
SAP AG 2003
PCS1 destination, process control system 1
Message Destinations, External Function Type
Type
02 (external function)
Address: RFC destination of the function
PCS_1
The graphic shows an example of an External Function type message destination. With destinations of this type, a remote function call (RFC) is used to transfer the message data. The
RFC destination of the message destination must be defined for a TCP/IP connection.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-16
SAP AG 2003
Message Destinations for Sending Alerts
PI sheet
Process control system
Message monitor1000000005146
1000000005189
1000000006489
1000000007897
Messages with alerts
Alert Management system
Alert categoriesExample:Productionstandstill
UserExample:P. King
RoleExample:
ProductionDirector
UserExample:A. Miller
UserExample:Q. Jones
. . .
Follow-up function(hyperlink)
E-mail Fax SMS
As of SAP R/3 Enterprise SCM Extension 1.10 (EA_APPL 110), the new process destination type 5 Alert Category is provided as standard. You can use this message destination to send alerts to one or more destinations, for example, from PI sheets, external process control systems or manually. The alerts can be delivered to the destinations by SMS or e-mail, for example. In this way, you can provide timely information to specific destination groups about unforeseen and potentially critical situations in the plant.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-17
SAP AG 2003
Sending Alerts: Settings (I)
User
Define alert categories Technical name/description Properties (classification, priority) Container elements (=text variables) Short and long texts Optional subsequent activities (URL: hyperlink) Fixed recipients Recipients via user roles Role assignment for authorizations (for subscription) RFC destination of the alert server
Cell phone number (->SMS) Fax number E-mail address
Customizing
User master record Depending on the means of communication, you enter an e-mail address or an SMS cell phone number, for example, in the user master record of the alert recipient .
Alert categories In this process step, you define the following:
y an alert category This is also the destination address for the process message destinations of type 5.
y a short text and long text for the alert category y if required, a container with specific text variables
These are also destination-specific target fields for your process message destination of type 5. The system replaces the text variables with actual values at runtime.
y if required, hyperlinks for follow-up functions Recipient assignments
The following options are provided for defining the alert recipients:
y Fixed recipients You assign individual users to the alert category as recipients.
y Recipients via user roles You assign individual roles to the alert category as recipients. All users in this role are automatically notified as soon an alert in this category is sent.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-18
y Role assignment for authorizations With this option, you can use a role to define the authorization for subscribing to certain alert categories.
RFC destination y If the SAP alert server is to be used as the alert management system in the SAP application system,
enter NONE as the RFC destination.
y If the SAP alert server is to be used as an alert management system in another SAP system, enter the RFC destination of the relevant SAP system.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-19
SAP AG 2003
Sending Alerts: Settings (II)
Define and set up message destinations Type: 5 SAP Alert Management Destination address Target fields (for container elements)
Customizing
Define and set up process message categories Assign type 5 destinations to a message category Assign target fields to the message category
Define and set up process message destinations You define a type 5 process message destination. You enter the alert category as the destination address.
If you have defined container elements for the alert category, you must define destination-specific target fields for these in the message destination. Enter the names of the container elements as target field names.
Define and set up process message categories You define a processage message category, to which you assign both the process message destination and the destination-specific target fields.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-20
SAP AG 2003
Customizing for Process Messages
Create characteristics
group
Releasecharacteristicsgroup for usein messages Create
characteristic
Assign characteristicto characteristics group
Createmessagecategory
Definemessage
destinations
Assigncharacteristics
to messagecategory
Assign destinations to
message category
Createdestination-
specifictarget fields
Assign message characteristicsto destination-specific
target fields
44
55
33221.31.31.11.1
1.21.2
1.41.4
The graphic illustrates the procedure and individual steps you need to carry out to define a process message category in Customizing.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-21
SAP AG 2003
Process Messages - Structure and Settings:Summary
z Actual process data from process control can be reported to one or more destinations using process messages.
z Process messages can be sent to the following message destination types:R/3 function module, SAPoffice user,ABAP table, external system andSAP Alert Management system.
z The content of process messages is determined by characteristics and their characteristic values.
z Process messages are created in message categories that are predefined in Customizing.
z Message destinations are defined in Customizing and assigned to message categories.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-22
Exercises
Unit: Process Messages - Structure and Settings
Customizing: Creating message characteristics, message destinations and message categories
Application: Creating and sending messages
Process messages for mail recipients 1-1 Go to Customizing (IMG) for Process Management and familiarize yourself with the
IMG structure. 1-2 Create characteristics group SCM344-## in Customizing, give it the name
characteristics group ## and release it for use in process messages in plant 1100. 1-3 Create the message characteristic LONG_TEXT-## in Customizing.
Enter the following properties for the characteristic:
Characteristic description Long text characteristic group ##
Characteristics group Characteristics group ##
Status Released
Data type Character format (for example, 30 characters)
In the additional data for Process Management (press the Proc. Mgmt button), specify that the characteristic is to be assigned a long text.
If necessary, refer to the IMG documentation for this exercise.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-23
1-4 Create process message category TEXT-## in the Customizing settings for plant 1100. Select the description Long text message group ##. Assign characteristics to the message category. All messages of this message category should contain the following information:
Information Characteristic
Process order Use the input help (F4).
Long text LONG_TEXT-##
Date of event Use the input help (F4).
Time of event Use the input help (F4).
Use the F4 help and the Find and Find again buttons to find the characteristics.
Mark all characteristics as required characteristics.
Save your entries.
1-5 Define message destination M## for plant 1100 in Customizing. Enter the following properties for the destination:
Description Mail recipient group ##
Type SAPoffice destination (03)
Destination address SAPoffice destination of your group (corresponds to the user name)
Make the required settings.
Save your entries.
1-6 Assign destination M## to message category TEXT-##. Save your entries.
1-7 Go to the Process Management application menu and familiarize yourself with the menu structure.
1-8 Create a manual message of category TEXT-##. Enter order number ORDER-## and a long text of your choice. Save the message.
1-9 Go to the message monitor and display the message of category TEXT-## created for order ORDER-##. Send the message. If all your settings are correct, you will soon receive an express e-mail. You can view the contents of the message in your inbox.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-24
Process messages for destination table and process message record 2-1 In Customizing for plant 1100, find message destination PI01, Process message record
and the target fields defined for it.
Answer the following questions:
- What is the destination type?
__________________________________
- What is the function of the target field?
__________________________________
2-2 Create message destination T##. Enter the following properties for the destination:
Description Table destination group ##
Type ABAP/4 table (04)
Destination address YMESS
Define all table fields of the YMESS table, with the exception of MANDT, MSID and WERK, as target fields of the process message destination. To do so, start a second session and display a list of all table fields of the YMESS table (see solutions). Save your entries.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-25
2-3 In Customizing for plant 1100, display process message category MEAS-##. Display the message characteristics.
Assign destinations PI01 and T## to the message category.
Assign the message characteristics to the target fields of the destinations as follows:
PI01 destination:
Characteristic Target field
PPPI_PROCESS_ORDER PROCESS_ORDER
Destination T##:
Characteristic Target field
MEASURED_VALUE READING
PPPI_EVENT_DATE EVENTDATE
PPPI_EVENT_TIME EVENTTIME
PPPI_OPERATION OPERATION
PPPI_PHASE PHASE
PPPI_PROCESS_ORDER ORDERNO
PPPI_SOURCE SOURCE
PPPI_UNIT_OF_MEASURE UOM
You can use the input help (F4) to select the message characteristics and the corresponding target fields.
Save your settings.
2-4 Go to the Process Management application menu and manually create a process message with the category MEAS-##. Enter any measured value, order number ORDER-##, operation 0010, phase 0011 and unit of measure C and enter measuring device Device-## as the data source. Save the message.
2-5 Go to the message monitor, display the message with category MEAS-## that was created for order ORDER-##, and send the message.
2-6 Go to the YMESS table and display the entries created for your message.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-26
Solutions
Unit: Process Messages - Structure and Settings
Process messages for mail recipients
1-1 SAP menu: Tools Customizing IMG Edit Project / Choose Display SAP Reference IMG / SAP Customizing IMG: Production Planning Process Industry Process Management
1-2 Customizing: (...) Process Management Process Messages Process Message Characteristics Define Characteristics Groups for Process Messages/Define Characteristics Groups Choose New entries. Char. Grp.: SCM344-## Characteristics Group: Characteristics group ## Save your entries and choose Back twice. You can release the characteristics group in the same Customizing activity by choosing Release for Process Messages. Plant: 1100 Choose New entries and enter the characteristics group you have defined above. Save your entries and choose Back to go back to the IMG.
1-3 Customizing: (...) Process Management Process Messages Process Message Characteristics Define Characteristics for Process Messages Choose Create Characteristics for Process Messages. Characteristic: LONG_TEXT-## Enter Enter the data provided in the exercise.
In the Additional Data for Process Instructions and Messages dialog box (choose Proc. Mgmt), select the Value is long text field Save your entries.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-27
1-4 Customizing: (...) Process Management Process Messages Define and Set up Process Message Categories Plant: 1100 Choose New Entries and enter the process message category with its description. Enter Select the entry and double-click Characteristics/Message categories in the dialog structure. Assign the following characteristics on the Characteristics/ Message Categories screen (choose New entries):
Characteristic Description Req
PPPI_PROCESS_ORDER Process order x
LONG_TEXT-## Long text characteristic group ##
x
PPPI_EVENT_DATE Date of event x
PPPI_EVENT_TIME Time of event x
Save your entries. 1-5 Customizing:
(...) Process Management Process Messages Process Message Destinations Define and Set Up Message Destinations Plant: 1100 Choose New Entries. Enter the name of the message destination and enter the data provided in the exercise.
Save your entries. 1-6 Customizing:
(...) Process Management Process Messages Define and Set Up Process Message Categories (plant 1100) Select process message category TEXT-## and double-click on Destinations/ Message categories in the dialog structure. Choose New Entries. Enter destination M## and choose Save.
1-7 SAP menu: Logistics Production - Process Process Management
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-28
1-8 SAP menu: Logistics Production Process Process Management Message Create Manually Plant: 1100 Prozess message category: TEXT-## Enter Choose Create Text for the LONG_TEXT-## characteristic, enter any long text in the editor, choose Save and then Back. Enter order number ORDER-## for characteristic PPPI_PROCESS_ORDER Process order. Save the message.
1-9 SAP menu: Logistics Production Process Process Management Message Message Monitor Select the following selection criteria:
Process order ORDER-##
Process message category TEXT-##
Enter Select your message and choose Send. Then check the message status by clicking the Refresh button. A dialog box appears and informs you that you have received a mail. Click Inbox in the dialog box to display the message contents.
Process Messages for Destination Table and Process Message Record 2-1 Customizing:
(...) Process Management Process Messages Process Message Destinations Define and Set Up Message Destinations (plant 1100) Destination type: 01 = R/3 function module Function of the target field: Select PI01 and double-click on Target Fields/Message Destinations in the dialog structure. The PROCESS_ORDER target field is used to transfer the process order number to the function module.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-29
2-2 Create the message destination as described in 1-5.
Select message destination T## and double-click on Target Fields/Message Destinations. Choose New Entries.
Then select the SAP menu in a new session: Tools ABAP Workbench Development Dictionary (SE11). In the Database table field, enter table name YMESS. Choose Display. The Fields tab appears.
Define the eight table fields specified in the exercise as target fields for message destination T##. Use the short text for the table fields or a similar text as the short text for the target fields.
Save your entries. 2-3 Customizing:
(...) Process Management Process Messages Define and Set Up Process Message Categories (plant 1100) For message category MEAS-##: Dialog structure: Select Characteristics/message categories to display the
characteristics
Dialog structure: Select Destinations/message categories. Choose New Entries to assign both destinations in sequence to the destinations PI01, T##: Dialog structure: Characteristics/destination-specific target fields Choose New entries to assign the message characteristics to the target fields of the destinations.
Choose Save. 2-4 SAP menu:
Logistics Production Process Process Management Message Create Manually Plant: 1100 Process message category: MEAS-## Enter Assign values to the characteristics as described in the exercise.
Save your entries and choose Back. 2-5 SAP menu:
Logistics Production Process Process Management Message Message Monitor Select your message as specified and send it.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 3-30
2-6 SAP menu: Tools ABAP Workbench Overview Data Browser (SE16) Table name YMESS Enter PLANT 1100 ORDERNO ORDER-## Click on the Execute symbol.
Select your table entry and choose Table Entry Display.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-1
SAP AG 2003
Process Messages - Processing
z Creating process messagesz Sending process messagesz Monitoring process messagesz Deleting process messages
Contents:
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-2
SAP AG 2003
Process Messages - Processing:Course Objectives
At the conclusion of this unit, you will be able to:
z Describe the possible processing steps of a process message: Options for creating process messages Options for sending process messages Options for monitoring process messages Options for deleting process messages
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-3
SAP AG 2003
Overview Diagram 4
Data Transfer Between Applications
Decentralized Process Management
Process Instructions Generation
PI Sheet Process Instructions
PI Sheet Elements and Functions
Control Recipes Settings and Processing
Process Messages -Structure and Settings
Process Messagesin the Standard SAP System
Process Messages Processing:
Process Messages -Structure and Settings
Course Overview
Introduction
44
SAP OPC Data AccessProcess Instructions for Process Control Systems
11
22
33
55
66
77
99
1010
1111
1212
1313
1414
88
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-4
SAP AG 2003
Process Message Processing - Overview
Send message
Createmessage
Changemessage
Data istransferred
Startsend
function
Message ischecked
Transfer to Process
Management
The graphic provides an overview of how a process message is processed.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-5
SAP AG 2003
Creating Process Messages
Createmessage
Send message
Transfermessage
to ProcessManagement
through PCSinterface
using RFC
internally
Changemessage
in PI sheet for
processinstruction
manually in Proc.Manwithout
proc. instruc.
in proc. control system for
proc. instruction
Data istransferred
Startsend
function
Message is checked
autom. in Proc.Manwithout
proc. instruc.after event (Manufacturing Data Access)
periodically
Process messages are created as part of process control to report actual data for executing a process order. Process messages can be created in one of the following ways:
y For planned or expected process events, you can request the corresponding message using a relevant process instruction. The message is created automatically when the process operator maintains the PI sheet, or when the control recipe is processed by the process control system.
y In expectional situations that are not taken into account in the PI sheet or control recipe, you can also create process messages manually within Process Management.
y In addition, process messages may be automatically created either periodically or based on events. Events are defined in the SAP manufacturing data access system.
After creation, the process messages are transferred to Process Management, which sends them to the relevant destinations. Messages are transferred as follows:
y Manually created messages are transferred immediately after they are saved. y Automatically created messages are transferred after the event is reported. y Messages created from a PI sheet are transferred after you have executed the report function in the PI
sheet.
y Messages are transferred from the process control system to Process Management using a remote function call (RFC).
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-6
SAP AG 2003
Automatic Creation of Process Messages
Define variant
Plant: Variant name: Short text
Start condition _ Start not permittedM Manual individual executionP Periodic startE Event-controlled start
Process message to be generated
_ no valueF Fixed valueD Data point
Define periodDefine event
Message cat.:
Message characteristics: Valuation type:
Characteristic value: < depends on valuation type>
The Create process message automatically transaction is provided as of SAP R/3 Enterprise SCM
Extension 1.10 (EA_APPL 110). You can use this transaction to specify that process messages are to be created automatically at certain
time intervals or whenever an event occurs. In this way, you can ensure that process messages for an event are created, even if the corresponding PI sheet is not being processed, for example.
You create a variant for each process message category in this transaction. You can select the following start conditions: y Start not permitted
The variant cannot be started. y Manual individual execution
You can only start the variant manually in the overview screen. The process message is only created once.
y Periodic start With this condition, you enter time intervals at which the variant is to be started automatically. The process messages are created automatically at the time intervals you have defined.
y Event-controlled start With this condition, you specify the manufacturing event that will trigger the creation of a message. The manufacturing data access interface supplies events from the connected services.
You can assign values to the message characteristics of the message as follows: y no value y any fixed value y manufacturing data point
The overview screen displays all of the defined variants in a plant. From this screen, you can start or stop the variants. The system logs all start activities as well as any success or error messages that are issued for the variants.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-7
SAP AG 2003
Change message
Sending Process Messages
Check message
to externalfunction
using RFC
Data istransferred
Start the sendfunction for
all messagesready to be sentin the background:
Check message
Individual messages online:
Message is checkedTransfermessage
to Process Management
automatically(after event/time interval)
manually inthe monitor
manually inthe monitor
General:Syntax
consistency
Destination-specific
internally toz R/3 function
modulez ABAP tablez SAPoffice userz SAP Alert
Management
The function for sending process messages can be executed in the following ways: y Using a background job defined in Customizing. The send job is started:
- Automatically (provided that you have made the relevant setting in Customizing) at predefined time intervals or whenever a new message is created
- Manually in the message monitor
- The background job sends all messages with the status "To be sent", "To be resubmitted" or "To be resubmitted with warning".
y Online for selected messages. You can start the send function in the monitor. Before sending a process message to its destinations, the system checks: y Whether the message matches the message category defined in Customizing in R/3 y Whether a message can be processed by the relevant destinations (except for external functions) You can correct messages containing errors if they have not yet been sent.
Depending on the results of the checks, the message is sent to all destinations, only to those destinations where no error was found, or to no destinations. For each message category, you can specify whether the message is sent to all destinations that can process it or to no destination if an error occurs with at least one destination.
If the message destination is an external destination, the data is transferred using the PI-PCS interface using a remote function call (RFC).
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-8
SAP AG 2003
System messagesLog
System messages
tRFC log
Message Monitor
Message MonitorMess.cat. Send statusCreation date Time Sender
PI_CRSTPI_PHSTREADPI_CONSPI_PRODPI_COMPI_PHSTPI_PHST
SentSent with warningIncompleteTerminatedDestination errorTo be sentTo be resubmittedTo be resub.w. warn..
09.03.200409.03.200409.03.200409.03.200409.03.200409.03.200409.03.200409.03.2004
15:1513:2313:3113:4013:4313:4713:4913:49
SYS 1CTM 1CTM 1CTM 1CTM1CTM1CTM1CTM1
Change message
Display message
Send
The message monitor provides information on the current status of process messages. From the monitor, you can call logs that provide more detailed information on the processing of
individual messages and any errors that may have occurred.
On the basis of this information, you can execute the following functions from the monitor: y Complete or correct incomplete or incorrect messages y Send messages if they are not automatically sent by a background job defined in Customizing y Delete messages
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-9
SAP AG 2003
sent,sent with warning
Processing and Status of a Process Message
c
destinationerror;
terminated
Send message
To be sent
Check message
OK?
Transfermessage
to Process Management
incomplete
TransferdataOK?
Change message
No
No
Yes YesStartsend
function
to be resubmitted,to be resubmitted
with warning
Process message status
The graphic shows the sequence of statuses a message can have while it is being processed. The meanings of the individual message statuses are as follows:
y To be sent: The process message is created but has not yet been sent. y Sent: The process message has been sent to all its destinations. y Sent with warning: The message log contains a warning message. The process message has been sent
to its destinations despite the warning.
y To be resubmitted: One of the message destinations was temporarily not available, for example, because it was locked. However, the message has been sent to the other destinations.
y To be resubmitted with warning: One of the message destinations was temporarily unavailable. In addition, a warning message was issued by one of the other destinations to which the message was sent.
y Message incomplete: The process message does not contain all required characteristics of the message category. It has not been sent.
y Destination error: The process message could not be processed by one of its destinations. y Processing terminated: Processing of the message was terminated due to an error. The message has
not been sent to any of its destinations.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-10
SAP AG 2003
Process Message Logs
Message logs
tRFC log
Send message
Createmessage
Message is checked
Destination-specificcheck
Startsend
function
Transfer toProcess
Management
Data istransferred
Change message
General:syntax
consistencyusingtRFC
internally
Changes Generalchecks
Destination-specificchecks
The system creates the following logs while a message is being processed in Process Management: y Change logs containing the name of the user that changed the message as well as the characteristics
that have been added, and the original and changed characteristic values
y One consistency log containing a list of all destinations assigned to a message as well as the results of the general checks
y Destination-specific logs containing the results of destination-specific checks as well as the transaction ID of the relevant RFC if the destination is an external function
If a process message is sent to an external function, data is also entered in the tRFC log. This log documents all tRFCs carried out in your system.
You can call all logs from the message monitor.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-11
SAP AG 2003Deletion log
Deleting Process Messages/Message Logs
autom. jobschedulingat regularintervals
Starting the functionManually byscheduling ajob for a
specific time
Manuallyusing the menu
Definition of selection criteria
Assign.Directinput
Send date and plantAll messages or only those sent successfully?Only logs or messages also?Create deletion log?
OnlineOnline In the backgroundIn the backgroundOnline
Monitor
WarningMessage hasnot been sent.Delete? Yes
All messages/logs within a specified rangeSelected messagesand their logs
Select.Select.variantvariant
9
JobJob
The following functions are available for deleting process messages and their logs: y Delete selected messages together with their logs in the message monitor
If a message has not yet been sent successfully, a corresponding warning message will be displayed.
y Delete all data within a specified range Using this function, you can choose whether you want to delete:
- Message logs only or message logs and the corresponding messages
- All messages or only those that have been sent successfully
y You can delete smaller datasets online. If you want to delete a large amount of data, use a background job. You can schedule this job directly or specify in Customizing that the job is to be started automatically at regular time intervals.
y If required, you can specify that a deletion log is to be created. The data is only deleted within Process Management and not in the message destinations.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-12
SAP AG 2003
Process Messages - Processing: Summary (1)
z Messages for expected process events are requested from the process control system or the PI sheet using process instructions.
z Messages can also be created manually and periodically or automatically in relation to selected events.
z Messages can be sent online or in the background.z Before sending a message, the system checks
whether the message matches the corresponding Customizing settings and whether it can be processed by its internal destinations.
z You can correct messages that contain an error in the message monitor.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-13
SAP AG 2003
Process Messages - Processing: Summary (2)
z Messages that do not contain errors are sent to their destinations. If the destination is an external function, messages are sent using a remote function call (RFC).
z The message monitor, message logs, and the tRFClog provide information on the processing status of a process message.
z You can delete selected messages with their logs online in the monitor.Alternatively, you can specify a certain range within which all logs or all messages together with their logs are deleted online or in the background.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-14
Exercises
Unit: Process Messages - Processing
Creating, displaying, changing, sending and deleting messages
Creating process messages and displaying and processing messages in the message monitor 1-1 Manually create one message in the MEAS-## message category and one message in
the TEXT-## message category for order ORDER-##. In the message monitor, display all messages you created today for order ORDER-##. Display the characteristics of the individual messages.
1-2 Change the measured value in the message of category MEAS-## that you created in exercise 1-1.
Send the message with the changed measured value online from the message monitor.
Refresh the monitor display and check the status of the process message.
Analyze the message logs.
1-3 In the message monitor, select all messages of message category TEXT-## and delete them online. Refresh the monitor display.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 4-15
Solutions
Unit: Process Messages - Processing
Creating process messages and displaying and processing messages in the message monitor 1-1 SAP menu:
Logistics Production Process Process Management Message Create Manually Create one message in the MEAS-## message category and one message in the TEXT-## message category. (if necessary, refer to the exercises in the previous chapter, Process Messages Structure and Settings). To navigate to the message monitor from the SAP standard menu, select: Logistics Production Process Process Management Message Message Monitor Select your messages using process order number ORDER-## (delete any entry in the Proc. Message Cat. field). In the message monitor, click on the Display Message icon to display the characteristics of a message.
1-2 Select your message in the message monitor and choose Change. Change the value assigned to characteristic MEASURED_VALUE and Save your changes. Send your message in the message monitor by choosing Send. Choose Refresh. The messages now have the status Sent. To display the message logs for the relevant messages, choose Log.
1-3 Select the messages and choose Edit Delete. Confirm the dialog box that appears with Yes. Choose Refresh.
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 5-1
SAP AG 2003
Process Messages in the Standard SAP System
z Using process message categories in the standard SAP system: Goods issue
Confirmations
Goods receipt
Control recipe management
Handling Unit Management
Batch management
Quality Management
Contents:
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 5-2
SAP AG 2003
Process Messages in the Standard SAP System:Course Objectives
At the conclusion of this unit, you will be able to:
z Explain the predefined message categories in the standard SAP System
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 5-3
SAP AG 2003
Overview Diagram 5
Data Transfer Between Applications
Decentralized Process Management
Process Instructions Generation
PI Sheet Process Instructions
PI Sheet Elements and Functions
Control Recipes Settings and Processing
Process Messages -Structure and Settings
Process Messagesin the Standard SAP System
Process Messages - Processing
Process Messages -Structure and Settings
Course Overview
Introduction
55
SAP OPC Data AccessProcess Instructions for Process Control Systems
11
22
33
44
66
77
99
1010
1111
1212
1313
1414
88
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 5-4
SAP AG 2003
PI_PROD Goods receipt confirmations
PI_PHST Messages on phase status (time event)PI_SRST Messages on secondary resource (time event)PI_PHACT Messages on activities (with time event confirmation)PI_SRACT Messages on activities (secondary resource)PI_PHCON Time ticket confirmations for phasesPI_SRCON Time ticket confirmations for secondary resourcesPI_ORDCO Confirmations of process orders
PI_CONS Material consumption messages
Message Categories in the Standard SAP System (I)
Goods issue
Confirmations
Goods Receipt
The standard SAP system contains a number of predefined process message categories that enable you to transfer actual data from process control to R/3. These messages allow you to execute the following functions, for example:
y Update the control recipe status and the corresponding order status y Confirm time events y Confirm activities y Post a goods issue for the order y Post a goods receipt for the order y Confirm summarized measurement results as inspection results to QM
I n t
e r n
a l
U
s e
S
A P
P
a r t
n e
r
O n
l y I n t e r n a l U s e S A P P a r t n e r O
n l y
SAP AG SCM344 5-5
SAP AG 2003
Message Categories in the Standard SAP System (II)
PI_CRST Messages on control recipe statusMessages to control recipe management
Messages for Handling Unit Management
PI_HUSTG Material stagingPI_HUCNS GI posting for HUsPI_HUREC Process data messages for HU picking/identification
Messages to batch management
PI_BT_CR Batch creationPI_BT_CL Batch characteristic value assignment
PI_QMSMR Messages on inspection char. (summ. measured)Messages to Quality Management