Вы находитесь на странице: 1из 13

0

Control Recipes - Settings and Processing

Contents:
Creating control recipes
Control recipe destinations
Sending control recipes
Monitoring control recipes

SAP AG 2003

SAP AG

SCM344

8-1

0.2
Control Recipes - Settings and Processing:
Course Objectives

At the conclusion of this unit, you will be able to:


Describe how process instructions are combined

with control recipes


Create a control recipe destination in Customizing
Send control recipes
Use the control recipe monitor, the control recipe

status and the relevant logs to monitor the


processing of control recipes.

SAP AG 2003

SAP AG

SCM344

8-2

0.3
Overview Diagram 8
11

Course Overview

22

Introduction

33

Control Recipes - Settings


and Processing

99
Process Messages Structure and Settings

PI Sheet
Elements and Functions

10
10

PI Sheet
Process instructions

44

Process Messages Processing

11
11

55

Process Messages
in the Standard SAP System

Process Instructions Generation

12
12

Decentralized Process
Management

66

Process Instructions Structure and Settings

13
13

Data Transfer between


Applications

77

Process Instructions
for Process Control Systems

14
14

SAP OPC Data Access

SAP AG 2003

SAP AG

SCM344

8-3

0.4
Creating and Sending Control Recipes
Process Management
Manually operated
Fill

Reaction

Automated
Discharge
Fill

Process
control

Operation 1

Phase 11

Phase

Phase

Reaction

Discharge

PI sheet
Process
control system

Operation 2
Phase

Phase

Phase

SR1 12 SR1 13 SR2 21 SR2 2222


SR2 23 SR2

Proc.
Proc.
Proz.Proz.Proz.Proz.Proz.Proz.Proz.instr.
Proc. Vorg
Proc. instr.
Proc.
Vorg
Vorg
Vorg.
Vorg
Vorg
instr.
instr. Vorg.
instr.

Text

Proc.
Proz.Proz.instr.
Proc.
Vorg.
Vorg.
instr.

Proc.
Proz.Proz.instr.
Proc.
Vorg.
Vorg.
instr.

Proc.
Proz.Proz.instr.
Proc.
Vorg.
Vorg.
instr.

Control recipes to destination:


Process control system SR2
SR1 PI sheet

SAP AG 2003

After a process order or the relevant phases have been released, the process instructions maintained
in the order are bundled into control recipes and downloaded to process control.
The control recipe destinations maintained in the process order specify which control type is to carry
out a specific control recipe.

You assign control recipe destinations to the phases of the process order. These destinations are
assigned solely from the perspective of process control techniques and are therefore independent of
the subdivision of operations into phases which is done from a planning point of view.
Example:
Discharging a vessel and filling the next vessel are phases that belong to different operations.
However, they are often assigned to the same control recipe destination because their execution is
interdependent. For this reason, they are to be controlled by the same system or process operator.

Process Management creates exactly one control recipe for each control recipe destination of a
process order. A control recipe can only be created if all the phases involved have been released.
Once a control recipe has been created, you can no longer change the process instructions of the
corresponding phases in the order.

SAP AG

SCM344

8-4

0.5
Control Recipe Destinations - Structure
Control recipe destinations
Type

Transfer to ABAP list-based PI sheet


Download to external system
initiated by SAP processM2
management
initiated by external process control
Transfer to Browser-based PI sheet

Address

Operating group
RFC destination of process control system

Assignment of
instr. categories

Process instr. categories for specific PCS (input help)

Process instructions to be generated


Details for the
PI sheet category

Signature, signature strategies and logging

SAP AG 2003

You define control recipe destinations in Customizing. The control recipe destination specifies:
The destination the control recipe is to be transferred to (for example, an operating group that
maintains PI sheets or a specific process control system)
How the data is to be transferred (for example, initiated by R/3 or the process control system)
The process instructions to be generated automatically if a control recipe is created for a
destination

For destinations whose control recipes are to be displayed as an R/3 PI sheet, you can also:
Activate and define the digital signature to specify whether signature strategies are required for
particular processing steps
Activate a log for particular process steps

If a control recipe destination is an external system, you can assign the process instruction categories
defined for this system to the destination. When you maintain process instructions for a control
recipe destination in the master recipe or the process order, the system only offers those process
instruction categories that are assigned to the control recipe destination as possible entries.

SAP AG

SCM344

8-5

0.6
PI Sheet Destinations Type: Details
Plant

1100

Ctrl rec. destin.

11

Destination type

Address

Group 11

PI sheet
Simple password check
Digital signature
PI_VALID

Sign.strategy for input valid.


Sign.strategy for process steps
Logging in PI sheet

Activate/deactivate

with dig. sign.

SignStrategie

Remove locks/lock

no log

SignStrategie

Complete

with dig. sign.

SignStrategie

Value entry

w/out signature SignStrategie

PI_COMPL

SAP AG 2003

The following types of signatures are supported in the PI sheet:


Signature without password check:
You do not need a special authorization to enter this type of signature in the PI sheet. The system
does not check the signature you entered.
Signatures with a simple password check (for type 1 ABAP list-based PI sheet only):
In this case, you must enter a user name as the signuture and an application-specific password in
the PI sheet.
You assign plant-specific user passwords in Customizing for the control recipe destination.
Digital signatures:
This type of signature enables the unique and forgery-proof identification of a user as well as a log
of the signed operation.
There are two signature methods: System signature using autorization by R/3 user and R/3
password and User signature with external security system (for example, a card reader).
Digital signature strategies may be requested for certain activities.

You can activate the logging of particular operations for the browser-based PI sheet.

SAP AG

SCM344

8-6

0.7
External System Destination Type
Customizing for Control Recipe Destination
Destination: System 1

Destination:
Destination: System
System 22

Address
Address == PCS1
PCS1

Address
Address == PCS2
PCS2

Type
Type == To
To ext.
ext. syst.
syst.
initiated
initiated by
by SAP
SAP

Type
Type == To
To ext.
ext. syst.
syst.
initiated
initiated by
by ext.
ext. sys.
sys.

Control
Control recipes
recipes

tRFC

ZZ Ctrl
Ctrl Rec
Rec
exists
Y
Ctrl
exists
Rec
Y Ctrl
Rec
exists
X
Rec
exists
X Ctrl
Ctrl
Rec
exists
exists
tRFC
tRFC

Ctrl
Ctrl Rec(s)
Rec(s)

tRFC

tRFC

Ctrl
Ctrl Rec(s)
Rec(s)

Process control system 1

Process control system 2

PLS1 RFC destination

PLS2 RFC destination

SAP AG 2003

Depending on the destination type, the transfer of control recipes can be triggered as follows:
As soon as at least one control recipe has been created for a destination, Process Management
transfers all existing control recipes for this destination.
Process Management informs a destination about each control recipe created. Depending on the
destination, individual control recipes or all existing control recipes can be requested.

From a technical point of view, communication between PP-PI and process control systems is carried
out by a transactional remote function call (tRFC). The communication partners transfer data using
Common Program Interface Communication (CPI-C) based on TCP/IP.
Due to the RFC technology, the application is completely free of communication handling at R/3
level.
The tRFC ensures that each call is executed only once. The sequence of the calls is not changed. If
the target system is not active when the call takes place, the RFC is repeated according to a
repetition rate or duration that can be set by the user.

BAPIs with synchronous RFCs can also be used for the communication between PP-PI and the
process control systems.

SAP AG

SCM344

8-7

0.8
Control Recipe Monitor

tRFC Log

System messages
Ctrl recipe Proc.order Addr.
100000074
100000075
100000077
100000078
100000081
100000083

1000000031
1000000045
1000000045
1000000022
1000000035
1000000035

Status

OPER 1
PCS 1
PCS 3
OPER 7
OPER 1
PCS 5

Processed
Sent
Terminated
Sent
Created
Discarded

Test Created on
11.04.2004
15.04.2004
15.04.2004
18.04.2004
21.04.2004
21.04.2004

Log

System messages

Send

SAP AG 2003

To obtain information about the current processing status of a control recipe, you can go to the
control recipe monitor.

From the monitor, you can call up different logs that provide more detailed information on the
individual process steps carried out, and any errors that may have occurred during control recipe
processing.

On the basis of this information, you can carry out the following transactions from the monitor:
Send control recipes if they are not automatically sent in a background job defined in Customizing
Delete control recipes

SAP AG

SCM344

8-8

0.9
Control Recipe Status
Process order
Maintain
process instr.,
release
phases

Create
control
recipe

created
Ctrl recipe
created

Discarded
Ctrl recipe
discarded

Send
control
recipe

Discard
control
recipe

sent

NEW phases:
Maintain
process instr.,
release phases

Process
control
recipe

Complete
control
recipe

Terminate
control
recipe

processed
Ctrl recipe
finished
terminated

Control recipe status


Order status
Status message

SAP AG 2003

The graphic shows the different statuses a control recipe can have as well as the corresponding
statuses of the phases in the order. The statuses have the following meaning:
Control recipe created order status, Created or Sent control recipe status:
The control recipe is created. The corresponding phases are locked and cannot be changed.
Control recipe discarded order status, Discarded control recipe status:
The control recipe cannot be processed. It has been discarded before the execution was started.
You can change the process instructions of the corresponding phases and create a new control
recipe.
Control recipe finished order status, Terminated control recipe status:
The execution of the control recipe has been started but cannot be completed. You cannot change
the corresponding process instructions.
If you need a new control recipe, you can:
Create a new control recipe destination with the same address
Create new phases with corrected process instructions for this destination
Create a control recipe for theses phases
Control recipe finished order status, Processed control recipe status:
The execution of the control recipe has been completed. The corresponding phases remain locked.

SAP AG

SCM344

8-9

0.10
Control Recipes - Settings and Processing:
Summary

By assigning control recipe destinations to the


order phases, you specify which process
instructions of the order are combined in a control
recipe and sent to the corresponding control
recipe destination.
You define control recipe destinations in
Customizing. Possible destination types include
external systems and PI sheets.
You can find out about the processing status of a
control recipe by referring to the information in the
control recipe monitor, the control recipe log and
the tRFC log.

SAP AG 2003

SAP AG

SCM344

8-10

0.11Exercises
Unit: Control Recipes - Settings and Processing

Defining control recipe destinations

Creating and sending control recipes

Setting up control recipe destinations, creating and sending control recipes


1-1

Create the following two control recipe destinations for plant 1100 in Customizing.
Exercise groups

Control recipe destinations


to be created

Name and address

00 to 09
10 to 19
20 to 29
30

0A to 9A
0B to 9B
0C to 9C
0D

Scales ##

00 to 09
10 to 19
20 to 29
30

0E to 9E
0F to 9F
0G to 9G
0H

Production ##

Both control recipe destinations should have the following attributes:

1-2

Destination type: 4 Transfer to browser-based PI sheet

A digital signature is required when you enter a signature in the PI sheet.

A digital signature is to be logged for the Activate/Deactivate operations.

Logging does not occur for the Remove locks/lock operations.

Logging does not occur for the Complete and Value entry operations without a
signature.

Call master recipe 10 of the T-EX1## recipe group in change mode.


Replace the DU control recipe destination assigned earlier to all phases with your
defined destination:
Define the Scales ## destination for phases 110 to 130.
Define the Weighing station ## destination for phases 210 to 230.
Define the QM Laboratory destination for phases 310 to 330.
Save your recipe.

SAP AG

SCM344

8-11

1-3

Create a process order (plant 1100, order type PI01, total quantity 500 liters,
scheduling type Current date) for material T-FDA##.
Save your order.
Order number: ______________

1-4

Release the process order and create the control recipes.


Check the log for the control recipe creation and correct any errors that may have
occurred.
After all control recipes have been created successfully, save your order.

1-5

Call the control recipe monitor from the Process Management application menu and
display your new control recipes.
Send the control recipes online from the monitor.
Check the control recipe logs.

SAP AG

SCM344

8-12

0.12Solutions
Unit: Control Recipes - Settings and Processing

Setting up control recipe destinations, creating and sending control recipes


1-1

Customizing:
(...) Process Management Control Recipe/PI Sheets Control Recipe
Destination Define and Set Up Control Recipe Destination (for plant 1100)
Select New entries to create a control recipe destination.

1-2

Standard SAP menu:


Logistics Production Process Master Data Production Versions
Selection criteria: Plant 1100, Task list group T-EX1XX
Select Production version 0001 and choose Recipe. Enter the current date as the key
date and choose Enter.
Replace the existing entries in the Destination column of the operation overview as
described in the exercise and then Save the recipe.

1-3

Standard SAP menu:


Logistics Production Process Process Order Process Order Create
With Material
Total quantity 500 l, scheduling type Current date
Save your order and take a note of the order number.

1-4

Standard SAP menu:


Logistics Production Process Process Order Process Order Change
Order number as in item 1-3
Release from the Process order Functions Release menu or choose the
Release icon.
Creating control recipes: Process order Functions Control recipe Create
or choose the Create control recipe icon.
Displaying the log for control recipe creation: Goto Logs On PI
generation/ctrl recipe creation.
Analyze any error messages and correct the errors.
After all control recipes have been created successfully, Save your order.

1-5

Standard SAP menu:


Logistics Production Process Process Management Control Recipe
Control Recipe Monitor.
Select the control recipes in the control recipe monitor and choose Send.
Then select Refresh and, if the status of the control recipe has changed, choose
Log.

SAP AG

SCM344

8-13

Вам также может понравиться