PPPIPCS
PPPIPCS
PPPIPCS
Release 4.6C
HELP.PPPIPCS
SAP AG
Copyright
Copyright 2001 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. 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 , OS/2 , DB2/6000 , Parallel Sysplex , MVS/ESA , RS/6000 , AIX , S/390 , AS/400 , OS/390 , and OS/400 are registered trademarks of IBM Corporation. ORACLE is a registered trademark of ORACLE Corporation. INFORMIX -OnLine for SAP and Informix Dynamic Server Informix Software Incorporated.
TM
UNIX , X/Open , OSF/1 , and Motif are registered trademarks of the Open Group. 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. SAP, SAP Logo, R/2, RIVA, R/3, ABAP, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP.com Logo and mySAP.com are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other products mentioned are trademarks or registered trademarks of their respective companies.
April 2001
SAP AG
Icons
Icon Meaning Caution Example Note Recommendation Syntax Tip
April 2001
SAP AG
Inhalt
PP - PI-PCS Interface: Linking of Process Control Systems ..........................6
Process Messages and Process Message Categories.............................................................. 8 Predefined Process Message Categories................................................................................... 9 Characteristics of the Message Category PI_CRST................................................................ 11 Characteristics of the Message Category PI_OPST................................................................ 12 Characteristics of the Message Category PI_PHST................................................................ 13 Characteristics of the Message Category PI_PHACT ............................................................. 14 Characteristics of the Message Category PI_PHCON ............................................................ 15 Characteristics of the Message Category PI_SRST................................................................ 17 Characteristics of the Message Category PI_SRACT ............................................................. 18 Characteristics of the Message Category PI_SRCON ............................................................ 19 Characteristics of the Message Category PI_OPUST ............................................................. 21 Characteristics of the Message Category PI_PHUST ............................................................. 22 Characteristics of the Message Category PI_CONS ............................................................... 23 Characteristics of the Message Category PI_PROD ............................................................... 24 Characteristics of the Message Category PI_BT_CR.............................................................. 25 Characteristics of the Message Category PI_BT_CL .............................................................. 26 Characteristics of the Message Category PI_QMSMR............................................................ 27 Characteristics of the Message Category PI_PMMD .............................................................. 28 Explanation of the Process Message Characteristics............................................................. 29 Control Recipes........................................................................................................................... 37 Process Instructions and Process Instruction Categories..................................................... 38 Technical Communication.......................................................................................................... 40 Download of Control Recipes from R/3 PP-PI to Control System.......................................... 43 Download of Specific Control Recipes Using BAPIs .............................................................. 44 Reading Control Recipe Lists .................................................................................................. 45 Downloading Control Recipes.................................................................................................. 49 Updating Changes ................................................................................................................... 53 Download of Control Recipes Using RFC Function Modules................................................. 54 Download of all Control Recipes Initiated by R/3 PP-PI .......................................................... 55 Download of all Control Recipes Initiated by the Control System............................................ 59 Download of a Specific Control Recipe.................................................................................... 61 Download of General Characteristic Data ................................................................................ 64 Download of Characteristic Data Using BAPIs ........................................................................ 65 Download of Detail Data on Characteristics ............................................................................ 66 Download of Allowed Characteristic Values ............................................................................ 70 Download of Characteristic Data Using RFC Function Modules ........................................... 76 Download of Detail Data on Characteristics ............................................................................ 77 Download of Allowed Values for Characteristics ..................................................................... 80 Upload of Process Messages from the Control System to R/3 PP-PI.................................... 84 Upload of Process Messages Using BAPIs.............................................................................. 85 Creating Process Messages .................................................................................................... 86 Updating Process Messages ................................................................................................... 92 Checking Process Message Existence.................................................................................... 93 Upload of Process Messages Using RFC Function Modules ................................................. 94 Download of Process Messages from R/3 PP-PI to the Control System............................... 99
April 2001
SAP AG
Appendix: PI-PCS Sample Recipe ........................................................................................... 100 Notes on the Sample Recipe .................................................................................................... 101 Process Instructions - General Part ........................................................................................ 102 Process Instructions - Phase-Related..................................................................................... 104 Interface Tables of the Control Recipe ................................................................................... 106 Table CRHE: Control Recipe Header .................................................................................... 107 Table CRFT: Process Instructions ......................................................................................... 108 Table CRFV: Process Instruction Characteristics.................................................................. 110
April 2001
PP - PI-PCS Interface: Linking of Process Control PP - PI-PCS Interface: Linking of Process Control Systems
SAP AG
The interface meets the degree of automation of the line by offering the possibilities of:
The PI-PCS interface described here is used to transfer all the information relevant to production. If the Quality Management (QM) application component is to be installed, you can use the QMIDI interface. Confirmation of order-related data via the PI-PCS interface replaces order-related confirmations via PP-PDC. The PI-PCS interface enables the download of control recipes to the lower-level control system and the upload of process-related data in the form of process messages. In addition, it can be used to download general data on characteristics that make up control recipes and process messages. Control recipes are used to transfer the following data: Process and control parameters Texts with instructions for the line operator in the case of lines that are manually operated (either fully or partially) Information on process messages that are to be returned Status of process orders Consumption and production of materials Status of resources Selected process events
They are used for creating electronic batch records and production records, and for updating the process order and material stocks. You can transfer the following general characteristic data to an external system: Technical data such as the format and characteristics group Allowed characteristic values
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control PP - PI-PCS Interface: Linking of Process Control Systems
April 2001
PP - PI-PCS Interface: Linking of Process Control Process Messages and Process Message Categories
SAP AG
The information contained in a process message is specified by way of the process message characteristics assigned to the message and their values. Each process message refers to a process message category defined in SAP Customizing. A process message category describes: Information contained in a process message by assigning process message characteristics Subsequent processing of the message by assigning destinations Predefined by SAP Defined by the users according to their specific information requirements, when the R/3 System is set up
April 2001
SAP AG
The table below lists message categories that are predefined by SAP together with the business transactions they trigger in the above-mentioned components. Process messages consist of process message characteristics. For information on the characteristics of predefined message categories, click the relevant message category. The process message characteristics marked as Req (required) describe the minimum scope of the respective message. For more information on the exact structure of the messages in different business scenarios as well as the processing logic for the different messages, see Process Management in the Production Planning - Process Industries (PP-PI) component. Process message categories predefined by SAP: Message Category PI_CRST [Page 11] PI_OPST [Page 12] PI_CRST [Page 13] PI_PHACT [Page 14] PI_PHCON PI_SRST [Page 17] PI_SRACT [Page 18] PI_SRCON PI_OPUST [Page 21] PI_PHUST [Page 22] PI_CONS [Page 23] PI_PROD [Page 24] PI_BT_CR [Page 25] PI_BT_CL [Page 26] PI_QMSMR [Page 27] Business Transaction Update of control recipe status Update of system status of an operation Confirmation of system status of a phase (processing time event) Confirmation of the activity performed for a phase (time event for variable activity) Time ticket confirmation for phases Confirmation of system status of a secondary resource (processing time event) Confirmation of the activity performed for a secondary resource (time event for variable activity) Time ticket confirmation for secondary resources Update of user status of an operation Update of user status of a phase Goods issue posting Goods receipt posting Batch creation Value assignment to batch characteristic Confirmation of inspection results to QM
April 2001
SAP AG
10
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_CRST
April 2001
11
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_OPST
SAP AG
Message category PI_OPST is used for documentation only. Time events are confirmed at phase level. The operation status is updated in accordance with the status of the subordinate phases.
12
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_PHST
April 2001
13
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_PHACT
SAP AG
14
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_PHCON
April 2001
15
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_PHCON PPPI_YIELD_TO_CONFIRM Yield to be confirmed
SAP AG
16
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_SRST
April 2001
17
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_SRACT
SAP AG
18
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_SRCON
April 2001
19
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_SRCON
SAP AG
20
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_OPUST
April 2001
21
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_PHUST
SAP AG
22
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_CONS
April 2001
23
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_PROD
SAP AG
24
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_BT_CR
April 2001
25
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_BT_CL
SAP AG
26
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_QMSMR
The message category PI_QMSMR is used to report summarized measured inspection results. The inspection results are displayed as default values in the QM inspection results record.
April 2001
27
PP - PI-PCS Interface: Linking of Process Control Characteristics of the Message Category PI_PMMD
SAP AG
28
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Explanation of the Process Message Characteristics
PPPI_ACTIVITY_1_FINISHE D
CHA R
01
PPPI_ACTIVITY_1_UNIT PPPI_ACTIVITY_2
CHA R NUM
06 13
PPPI_ACTIVITY_2_FINISHE D
CHA R
01
PPPI_ACTIVITY_2_UNIT PPPI_ACTIVITY_3
CHA R NUM
06 13
PPPI_ACTIVITY_3_FINISHE D
CHA R
01
April 2001
29
PP - PI-PCS Interface: Linking of Process Control Explanation of the Process Message Characteristics PPPI_ACTIVITY_3_UNIT PPPI_ACTIVITY_4 CHA R NUM 06 13 3
SAP AG
Unit of measure for activity 3 Activity 4 to be confirmed For explanations, see description on characteristic PPPI_ACTIVITY_1. Remaining work for activity 4 For explanations, see description on characteristic PPPI_ACTIVITY_1_FINISHED. Unit of measure for activity 4 3 Activity 5 to be confirmed For explanations, see description on characteristic PPPI_ACTIVITY_1. Remaining work for activity 5 For explanations, see description on characteristic PPPI_ACTIVITY_1_FINISHED. Unit of measure for activity 5 3 Activity 6 to be confirmed For explanations, see description on characteristic PPPI_ACTIVITY_1. Remaining work for activity 6 For explanations, see description on characteristic PPPI_ACTIVITY_1_FINISHED. Unit of measure for activity 6 Batch number of the material Number of the new batch to be created Depending on the settings in R/3 Customizing for Batch Management, the batch number is assigned internally by the R/3 System or externally by the user. You only need this characteristic for external number assignment. Name of a batch characteristic
PPPI_ACTIVITY_4_FINISHE D
CHA R
01
PPPI_ACTIVITY_4_UNIT PPPI_ACTIVITY_5
CHA R NUM
06 13
PPPI_ACTIVITY_5_FINISHE D
CHA R
01
PPPI_ACTIVITY_5_UNIT PPPI_ACTIVITY_6
CHA R NUM
06 13
PPPI_ACTIVITY_6_FINISHE D
CHA R
01
06 10 10
PPPI_BATCH_CHARAC_NA ME
CHA R
30
30
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Explanation of the Process Message Characteristics
30 01 08 30 18
Value of a batch characteristic Catalog type of valuation code Code group of valuation code Short text of confirmation Unique identification of a control recipe It is transferred to the control system in the control recipe header. Status of a control recipe: 00004 (Processing terminated, i.e. the processing has been started but cannot be finished according to plan) 00005 Processed 00007 (Control recipe discarded, i.e. the control recipe could not be processed, due to a syntax error, for example).
PPPI_CONTROL_RECIPE_S TATUS
CHA R
05
30 13 03 3
Name of a data point Value of a data point Delivery completed indicator Specifies that no further goods receipts are to be expected for the order item. Measuring point: counter difference Specifies whether the system is to calculate the counter reading as a counter reading difference or as the current counter reading. Allowed values: <blank> absolute counter reading X counter reading difference Date of the event to which the message refers Time of the event to which the message refers
PPPI_DIFFERENCE_READI NG
CHA R
01
PPPI_EVENT_DATE PPPI_EVENT_TIME
DATE TIME
08 06
April 2001
31
PP - PI-PCS Interface: Linking of Process Control Explanation of the Process Message Characteristics PPPI_EXTERNAL_OPERATI ON PPPI_EXTERNAL_PHASE PPPI_EXTERNAL_RECIPE PPPI_FINAL_ISSUE CHA R CHA R CHA R CHA R 30 30 30 01
SAP AG
Operation name in control system Phase name in control system Recipe name in control system Final issue indicator Further goods movements for this reservation item are not to be expected. They are, however, possible. Number of the inspection characteristic to which the inspection result should be assigned Number of the inspection lot for which the result has been recorded 4 Average of measured values Short text with a comment on the measurement result entered during manual results recording Maintenance language of the user status Unique material number 4 Material quantity consumed. The quantity is quoted in the unit of measure specified in the message (see characteristic PPPI_UNIT_OF_MEASURE). Item number of a material component 4 3 Material quantity Material quantity produced. The quantity is quoted in the unit of measure specified in the message (see characteristic PPPI_UNIT_OF_MEASURE). Material description Message destination
PPPI_INSPECTION_CHARA CTERISTIC
CHA R
04
PPPI_INSPECTION_LOT
12
15 30
01 18 11
04 11 13
CHA R CHA R
30 04
32
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Explanation of the Process Message Characteristics
30 01 02 04 04 0
Message text. Priority of malfunction report Type of maintenance notification Number of measurements used in determining the average value Unique number of an operation If both operation number and phase number are assigned to a message category as optional characteristics, messages of this category can refer to a phase or an operation. If the phase number is specified in a message, the operation number is optional. Long text for an operation Short text for an operation System status of an operation: 00001 (Started) 00002 (Finished) 00003 (Interruption) 00004 (Partial finish, i.e. you want to confirm the quantity produced so far even though the operation has not yet been completed) User status of an operation The allowed values depend on the status profile of the operation Number of the order item 3 Order quantity Parameter name 3 3 3 Parameter value Lower tolerance limit Upper tolerance limit
30 30 05
PPPI_OPERATION_USER_S TATUS PPPI_ORDER_ITEM_NUMB ER PPPI_ORDER_QUANTITY PPPI_PARAMETER_NAME PPPI_PARAMETER_VALUE PPPI_PARAMETER_VALUE_ MIN PPPI_PARAMETER_VALUE_ MAX
04
04 13 30 13 13 13
April 2001
33
PP - PI-PCS Interface: Linking of Process Control Explanation of the Process Message Characteristics PPPI_PHASE CHA R 04
SAP AG
Unique number of a phase If both operation number and phase number are assigned to a message category as optional characteristics, messages of this category can refer to a phase or an operation. If the phase number is specified in a message, the operation number is optional. Long text for a phase Primary resource of a phase Long text for the primary resource of a phase Short text for the primary resource of a phase Short text for a phase System status of a phase User status of a phase The allowed values depend on the status profile of the operation Posting date Plant of a batch Required only if the plant has been specified as the batch level in R/3 Customizing for Batch Management. Plant of the resource Unique identification of a process order Short text for a process order Reason for variance Reservation number to which the material consumption refers Reservation item to which the material consumption refers
PPPI_PHASE_LONG_TEXT PPPI_PHASE_RESOURCE PPPI_PHASE_RESOURCE_ LONG_TEXT PPPI_PHASE_RESOURCE_ SHORT_TEXT PPPI_PHASE_SHORT_TEXT PPPI_PHASE_STATUS PPPI_PHASE_USER_STATU S PPPI_POSTING_DATE PPPI_PLANT_OF_BATCH
30 08 30 30 30 05 04
04
04 12 30 04 10 04
34
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Explanation of the Process Message Characteristics
08 10 08
Resource to be confirmed Resource network Item number assigned to a secondary resource in the process order System status of a secondary resource in the process order 00001 (Started) 00002 (Finished) 00003 (Interruption) 00004 (Partial finish, i.e. you want to confirm the activity performed so far even though secondary resource usage has not yet been finished)
05
30 30 15 05 4
Signature Source Standard deviation Time event/status for activity confirmation for phases and secondary resources Partial finish (= confirmation status: partial confirmation, i.e. phase processing or resource usage has not yet been finished. However, you want to confirm the activity performed so far.) Finish (= confirmation status: final confirmation, i.e. phase processing or resource usage has been finished.)
PPPI_STD_VALUE_PARAME TER_ID
CHA R
06
April 2001
35
PP - PI-PCS Interface: Linking of Process Control Explanation of the Process Message Characteristics PPPI_STOCK_TYPE CHA R 01
SAP AG
Stock type. Specifies the stock into which the material is posted during goods receipt postings. If this characteristic is not contained in the message category, the system uses the stock type defined in the order header. Allowed values: <blank> Unrestricted-use stock X Inspection stock S Blocked stock Storage location of the material. Unit of measure Customer-specific data Valuation code The valuation code is used to perform a qualitative valuation (for example, "temperature is normal"). 3 Yield to be confirmed
04 06 30 04
PPPI_YIELD_TO_CONFIRM
NUM
13
36
April 2001
SAP AG
Control Recipes
Control recipes are used to download the information required to execute a process order to the executing control system. The following data is defined in a control recipe: Required control and process parameters Texts with instructions for the line operator in the case of partially or completely manually operated lines, Process messages to be returned to PP-PI
A control recipe is assigned exactly one destination at process control level. If several process control systems are involved in the execution of a process order, separate control recipes can be created and sent to the respective control system. More than one control recipe can be transferred per process order to the same control address.
April 2001
37
PP - PI-PCS Interface: Linking of Process Control Process Instructions and Process Instruction Categories
SAP AG
The following types of process instruction are relevant to external control systems:
For examples of the different types of process instruction, see Process Management in the PPProcess Planning - Process Industries component.
Process Parameter
In control recipes for automated control systems, process instructions of this type are used to transfer control and process parameters to the control system. In production lines that are manually operated (either fully or partially), process parameters contain instructions for the process operator.
38
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Process Instructions and Process Instruction Categories
For examples of how to use process data calculation formulas in the R/3 PI sheet, see Process Management in the PP - Process Planning - Process Industries component.
April 2001
39
SAP AG
Technical Communication
To realize data transfer between PP-PI and the control system, the R/3 System provides the following alternative technologies: Function modules BAPIs (Business Application Programming Interfaces) that are defined as methods applied to SAP business objects and enable the standardized, object-oriented access to business functions in the R/3 System. They are implemented as function modules in the R/3 System, too.
In both cases, the Remote Function Call (RFC) is used for technical communication. RFC is a method of communication developed by SAP that enables convenient data transfer between different systems. The communication partners swap data using Common Program Interface Communication (CPI-C). The following processing types are supported: Synchronous RFC (sRFC) Here, the result of a call is immediately returned to the caller. BAPI calls and function modules for downloading characteristic data and characteristic values are carried out as sRFCs. Transactional RFC (tRFC) Transactional RFCs are carried out asynchronously, which means that they do not directly return data. If, however, 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. The sequence of the calls is not changed. You can check the current status of these calls any time using the log file. tRCFs are used for function modules for uploading and downloading messages and for downloading control recipes. However, it is not used for the corresponding BAPIs.
Up to Release 4.0A, process message upload (function module PROCESS_MESS_UPLOAD) was carried out as a synchronous RFC. This type of message transfer continues to be supported for existing links to control systems. As of Release 4.0A however, certification requires the control system to support message transfer via tRFC. On the R/3 side, the application does not require communication handling due to the RFC technology. On the control computer side, SAP supports the automatic generation of an RFC example program with a code generator. The R/3 function module that is used to exchanged data is the basis for the generation of the example program. The generated programs support synchronous RFCs but do not support transactional RFCs. Where the transactional RFC is needed, the programs must be adjusted accordingly. Afterwards, they must be compiled and linked in the control computer and can then be used for the actual application as an Application Program Interface (API). The tables below provide an overview of the BAPIs and function modules of the PI-PCS interface. For more detailed information on how these BAPIs and function modules work, see the corresponding sections. The R/3 System checks the authorization of the R/3 user that is used for calls initiated by the control system (this means, for all BAPIs and the RFC function modules that are marked
40
April 2001
SAP AG
accordingly). For information on the authorization a user requires, see the section on the relevant BAPI or function module. For more information on authorizations, see the Implementation Guide (IMG) for Process Management, section Authorization Management. For more information about the RFC technology and BAPIs, see Remote Communications in the Basis Services / Communication Interfaces (BC-SRV) component or BAPI Technology in the Business Framework Architecture (CA-BFA). BAPIs of the PI-PCS interface Function Create process messages [Page 86] Check process message existence [Page 93] Read process characteristics, include detail data [Page 66] Read allowed values for process characteristic [Page 70] Read control recipe list [Page 45] Request and receive control recipes [Page 49] Update changes [Page 53] Business Object ProcessMessa gePI ProcessMessa gePI ProcessCharac trstcPI ProcessCharac trstcPI Method/BAPI Create ExistenceCheck Function Module BAPI_PROCESS_MESSAGE_ CREATE BAPI_PROCESS_MESSAGE_ CHK_EXIST BAPI_PROC_CHAR_GET_LIST
GetList
GetHelpvalues
BAPI_PROC_CHAR_GET_ HELPVALUES
ControlRecipe
GetList
ControlRecipe
Request
BapiService
TransactionCom mit
BAPI calls are always initiated by the control system. RFC function modules of the PI-PCS interface Call Function Control recipe download initiated by PP-PI [Page 55] Information that a new control recipe is available [Page 61] Control recipe download initiated by the control sytem [Page 59] From PP-PI PP-PI CS To CS CS PP-PI Function Name CONTROL_RECIPE_DOWNLO AD CONTROL_RECIPE_AVAILABL E CONTROL_RECIPE_PULL RFC Mode Server program Server program Client program
April 2001
41
PP - PI-PCS Interface: Linking of Process Control Technical Communication Download of a specific control recipe initiated by the control system [Page 61] Process message upload [Page 94] Download of the return code for message processing with tRFC [Page 94] Process message download [Page 99] Download of detail data on characteristics [Page 77] Download of allowed characteristic values [Page 80] CS PP-PI CONTROL_RECIPE_PULL_SIN GLE PROCESS_MESS_UPLOAD PROCESS_MESS_GET_RETU RN_CODE PROCESS_MESS_DOWNLOA D PROC_CHAR_GET_LIST_WIT H_ DETAIL PROC_CHAR_HELPVALUES_ GET
SAP AG
Client program Client program Server program Server program Client program Client program
CS PP-PI
PP-PI CS
PP-PI CS
CS PP-PI
CS
PP-PI
42
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of Control Recipes from R/3 PP-PI to Control System
April 2001
43
PP - PI-PCS Interface: Linking of Process Control Download of Specific Control Recipes Using BAPIs
SAP AG
44
April 2001
SAP AG
Plant DestAddress (Destination address) DestType (Destination type) ProcessOrder (Process order no.) Material (Material of the order) TestCntlRec (Ind.: Test control recipes) ProdCntlRec (Ind.: Productive control recipes) CntlRecStatus (Control recipe status) DateFrom (Earliest creation date) DateTo (Latest creation date)
CntlRecHeader (Header data of the control recipe) Return (System messages on the method call)
External system
Required Authorizations
Authorization object C_CREX_WRK Field Destination address Activity Plant Value RFC destination of the control recipe destination 03 (Display control recipe) Plant of the control recipe
Selection Criteria
You can use the following parameters as selection criteria for control recipes: Import parameter Plant DestAddress DestType Format CHAR CHAR CHAR Length 04 32 01 Req X Description Plant of the control recipes Address of the control recipe destination, i.e. the RFC destination of the API Type of control recipe destination: Default value 3 (Download initiated by the control system, i.e. can be downloaded using BAPI) Process order number Header material of the process order Indicator: Read test control recipes
12 18 01
April 2001
45
PP - PI-PCS Interface: Linking of Process Control Reading Control Recipe Lists ProdCntlRec CntlRecStatus DateFrom DateTo SchedDateFrom CHAR CHAR DATS DATS DATS 01 05 08 08 08
SAP AG
Indicator: Read productive control recipes Default value: X (Read productive control recipes) Control recipe status: 0001 (Created, can be downloaded) Earliest creation date of control recipes Default value: 00000000 (no restriction) Latest creation date of control recipes Default value: Current local date Scheduled start date of earliest phase Default value: 00000000 (no restriction) Scheduled finish data of latest phase Default value: Current local date
SchedDateTo
DATS
08
Table CntlRecHeader Field CNTL_REC_ID PLANT PROC_ORDER DEST DEST_ADDRESS DEST_TYPE Format NUMC CHAR CHAR CHAR CHAR CHAR Length 18 04 12 02 32 01 Description Control recipe number Plant of the control recipe Process order to which the control recipe belongs Control recipe destination Address of the control recipe destination, i.e. the RFC destination of the API Type of control recipe destination: 1 (Transfer to R/3 PI sheet, i.e. cannot be downloaded) 2 (Download initiated by R/3 process management, i.e. can only be downloaded with RFC function module) 3 (Download initiated by control system, i.e. can be downloaded with RFC function module or BAPI)
46
April 2001
SAP AG
CNTL_REC_STATUS
CHAR
05
TEST_FLAG RECIPE_TEXT MATERIAL MATERIAL_TEXT INSPLOT MATERIAL_EXTERNA L MATERIAL_GUID MATERIAL_VERSION BATCH SCHEDULED_START _DATE SCHEDULED_START _TIME
CHAR CHAR CHAR CHAR NUMC CHAR CHAR CHAR CHAR DATS TIMS
01 40 18 40 12 40 32 10 10 8 6
Status of the control recipe: Can be downloaded if 00001 (Created): Cannot be downloaded if: 00003 (Sent) 00004 (Processing terminated) 00005 (Processed) 00007 (Discarded) Ind.: Control recipe for test purposes, i.e. you may only create process messages with a test indicator Short text of the order used in the master recipe Header material of the process order Material description Inspection lot number for the order Long material number (future development) for MATERIAL field External GUID (future development) for MATERIAL field Version number (future development) for MATERIAL field Batch number of material to be produced Earliest scheduled start date of control recipe (date) Earliest scheduled start date of control recipe (time)
System Messages
The R/3 System returns system messages that may appear during the method call in the Return parameter. Export Parameter Return Type E ID CB1 Reference Structure BAPIRET2 Number 403 System message No control recipes found Description System messages on the method call
Parameter Return / Structure BAPIRET2 Field TYPE Format CHAR Length 01 Description System message type: S (Success) E (Error) W (Warning) I (Information) Message class Number of system message Message text Application log: Log number Application log: Serial message number
20 03 220 20 06
April 2001
47
PP - PI-PCS Interface: Linking of Process Control Reading Control Recipe Lists MESSAGE_V1 MESSAGE_V2 MESSAGE_V3 MESSAGE_V4 PARAMETER ROW FIELD SYSTEM CHAR CHAR CHAR CHAR CHAR INT4 CHAR CHAR 50 50 50 50 32 10 30 10
SAP AG
Variable of system message Variable of system message Variable of system message Variable of system message Parameter name Line in the parameter Field in the parameter System (logical system) from which the message comes
48
April 2001
SAP AG
CntlRecHeader (Header data of the control recipes) CntlRecProcInstr (Process instructions of the control recipes) CntlRecCharac (Process instruction characteristics) CntlRecTextlines (Long texts of the characteristics) Return (System messages on the method call)
External system
Sent.
Required Authorizations
Authorization object C_CREX_WRK Field Destination address Activity Plant Value RFC destination of the control recipe destination 90 (Request control recipe) Plant of the control recipe
When carrying out this method, the system does not check whether the caller and the control recipe destination are identical. For this reason, assign authorizations in such a way that a user can only request control recipes that are intended for his destination address.
Selection Criteria
You can use the following parameter to specify which control recipes R/3 PP-PI is to download:
April 2001
49
PP - PI-PCS Interface: Linking of Process Control Downloading Control Recipes Table Parameter ControlRecipe Description Import: Numbers of the requested control recipes
SAP AG
Table ControlRecipe Field CNTL_REC_ID Format NUMC Length 18 Description Control recipe number
Table CntlRecHeader For more information on the structure of this table, see Reading Control Recipe Lists [Page 45], section Returning Control Recipe Data. Table CntlRecProcInstr Field CNTL_REC_ID PROC_INSTR_ NUMBER PROC_INSTR_TYPE Format NUMC NUMC CHAR Length 18 08 01 Description Control recipe number Serial number of the process instruction in the control recipe Process instruction type: 01 (Process parameter) 02 (Process data request) 03 (Process message subscription) 04 (Process data calculation formula) PROC_INSTR_ CATEGORY PROC_INSTR_ LINE_NO PHASE_NUMBER Table CntlRecCharac CHAR CHAR 08 04 Process instruction category Line number of the process instruction in the process order Can be used to issue error messages Number of the phase that contains the process instruction
CHAR
04
50
April 2001
SAP AG
Length 18 08 04 30 30 04
Description Control recipe number Serial number of the process instruction in the control recipe Line number of the process instruction characteristic in the process instruction Name of the process instruction characteristic Characteristic values (left-aligned) Format of the characteristic value: CHAR NUM DATE TIME (alphanumeric value) (floating point number) (Date: YYYYMMDD) (Time: HHMMSS)
INSTR_CHAR_LINE_ NUMBER Table CntlRecTextlines Field CNTL_REC_ID PROC_INSTR_ NUMBER CHAR_LINE_ NUMBER TDFORMAT TDLINE
CHAR
04
Line number of process instruction characteristic in the order Can be used to issue error messages
Length 18 08 04 02 132
Description Control recipe number Serial number of the process instruction in the control recipe Line number of the process instruction characteristic in the process instruction Format key of the text line Text line
System Messages
The R/3 System returns system messages on the method call in the Return parameter. Table Parameter Return Description Export: System messages on the method call
The following system messages may appear: Type E E E ID CB1 CB CB1 Number 404 082 401 System message You are not authorized to request control recipes for address &2 Control recipe & has already been sent Control recipe & not created in the system
April 2001
51
PP - PI-PCS Interface: Linking of Process Control Downloading Control Recipes E A E E CB CB CB1 CB1 014 201 207 301 Control recipe & locked
SAP AG
Further processing not possible (contact system administrator) Characteristic & not created in the system Error when converting value to format &1
For more information on the structure of the Return table, Reading Control Recipe Lists [Page 45], section System Messages.
52
April 2001
SAP AG
Updating Changes
When you download control recipes, R/3 data is changed (for example, the control recipe status). To update these changes in the R/3 System, you must perform the TransactionCommit method of the BapiService SAP business object after the download. If the COMMIT WORK terminates, perform the method for requesting control recipes again. Use the same selection criteria. If the data was not updated in the last call, you will receive the control recipes again. If the control recipes are locked when you call the method a second time, repeat the method call somewhat later.
System Messages
The R/3 System returns system messages that may appear during the method call in the Return parameter: Export Parameter Return Reference Structure BAPIRET2 Description System messages on the method call
If the Wait parameter is not set or set to SPACE, there are no error messages. If the COMMIT WORK statement is not executed successfully, the function is terminated. If the Wait parameter is set to a value, the following error message may appear: Type E ID S& Number 150 System message Update task could not be completed.
For more information on the BAPIRET2 structure, Reading Control Recipe Lists [Page 45], section System Messages.
April 2001
53
PP - PI-PCS Interface: Linking of Process Control Download of Control Recipes Using RFC Function Modules
SAP AG
54
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of all Control Recipes Initiated by R/3 PP-PI
PP-PI calls the corresponding API of a control system as soon as one control recipe has been created for the control system. Any number of control recipes can be transferred in one function call. The function call is executed as a tRFC and calls function module CONTROL_RECIPE_DOWNLOAD.
R/3 Process Management
tRFC: Control recipe download
CLIENT CRHE (Control recipe header) CRFT (Process instructions) CRFV (Process instruction characteristics) TLINES (Long textc)
CONTROL_RECIPE_ DOWNLOAD
External system
Required Authorizations
Authorization object C_CREC_WRK Field Activity Plant Value 01 (Create and send control recipe) 02 (Call control recipe monitor) Plant of the control recipe
When carrying out the background job, the system checks the authorization of the user who created the background job.
Interface Parameters
The table below lists the data exchanged via the interface of the function module from the point of view of PP-PI.
April 2001
55
PP - PI-PCS Interface: Linking of Process Control Download of all Control Recipes Initiated by R/3 PP-PI Export Parameters: Name CLIENT Tables: Name CRHE CRFT CRFV TLINES Description Control recipe header Process instructions Process instruction characteristics Text with instructions Number of Entries 1/ctrl rec. At least 1/ctrl rec. At least 1/proc. inst. Format CHAR Length 03 Description SAP client
SAP AG
Table CRHE: Field CRID Format CHAR Length 18 Description Control recipe number PP-PI assigns a unique number to each control recipe. The control recipe number groups the table entries that belong to one control recipe. Plant Process order Address of the control system RFC destination of the API that receives the control recipe. Test indicator: X (Test mode, i.e. all process messages created for this control recipe must be marked with a test indicator. This means that they are displayed on the PP-PI message monitor, but are not sent.) (Normal mode)
04 12 32 01
Control recipe status: 00001 (Created, can be requested by the control system) 0003 (Sent)
40 18 40 12 10 02
Short description of process order No. of the material to be produced Material description of the material to be produced Inspection lot number for the order Batch number of the material to be produced Control recipe destination
56
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of all Control Recipes Initiated by R/3 PP-PI
SCHED_STA RT_ DATE SCHED_STA RT_ TIME Table CRFT Field CRID FTNO FTTYP
DATS
08
Earliest scheduled start date of the control recipe (phase with earliest start date) Earliest scheduled time (phase with the earliest start time)
TIMS
06
Length 18 08 01
Description Control recipe number Process instruction number Unique within a control recipe Process instruction type (see Process Instructions and Process Instruction Categories [Page 38]): 01 (Process parameter) 02 (Process data request) 03 (Process message subscription) 04 (Process data calculation formula)
COSTR
CHAR
08
Process instruction category to which the process instruction refers (see Process Instructions and Process Instruction Categories [Page 38]) Operation number of the process order Process instruction number
VORNR FTRNR
CHAR CHAR
04 04
Table CRFV Field CRID FTNO FVNO ATNAM ATWRT ATFOR Format CHAR CHAR CHAR CHAR CHAR CHAR Length 18 08 04 30 30 04 Description Control recipe number Process instruction number Unique within a control recipe Characteristic number Unique within one process instruction Characteristic name Characteristic value Characteristic format: CHAR (Character) NUM (Numeric. Value is stored as a floating point value in the ATWRT field) DATE (Date: YYYYMMDD) TIME (Time: HHMMSS) FVLNR CHAR 04 Line number of the process instruction characteristic
April 2001
57
PP - PI-PCS Interface: Linking of Process Control Download of all Control Recipes Initiated by R/3 PP-PI
SAP AG
The CRFV table contains the process instruction characteristics and their values. The characteristic value is always transferred as left-justified in the 30-CHAR field ATWRT. With characteristic format NUM, ATWRT contains the characteristic value in floating-point format. Table TLINES Field CRID FTNO FVNO TDFORMAT TDLINE Format CHAR CHAR CHAR CHAR CHAR Length 18 08 04 02 132 Description Control recipe number Process instruction number Unique within a control recipe Characteristic number Unique within one process instruction Format column for text processing in SAPscript editor Text line Any number of text lines can be stored in table TLINES for a long text characteristic.
Table TLINES is used to transfer texts for the line operator in partially or fully manually operated lines. You can define any number of text lines for a process instruction characteristic.
58
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of all Control Recipes Initiated by the Control System
tRFC: Control recipe download CLIENT CRHE (Control recipe header) CRFT (Process instructions) CRFV (PI characteristics) TLINES (Long texts)
CONTROL_RECIPE_ DOWNLOAD
External system
Required Authorizations
Authorization object C_CREX_WRK Field Destination address Activity Plant Value RFC destination of the control recipe destination 90 (Request control recipe) Plant of the control recipe
April 2001
59
PP - PI-PCS Interface: Linking of Process Control Download of all Control Recipes Initiated by the Control System Import Parameters: Name CR_ADRES Format CHAR Length 32 Description RFC destination of the ctrl system
SAP AG
The following exceptions may be triggered: Exception: Name DESTINATION_NOT_VALID DESTINATION_UNKNOWN SYSTEM_FAILURE TEXT_WORK_UP_FAILURE Description Invalid address for this type of communication Address not known System error Error when preparing control recipe texts
60
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of all Control Recipes Initiated by the Control System
tRFC: Control recipe download CLIENT CRHE (Control recipe header) CRFT (Process instructions) CRFV (PV characteristics) TLINES (Long texts)
External system
Required Authorizations
Authorization object C_CREX_WRK Field Destination address Activity Plant Value RFC destination of the control recipe destination 90 (Request control recipe) Plant of the control recipe
April 2001
61
PP - PI-PCS Interface: Linking of Process Control Download of all Control Recipes Initiated by the Control System Name CLIENT Tables: Name CRHE Description Control recipe header Format CHAR Length 03 Description SAP client
SAP AG
The following table lists the data exchanged via the function module CONTROL_RECIPE_PULL_SINGLE from the point of view of PP-PI: Import Parameters: Name CR_ID CR_ADRES Format CHAR CHAR Length 18 32 Description Control recipe number RFC destination of the ctrl system
The following exceptions may be triggered: Exception: Name CONTROL_RECIPE_NOT_FOUND CONTROL_RECIPE_STATE_NOT_VALID DESTINATION_NOT_VALID DESTINATION_UNKNOWN SYSTEM_FAILURE TEXT_WORK_UP_FAILURE Table CRHE Field CRID Format CHAR Length 18 Description Control recipe number PP-PI assigns a unique number to each control recipe. The control recipe number groups the table entries that belong to one control recipe. Plant Process order Address of the control system RFC destination of the API that receives the control recipe. Description Control recipe does not exist Control recipe status does not permit download Invalid address for this type of communication Address not known System error Error when preparing control recipe texts
04 12 32
62
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of all Control Recipes Initiated by the Control System
TSTKZ
CHAR
01
Test indicator: X (Test mode, i.e. all process messages created for this control recipe must be marked with a test indicator. This means that they are displayed on the PP-PI message monitor, but are not sent.) SPACE (Normal mode)
CRSTAT
CHAR
05
Control recipe status: 00001 (Created, can be requested by the control system) 0003 (Sent)
KTXT MATNR MATXT INSPLOT BATCH DEST SCHED_STA RT_ DATE SCHED_STA RT_ TIME
40 18 40 12 10 02 08
Short description of process order No. of the material to be produced Material description of the material to be produced Inspection lot number for the order Batch number of the material to be produced Control recipe destination Earliest scheduled start date of the control recipe (phase with the earliest start date) Earliest scheduled start time (phase with earliest start time)
TIMS
06
April 2001
63
SAP AG
This data is stored in the characteristic definition in Customizing for Process Management. You can use both BAPIs and RFC function modules to download characteristic data.
64
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of Characteristic Data Using BAPIs
See also: Download of Characteristic Data Using RFC Function Modules [Page 76]
April 2001
65
SAP AG
Plant (Plant in which the characteristics are released for process management) Language (Language in which the characteristic short text is to be transferred) InstrCharsFlag (Ind.: Select process instruction characteristics) MessageCharsFlag (Ind.: Select message characteristics) CharacteristicGroup
CharacteristicData (Detail data of characteristics) CharacteristicTexts (Language-dependent short texts of characteristics) Return (System messages on method call)
External system
Required Authorizations
Authorization Object C_CABN Field Activity Value 03 (Display characteristic)
Selection Criteria
You can pass on the following parameters as selection criteria for the characteristic data: Import Parameter Plant Format CHAR Length 04 Req X Description Plant in which the characteristics are released for use in process instructions or process messages Language used to transfer the short texts of the characteristics Default value: Logon language InstrCharsFlag CHAR 01 Indicator: Select process instruction characteristics Default value: X (Select process instruction characteristics)
Language
LANG
01
66
April 2001
SAP AG
MessageCharsFlag
CHAR
01
Indicator: Select process message characteristics Default value: X (Select message characteristics)
CharacteristicGroup
CHAR
10
Characteristics group whose characteristics you want to select Default value: ' ' (blank) = All characteristics groups
Table CharacteristicData Field NAME_CHAR DATA_TYPE Format CHAR CHAR Length 30 04 Description Characteristic name Data type of the characteristic: CHAR NUM DATE TIME NUMBER_DIGITS NUMBER_DECIMALS SIGN TEMPLATE CASE_SENSITIVE EXPONENT INT2 INT2 CHAR CHAR CHAR INT2 05 05 01 30 01 05 (alphanumeric value) (floating point value) (Date: YYYYMMDD) (Time: HHMMSS)
Maximum number of characters of characteristic value Number of decimal places Indicator: Negative values allowed Template for value Indicator: Case sensitive value Size of exponent in display
April 2001
67
PP - PI-PCS Interface: Linking of Process Control Download of Detail Data on Characteristics EXPONENT_TYPE NUMC 01 Exponent display format
SAP AG
0 = Display without exponent 1 = Exponent is set automatically, i.e. there is always one place before the decimal point. Example: _ ,_____E+__ 2 = Display with exponent entered Example: _,_____E+33 3 = Display in scientific format (3, 6, 9). There are always three places before the decimal point. Example: __,_____E+SS CHAR_GROUP LONGTEXT_FLAG CHAR CHAR 10 01 Characteristics group Indicator: Characteristic value is long text
Table CharacteristicTexts Field NAME_CHAR LANGU LANGU_ISO DESCR_CHAR HD_LINE1 HD_LINE2 Format CHAR LANG CHAR CHAR CHAR CHAR Length 30 01 02 30 30 30 Description Characteristic name Internal language key Language key according to ISO 639 Language-dependent characteristic description Heading 1 Heading 2
System Messages
The R/3 System returns system messages that may appear during the method call in the Return parameter. Export Parameter Return Reference Structure BAPIRET2 Description System messages on the method call
The following system messages may appear: Type E E E ID CB1 CB1 CB Number 208 209 615 System Message No messages found for the selection criteria you entered Characteristics group & is not released for the desired use You are not authorized to display characteristic data
68
April 2001
SAP AG
TYPE
CHAR
01
ID NUMBER MESSAGE LOG_NO LOG_MSG_NO MESSAGE_V1 MESSAGE_V2 MESSAGE_V3 MESSAGE_V4 PARAMETER ROW FIELD SYSTEM
CHAR NUMC CHAR CHAR NUMC CHAR CHAR CHAR CHAR CHAR INT4 CHAR CHAR
20 03 220 20 06 50 50 50 50 32 10 30 10
Message class Number of system message Message text Application log: log number Application log: serial message number Variable of system message Variable of system message Variable of system message Variable of system message Parameter name Line in the parameter Field in the parameter System (logical system) from which the message comes
April 2001
69
SAP AG
Helpvalues CharacteristicName (Allowed char. values from foreign key, Plant check table, or check function) (Plant in which characteristics are ValuesForField released for process management) (Values as in Helpvalues table but w/o MaxRows additional information) (Max. number of values to be selected) DescriptionForHelpvalues DescriptionOnly (Structure of Helpvalues table) (Ind.: Only determine structure FixValues description, no values) (Allowed single values or value ranges SelectionForHelpvalues from characteristic) (Criteria for value selection based on Return (System messages) foreign key dependency, check table, or check function) sRFC: Read allowed values for a process characteristic
External system
The system uses the search help that is assigned to the characteristic in R/3 Customizing to determine allowed values. The following settings for the characteristic are taken into account (see Customizing for Process Management, activities Define Characteristics for Process Messages and Define Characteristics for Process Instructions): Allowed single values or value ranges The check table or check function assigned to it The foreign key dependency assigned to it
A function module for value selection without dialog must exist for characteristics with a check function. The name of this function must consist of the following: The name of the check function entered in the characteristic
70
April 2001
SAP AG
The ending -ND At present, a function module exists for the following check function in the standard system:
COC1_PPPI_CHAR_VALUES (value check for process characteristics with foreign key dependency)
Required Authorizations
Authorization Object C_PROCCHAR Field Characteristic name Activity C_CREX_WRK Destination address Activity Plant Value Characteristic whose values you want to read B1 (Transfer allowed values to external system) RFC destination of the external system 90 (Request control recipe data from R/3 System) Plant
The system checks the authorization for the characteristic whose name you have specified in the CharacteristicName parameter.
Selection Criteria
You can pass on the following parameters as selection criteria for the characteristic values: Import Parameter CharacteristicName Plant Format CHAR CHAR Length 30 04 Req X X Description Characteristic name Plant in which the characteristics are released for use in process instructions or process messages Maximum number of values to be selected Indicator: Determine structure description only, no values
MaxRows DescriptionOnly
INT4 CHAR
10 01
Description Selection criteria for characteristic values according to foreign key dependency, check table, or check function
Number of Entries
Note the following when using the SelectionForHelpvalues parameter: Which selection criteria you can use, depends on the search help defined for the characteristic Search helps can change. For this reason, always determine the search help parameters dynamically. This means, first perform the method with the DescriptionOnly indicator. If
April 2001
71
SAP AG
search help parameters exist (i.e. possible criteria for value selection), the R/3 System then passes them in the DescriptionForHelpvalues parameter, in the FIELDNAME field. Afterwards, you can read the allowed values by performing the method without the DescriptionOnly indicator but by entering specific selection criteria. The system does not consider the selection criteria, if the allowed values have been defined as single values or value ranges in the characteristic itself. In this case, all values or value ranges are returned.
Table SelectionForHelpvalues Field SELECT_FLD Format CHAR Length 30 Description Search help parameter of the characteristic. If a parameter exists, it is identical to a field of the corresponding check table.. Indicator: Include or exclude a value or value range in selection. I (Include value or value range in selection) E (Exclude value or value range from selection) OPTION CHAR 02 Selection operator that determines a value range together with the LOW and HIGH fields. EQ = equal to ( = Low) NE = not equal to (<> Low) BT = between lower and upper value (Low <= x <= High) NB = outside lower and upper value (x < Low und High < x ) CP = contains the search pattern NP = does not contain the search pattern LT = less than (< Low) LE = less than or equal to (<= Low) GT = greater than (> Low) GE = greater than or equal to (>= Low) LOW HIGH CHAR CHAR 30 30 Single value or lower interval limit Upper interval limit
SIGN
CHAR
01
Values for Table Fields - Example: You want to determine the allowed values for characteristic PPPI_BATCH. To do so, you pass on the following selection criteria: Field SELECT_FLD SIGN Value MATNR (field for the material number in the check table) I (Include value or value range in selection)
72
April 2001
SAP AG
The system selects all batches that have been created for material MAT_4711 and returns them to the caller as allowed values.
Table Helpvalues Field HELPVALUES Format CHAR Length 255 Description Allowed characteristic values that: - Have been determined based on the selection criteria and a foreign key dependency, check table, or check function defined in the characteristic - Have been defined as single values in the characteristic itself and have format CHAR The Helpvalues table has no fixed structure for the following reasons: The information passed on varies from characteristic to characteristic Search helps can change
For this reason, the table structure is passed on dynamically in parameter DescriptionForHelpvalues. Always use this parameter to access the table. Table ValuesForField
April 2001
73
SAP AG
In this parameter, the R/3 System passes on the same characteristic values as in the Helpvalues table. However, it does not include additional information (this means, no structure). For performance reasons, you should use the ValuesForField table rather than the Helpvalues table because characteristic values are accessed without defining the structure. The number of lines is the same in both tables. For this reason, you can determine the line of a specific value in the Helpvalues table and read the value from the ValuesForField table. Table DescriptionForHelpvalues Field TABNAME FIELDNAME Format CHAR CHAR Length 30 30 Description Name of the database table to which the field belongs Name of a field in the Helpvalues table You can use the fields passed on here as selection criteria or search help parameters in the SelectionForHelpvalues table LANGU LANG 01 Key of the language in which the texts of the Repository object (for example, data element) belonging to the field are passed on Field position in the table (for example, 5 = 5th table field) Field position in the work area (for example, 7 = field starts with the 7th character in the line) Field length Short description of Repository object Heading Short keyword Medium keyword Long keyword
POSITION OFFSET
NUMC NUMC
04 06
06 60 55 10 20 40
Format CHAR
Length 10
Description Operator for lower limiting value: > < >= <= (greater than) (less than) (greater than or equal to) (less than or equal to)
OPERATOR_LOW
OPERATOR_HIGH
CHAR
10
Operator for upper limiting value allowed values as in parameter OPERATOR_LOW Lower limit of value range Upper limit of value range
LIMIT_LOW LIMIT_HIGH
CHAR CHAR
30 30
74
April 2001
SAP AG
FIX_VALUE DEFAULT_FLAG
CHAR CHAR
30 01
Values for Table Fields - Example: The following value range has been defined for a numeric characteristic in R/3 Customizing: >5.5 - <12.0 The following entry is returned in the FixValues table: Field OPERATOR_LOW OPERATOR_HIGH LIMIT_LOW LIMIT_HIGH FIX_VALUE DEFAULT_FLAG Value > < 5.5 12.0 5.5 ' ' (blank)
System Messages
The R/3 System returns system messages that may appear during the method call in the Return parameter. Export Parameter Return Reference Structure BAPIRET2 Description System messages on the method call
The following system messages may appear: Type E E E E A E A ID CB 0C CB1 CB CB1 CB1 CB Number 616 010 207 614 210 200 251 System Message You are not authorized to display allowed values Enter a valid characteristic Characteristic & not created in the system No allowed values defined for characteristic & Unable to determine allowed values for characteristic & Plant & does not exist (Enter a valid plant) Further processing not possible (contact system administrator)
For more information on the BAPIRET2 structure, see Download of Detail Data on Characteristics [Page 66], section System Messages.
April 2001
75
PP - PI-PCS Interface: Linking of Process Control Download of Characteristic Data Using RFC Function Modules
SAP AG
76
April 2001
SAP AG
PROC_CHAR_GET_ LIST_WITH_DETAIL
PLANT (Werk) LANGUAGE (Language for text transfer) INSTRUCTION_CHARS (Ind.: Process instruction characteristics) MESSAGE_CHARS (Ind.: Message characteristics) CHARACTERISTIC_GROUP
External system
Required Authorizations
Authorization Object C_CABN Field Activity Value 03 (Display characteristic)
April 2001
77
PP - PI-PCS Interface: Linking of Process Control Download of Detail Data on Characteristics CHARACTERISTIC_ GROUP CHAR 10
SAP AG
Characteristics group for which detail characteristic data is required. If no value is specified, the system transfers detail data for all characteristics groups.
Tables: Name CHARACTERISTIC_LIST CHARACTERISTIC_TEXTS Exceptions: Name CHARACTERISTIC_GROUP_NOT_ VALID NO_AUTHORITY Description The characteristics group transferred does not exist. No authorization to display characteristic data. Description Detail data on all selected characteristics Language-dependent short texts for all selected characteristics
CHARACTERISTIC_TEXTS Name ATNAM SPRAS ATBEZ ATUE1 Format CHAR LANG CHAR CHAR Length 30 1 30 30 Description Characteristic name Language key Characteristic description First line of heading
78
April 2001
SAP AG
ATUE2
CHAR
30
April 2001
79
PP - PI-PCS Interface: Linking of Process Control Download of Allowed Values for Characteristics
SAP AG
PROC_CHAR_ HELPVALUES_GET
PLANT PPPI_CHAR (Characteristic name) MAX_OF_ROWS (Maximum number of values) DESCRIPTION_ONLY (Ind.: Structure description only, no values) SELECTION_FOR_HELPVALUES (Selection criteria for values
HELPVALUES (Allowed values with text) VALUES_FOR_FIELD (Allowed values without text) DESCRIPTION_FOR_ HELPVALUES (Structure of HELPVALUES table) DETAILED_VALUE_INFORMATION (Allowed values from characteristic)
External system
The characteristic values are determined based on the following settings made for the characteristic: Allowed single values and value ranges The check table or function assigned to it The foreign key dependency assigned to it
Matchcodes assigned to a characteristic are not taken into account. In addition, you can use this function module to check the validity of a single characteristic value. In this case, the control system transfers the value to be checked as a selection criterion. The value is valid if the function module returns the same value in the results table.
Required Authorizations
Authorization Object C_PROCCHAR C_CREX_WRK Field Characteristic name Activity Destination address Activity Value Characteristic whose values you want to read B1 (Transfer allowed values to external system) RFC destination of the external system 90 (Request control recipe data from R/3 System)
80
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of Allowed Values for Characteristics Plant Plant
April 2001
81
PP - PI-PCS Interface: Linking of Process Control Download of Allowed Values for Characteristics OPTION LOW HIGH CHAR CHAR CHAR 2 45 45 Selection option, e.g. EQ/BT/CP/... (see documentation on ABAP) Lower interval limit or single value Upper interval limit
SAP AG
Table HELPVALUES: PP-PI uses this table to transfer characteristic values that are not defined as single values or value ranges in the characteristic itself but have been determined based on the check table, check function, or foreign key dependency assigned there. It also transfers additional information on the values, such as the language-dependent short text.
If a matchcode has been assigned to the characteristic, this is not taken into account when determining allowed values. The HELPVALUES table has no fixed structure as the information transferred may vary from characteristic to characteristic and search help to search help. For this reason, the table structure is transferred dynamically in the DESCRIPTION_FOR_HELPVALUES table. Field HELPVALUES Format CHAR Length 255 Description Characteristic values found, texts included (value table without structure)
Table VALUES_FOR_FIELD This table contains the same characteristic values as the HELPVALUES table without the additional information. Therefore, the table structure only consists of the field for the characteristic value. For performance reasons, this table should be used since characteristic values are accessed without defining the structure. Field VALUES Format CHAR Length 255 Description Characteristic values found, texts not included (value table without structure)
Table DESCRIPTION_FOR_HELPVALUES This table describes the structure of entries in the HELPVALUES table. The structure of the HELPVALUES table is transferred dynamically as the information transferred varies from characteristic to characteristic and search help to search help. The DESCRIPTION_FOR_HELPVALUES table comprises the following fields: Field TABNAME FIELDNAME LANGU POSITION OFFSET LENG FIELDTEXT REPTEXT SCRTEXT_S Format CHAR CHAR LANG NUMC NUMC NUMC CHAR CHAR CHAR Length 30 30 1 4 6 6 60 55 10 Description Table name Field name Language key Field position in the table Field offset in work area Field length (number of characters) Short description of Repository objects Heading Short keyword
82
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of Allowed Values for Characteristics
SCRTEXT_M SCRTEXT_L
CHAR CHAR
20 40
Table DETAILED_VALUE_INFORMATION PP-PI uses this table to transfer allowed values that have been defined in the characteristic itself (as single values or value ranges). The table is structured as follows: Field OPER1 OPER2 STRING1 STRING2 STRING ATSTD Format CHAR CHAR CHAR CHAR CHAR CHAR Length 10 10 30 30 30 1 Description Operator for lower limiting value Operator for upper limiting value Lower limiting value Upper limiting value Allowed input value for characteristics without interval definition Indicator: Relevant value is to be displayed as default value.
April 2001
83
PP - PI-PCS Interface: Linking of Process Control Upload of Process Messages from the Control System to R/3 PP-PI
SAP AG
84
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Upload of Process Messages Using BAPIs
April 2001
85
SAP AG
ProcMessHeader (Header data of process messages) ProcMessCharac (Characteristics of process messages) ProcMessTextlines (Long texts of message characteristics)
ProcessMessageNew (Key of the process messages created) ProcMessHeaderReturn (Return code and system messages on message header) ProcMessCharacReturn (Return code and system messages on message characteristics) Return (System messages)
External system
Required Authorizations
Authorization Object C_MESS_WRK Field Plant Activity Value Plant of the process message 01 (Create process message)
Table ProcMessHeader Field PROC_MESS_ID_ TMP PLANT Format NUMC CHAR Length 18 04 Description Temporary key of a process message; any number that is unique within the method call or in the table Plant of the process message
86
April 2001
SAP AG
CHAR CHAR
08 01
Process message category Indicator: Message for test purpose, i.e. messages are created in R/3 and checked for errors that are nor related to their destinations but they are not sent Process message sender; this information serves documentation purposes
SENDER_NAME
CHAR
32
Table ProcMessCharac Field PROC_MESS_ID_ TMP NAME_CHAR CHAR_VALUE DATA_TYPE Format NUMC CHAR CHAR CHAR Length 18 30 30 04 Description Temporary process message key (see ProcMessHeader table) Name of the message characteristic as defined in R/3 Customizing Characteristic value; for allowed value range, see R/3 Customizing Format of characteristic value as defined in R/3 Customizing
Further Notes on the Table Fields For information on the settings for characteristics and characteristic values, see R/3 Customizing for Process Management by choosing Define Characteristics for Process Messages. Characteristic values (CHAR_VALUE field) are not checked during the method call. Incorrect values may, however, cause errors during message processing. If required, check the values by executing the GetHelpvalues (Read allowed values for a characteristic) method for the ProcessCharactrstcPI SAP business object. Depending on the characteristic format (DATA_TYPE field), you must display the characteristic values as follows: Format CHAR NUM Characteristic Value Display As a string <Mantissa>E<exponent> <Mantissa> consisting of an arithmetical sign (+/, -),one character before the decimal point, a decimal point (,/.), and up to 15 decimal digits. However, if you use many decimal digits, rounding errors may occur depending on the platform. <Exponent> consisting of the arithmetical sign and up to two decimal digits. yyyymmdd hhmmss
DATE TIME
Table ProcMessTextlines Field PROC_MESS_ID_ TMP NAME_CHAR Format NUMC CHAR Length 18 30 Description Temporary process message key (see ProcMessHeader table) Name of the message characteristic (see ProcMessCharac table)
April 2001
87
PP - PI-PCS Interface: Linking of Process Control Creating Process Messages TDFORMAT TDLINE CHAR CHAR 02 132 Format key of the text line Text line
SAP AG
Table ProcessMessageNew Field PROC_MESS_ID_ TMP PROC_MESS_ID Format NUMC NUMC Length 18 18 Description Temporary process message key (see ProcMessHeader parameter) Final process message key
System Messages
The R/3 System returns system messages that may appear during the method call in the following parameters: Table Parameter ProcMessHeaderReturn ProcMessCharacReturn Return Description Export: Return code and system messages on the message header Export: Return code and system messages on the message characteristics Export: System messages on the method call
Return Codes for the Message Header The following values may appear in the ProcMessHeaderReturn in the RETURN_CODE field: The process message is only created if the return code is 00. Return code 00 01 02 03 04 99 Meaning Message processed correctly. The plant does not exist (PLANT field in the ProcMessHeader parameter) The message category is not created in the plant (PROC_MESS_CATEGORY field in the ProcMessHeader parameter) Invalid test indicator (field TEST_FLAG in the ProcMessHeaderI parameter) No authorization to create process messages in the specified plant Message could not be processed due to an error in the characteristic data (see the ProcMessCharacReturn parameter for details)
Table ProcMessHeaderReturn Field PROC_MESS_ID_ TMP RETURN_CODE Format NUMC NUMC Length 18 02 Description Temporary process message key (see ProcMessHeader parameter) Return code
88
April 2001
SAP AG
TYPE
CHAR
01
20 03 220 20 06 50 50 50 50
System message type: S (Success) E (Error) W (Warning) I (Information) Message class Number of system message Message text Application log: Log number Application log: serial message number Variable of system message Variable of system message Variable of system message Variable of system message
Return Codes and the Message Characteristics The following values may appear in the ProcMessCharacReturn parameter in the RETURN_CODE field: The process message is only created if the return code is 00. Return code 00 01 02 03 04 05 Meaning No errors discovered during characteristic check The characteristic is not created (NAME_CHAR field in the ProcMessCharac parameter) Invalid characteristic format (DATA_TYPE field in the ProcMessCharac parameter) The long text for the characteristic is not contained in the ProcMessTextlines table No value assigned to the characteristic (CHAR_VALUE field in the ProcMessCharac parameter) The characteristic is not unique within the message (NAME_CHAR field in the ProcMessCharac parameter)
Table ProcMessHeaderReturn Field PROC_MESS_ID_ TMP NAME_CHAR RETURN_CODE TYPE Format NUMC CHAR NUMC CHAR Length 18 30 02 01 Description Temporary process message key (see ProcMessHeader parameter) Name of the message characteristic (see ProcMessCharac table) Return code System message type: S (Success) E (Error) W (Warning) I (Information) Message class Number of system message Message text Application log: log number Application log: serial message number Variable of system message
20 03 220 20 06 50
April 2001
89
PP - PI-PCS Interface: Linking of Process Control Creating Process Messages MESSAGE_V2 MESSAGE_V3 MESSAGE_V4 CHAR CHAR CHAR 50 50 50 Variable of system message Variable of system message Variable of system message
SAP AG
System Messages on the Method Call The following system messages may appear in the Return parameter: Type E E ID CB CB Number 050 060 System Message on Authorization You do not have authorization to create messages You do not have authorization to create messages in plant &
Type E E E E E E S
System Messages on the Message Header Errors occurred during message creation (see the ProcMessHeaderReturn parameter) Plant & does not exist (Enter a valid plant) Process message category &1 is not defined in plant &2 Enter a valid test indicator Further processing not possible (contact system administrator) Unable to create message Message(s) created successfully
Type E E E E E E E E
System Message on Message Characteristics Errors occurred in characteristics during message creation (see the ProcMessHeaderReturn parameter) No characteristic found with internal number & Characteristic & not created in the system Check characteristic format Error when converting value to format &1 Enter a long text for characteristic & No value assigned to message characteristic & Characteristic & has been assigned to message more than once
Parameter Return / Structure BAPIRET2 Field TYPE Format CHAR Length 01 Description System message type: S (Success) E (Error) W (Warning) I (Information) Message class Number of system message Message text Application log: log number
20 03 220 20
90
April 2001
SAP AG
06 50 50 50 50 32 10 30 10
Application log: serial message number Variable of system message Variable of system message Variable of system message Variable of system message Parameter name Line in the parameter Field in the parameter System (logical system) from which the message comes
April 2001
91
SAP AG
System Messages
The R/3 System returns system messages that may appear during the method call in the Return parameter: Export Parameter Return Reference Structure BAPIRET2 Description System messages on the method call
If the Wait parameter is not set or set to SPACE, there are no error messages. If the COMMIT WORK statement is not executed successfully, the function is terminated. If the Wait parameter is set to a value, the following error message may appear: Type E ID S& Number 150 System Message Update task could not be completed
For more information on the BAPIRET2 structure, see Creating Process Messages [Page 86], section System Messages on the Method Call.
92
April 2001
SAP AG
Required Authorizations
Authorization Object C_MESS_WRK Field Plant Activity Plant of the process message 03 (Display process message)
Message to be Checked
Pass on the number of the process messages whose existence you want to check in the following parameter: Import Parameter ProcessMessage Format NUMC Length 18 Req X Description Number of the process message; is returned using the ProcessMessagePI.CreateMultiple method in the ProcessMessageNew parameter.
System Messages
The R/3 System returns system messages that may appear during the method call in the Return parameter. Export Parameter Return Type E E E S ID CB1 CB1 CB1 CB1 Reference Structure BAPIRET2 Number 001 305 306 307 System Message An internal error has occurred Message & is not created in the system Message & already being processed Message & not created Description System messages on the method call
For more information on the BAPIRET2 structure, see Creating Process Messages [Page 86], section System Messages on the Method Call.
April 2001
93
PP - PI-PCS Interface: Linking of Process Control Upload of Process Messages Using RFC Function Modules
SAP AG
PROCESS_MESSAGE_ UPLOAD tRFC: Transfer of return code MSHD (Message header) MSEL (Message characteristics) TLINES (Long texts) RFC_DESTINATION_ FOR_TRFC (RFC destination of partner program) tRFC: Message transfer
PROCESS_MESSAGE_ GET_RETURN_CODE
External system
94
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Upload of Process Messages Using RFC Function Modules
Required Authorizations
Authorization Object C_MESS_WRK Field Plant Activity Value Plant of the process message 01 (Create process message)
Tables: Name MSHD MSEL TLINES Description Message header Message characteristics Text lines for characteristics Number of Entries 1 / message At least 1 / message At least 1 / long text characteristic
Exceptions: Name INTERNAL_ERROR NO_RFC_DESTINATION Description Internal error in the R/3 System Parameter RFC_DESTINATION_ FOR_TRFC contains no value although the function call was carried out using tRFC
Table Structures
Table MSHD: Field Format Length Description
April 2001
95
PP - PI-PCS Interface: Linking of Process Control Upload of Process Messages Using RFC Function Modules MSID CHAR 18
SAP AG
Message number The message number groups the table entries that belong to one process message. The number assigned to a message must be unique within the corresponding RFC. Plant to which the message refers Process message category Each process message must be assigned to one process message category defined in PP-PI (see also Process Messages and Process Message Categories [Page 8]). Test indicator: X (Test mode, i.e. the process message is displayed in the PP-PI message monitor but is not sent) SPACE (Normal mode)
WERK MSCLA
CHAR CHAR
04 08
TSTKZ
CHAR
01
08 06 32 02
Send date Send time Sender Return code for a message header or a message characteristic (see Error Handling)
Format CHAR
Length 18
Description Message number The message number groups the table entries that belong to one process message. The number assigned to a message must be unique within the corresponding RFC. Characteristic name Characteristic value Characteristic format: CHAR (Character) NUM (Numeric. Value is stored as a floating point value in the ATWRT field.) DATE (Date: YYYYMMDD) TIME (Time: HHMMSS)
30 30 04
RCODE
CHAR
02
Return code for a message header or a message characteristic (see Error Handling)
The MSEL table contains the process message characteristics and their values. The characteristic value is always transferred as left-justified in the 30-CHAR field ATWRT. With characteristic format NUM, ATWRT contains the characteristic value in floating-point format.
96
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Upload of Process Messages Using RFC Function Modules
Table TLINES: Field MSID ATNAM TDFORMAT TDLINE Format CHAR CHAR CHAR CHAR Length 18 30 02 132 Description Message number Characteristic name Format column for text processing in SAPscript editor Text line Any number of text lines can be stored in table TLINES for a long text characteristic.
Transferring a text for a characteristic is useful only if the characteristic has been defined in PPPI as a characteristic with a long text.
Error Handling
Message Header If a process message cannot be processed correctly by PROCESS_MESS_UPLOAD, the return code for this message is set to a value not equal to 0 (RCODE field in the MSHD table). Return Codes at Message Header Level: Return code 0 1 2 3 4 99 Meaning Message processed correctly. Plant does not exist (WERK field in the MSHD table). Message category not created in the plant (MSCLA field in the MSHD table). Invalid test indicator (TSTKZ field in the MSHD table ). No authorization to create process messages in the specified plant. Message could not be processed due to an error in the corresponding characteristic. (see section on error handling at characteristic level below)
Message Characteristics If inconsistencies or errors are discovered when the message characteristics are checked, the return code of the corresponding characteristic is set to a value not equal to 0 (RCODE field in the MSEL table ). Return Codes at Message Characteristic Level: Return code 0 1 2 Meaning No errors discovered during characteristic check. Characteristic is not created (ATNAM field ). Invalid characteristic format (ATFOR field),
April 2001
97
PP - PI-PCS Interface: Linking of Process Control Upload of Process Messages Using RFC Function Modules 3
SAP AG
According to the characteristic definition in PP-PI, the characteristic value should be a long text. However, the table TLINES does not contain a corresponding entry. No value assigned to characteristic. This is not allowed according to the characteristic definition within PP-PI. The corresponding characteristic is used in the message more than once.
4 5
If one of the errors listed above occurs, the corresponding process message cannot be processed. The return code at message header level is set to 99. Internal Errors If errors occur during message processing that are not due to faulty or inconsistent interface data, the exception INTERNAL_ERROR is triggered. In this case, none of the process messages transferred is processed. Processing of Transactional RFC If the control system does not transfer an RFC destination to PP-PI in a transactional message upload (parameter RFC_DESTINATION_FOR_TRFC), the results of message processing cannot be returned to the control system. In this case, PP-PI triggers exception NO_RFC_DESTINATION. The system does not process the process messages transferred.
98
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Download of Process Messages from R/3 PP-PI to the Control System
Interface Parameters
The following data is exchanged via the RFC interface (from the point of view of PP-PI): Export Parameters: Name CLIENT Format CLNT Length 03 Description SAP client from the source RFC
Table Parameters: Name MSHD MSEL TLINES Description Message header Message characteristics Text lines for characteristics Entries 1/message At least 1/message
For information on the table structures, see Upload of Process Messages Using RFC Function Modules [Page 94], section Table Structures.
April 2001
99
SAP AG
100
April 2001
SAP AG
Some of these ingredients serve as catalysts. During later process steps, they are recorded as output materials with negative quantities (see 300-160 catalyst 01). The production process itself consists of 4 operations each comprising several phases. The process is controlled by a single control system (control recipe destination 02). This means that only one control recipe has to be created. The process instructions are arranged in such a way that the control recipe consists of a general part that applies to the whole process. This general part contains information such as: General order data A list of all materials Process message subscriptions for process messages that are to be transferred to PP-PI during the production process Parameters for individual phases Requirements for specific measurement readings
The general part is followed by a part that contains process instructions specific to phases such as:
April 2001
101
SAP AG
Order data Contains order-related data not contained in the header of the control system (interface table CRHD) such as order quantity, resource network, and the plant in which the resource network is located). Material components of the order Transfers information on materials employed during the production process. One process instruction of category AMAT_1 is generated per material. Since the material list contains 17 ingredients, the sample recipe thus contains 17 process instructions of category AMAT_1.
AMAT_1
ACRST_I
Process message Message on the control recipe status Specifies that a process message of category PI_CRST is to subscription be transferred to PP-PI whenever the control recipe status Type 3 changes. It also specifies the characteristics that are to constitute this message. Characteristics PPPI_PROCESS_ORDER and PPPI_CONTROL_RECIPE already contain values, and can be sent directly to the message. All other characteristics of the process message to be transferred are assigned as values to the process instruction characteristic PPPI_REQUESTED_VALUE. Their values have to be assigned by the control system and must also be included in the message.
AOPST_I
Process message Message on operation status subscription Specifies that a process message of category PI_OPST is to be transferred to PP-PI whenever the operation status changes. It Type 3 also specifies the characteristics that are to constitute this message. The message characteristic PPPI_PROCESS_ORDER contains a value already and can be directly transferred to the message. All other characteristics of the process message to be transferred are assigned as values to the process instruction characteristic PPPI_REQUESTED_VALUE. Their values have to be assigned by the control system and must also be included in the message.
102
April 2001
SAP AG
APHST_I
Process message Message on phase status subscription Specifies that a process message of category PI_PHST is to be transferred to PP-PI whenever the phase status changes. It also Type 3 determines which characteristics are to constitute this message (see also notes on AOPST_I). Process message Message on material production (goods receipt) Specifies that a process message of category PI_PROD is to be subscription transferred to PP-PI when a material is produced. It also Type 3 determines which characteristics are to constitute this message (see also notes on AOPST_I). Process message Message on material consumption (goods issue) Specifies that a process message of category PI_CONS is to be subscription transferred to PP-PI when a material is consumed. It also Type 3 determines which characteristics are to constitute this message (see also notes on AOPST_I).
APROD_I
ACONS_1
April 2001
103
SAP AG
Apart from process parameter APHASE_1 created for each phase, the following further process instructions are assigned to some phases contained in the sample recipe: Process Instructio n Category APHAR_1 Type Content/Requested Message
Process instruction APHAR_1 is used to transfer controlrelevant parameters to the control system. It consists of: Phase number Parameter name Parameter value Lower or upper limit of the planned value (if required) Unit of measurement (if required)
In phase 1020 (analyze and adjust), for instance, a stirring period of 15 minutes is specified. For phases 2010 (prepare reaction basic substances) and 2030 (reaction) , the pH value to be set is transferred with the upper and lower limit; in phase 4010 (drying), the drying temperature is transferred with its permissible tolerances.
104
April 2001
SAP AG
AREAD1
Process instruction AREAD1 is used to request a measurement reading or the value of a data point defined in the control system. The value is to be transferred as process message DPREAD to PP-PI. The process instruction contains definitions of those characteristics the message is to comprise. The values of the following message characteristics are already defined in the process instruction and can therefore be transferred directly to the process message: PPPI_PROCESS_ORDER PPPI_DATA_POINT_NAME PPPI_UNIT_OF_MEASURE PPPI_OPERATION PPPI_PHASE
All other characteristics of the process message to be created are assigned as values to the process instruction characteristic PPPI_REQUESTED_VALUE. Their values have to be assigned by the control system and must also be included in the message. A process instruction of category AREAD1 that requests the result of a density measurement is contained in phase 1030 (Transfer to reactor unit). In phases 2010 (prepare reaction basic substances) and 2030 (reaction), the pH values at the end of these phases are requested.
April 2001
105
PP - PI-PCS Interface: Linking of Process Control Interface Tables of the Control Recipe
SAP AG
The TLINES table is not downloaded to the control system as the control recipe contains no long texts.
106
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Table CRHE: Control Recipe Header
April 2001
107
SAP AG
108
April 2001
SAP AG
100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616 100000000000000616
00000290 00000300 00000310 00000320 00000330 00000340 00000350 00000360 00000370 00000380 00000390 00000400 00000410 00000420 00000430 00000440 00000450 00000460
1 1 2 1 1 1 2 1 1 1 2 1 1 1 1 2 1 1
APHASE_1 APHPAR_1 AREAD1 APHASE_1 APHASE_1 APHPAR_1 AREAD1 APHASE_1 APHASE_1 APHASE_1 AREAD2 APHASE_1 APHASE_1 APHASE_1 APHPAR_1 AQMSMR_1 APHASE_1 APHASE_1
April 2001
109
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics
SAP AG
110
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics
100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616
000000 40 000000 40 000000 40 000000 40 000000 40 000000 40 000000 40 000000 50 000000 50 000000 50 000000 50 000000 50 000000 50 000000 50 000000 60 000000 60 000000 60 000000 60 000000 60 000000 60
0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006
PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY
300-130 0050 Pyridine CDE 1000 1010 1.53000000000000 00E+03 KG 300-140 0060 Hydrochloric Acid 1000 1010 2.30000000000000 00E+03 KG 300-150 0070 Sodium hydrogen carbonate 1000 1010 8.06000000000000 00E+02
CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM
April 2001
111
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 000000 60 000000 70 000000 70 000000 70 000000 70 000000 70 000000 70 000000 70 000000 80 000000 80 000000 80 000000 80 000000 80 000000 80 000000 80 000000 90 000000 90 000000 90 000000 90 000000 90 000000 90 000000 90 0007 0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE KG 300-160 0080 CAT_01Catalyst 01 1000 1010 1.00000000000000 00E+02 KG 300-160 0090 CAT_01Catalyst 01 1000 1010 8.00000000000000 00E+01 KG 300-170 0120 Diamino Toluene 1000 1010 1.10000000000000 00E+03 KG
SAP AG
CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R
112
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics
100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616
000001 00 000001 00 000001 00 000001 00 000001 00 000001 00 000001 00 000001 10 000001 10 000001 10 000001 10 000001 10 000001 10 000001 10 000001 20 000001 20 000001 20 000001 20 000001 20 000001 20 000001 20 000001 30 000001 30 000001 30 000001 30
0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004
PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION
300-180 0130 Sodium Nitrate 1000 1010 5.34000000000000 00E+02 KG 300-190 0140 Silcolapse 1000 1010 2.40000000000000 00E+01 KG 300-200 0150 Sulfuric Acid 1000 1010 1.60000000000000 00E+01 KG 300-210 0160 Cyanuric Chloride 1000
CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R
April 2001
113
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 000001 30 000001 30 000001 30 000001 40 000001 40 000001 40 000001 40 000001 40 000001 40 000001 40 000001 50 000001 50 000001 50 000001 50 000001 50 000001 50 000001 50 000001 60 000001 60 000001 60 000001 60 000001 60 000001 60 000001 60 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE 1010 1.67400000000000 00E+03 KG Y-300 0000 Yellow Paint in Cans 1000 1010 1.00000000000000 00E+04 KG P-300 0165 Paste 1000 1010 1.00000000000000 00E+03 KG 300-220 0170 Sodium carbonate 1000 1010 1.25000000000000 00E+03 KG
SAP AG
CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R
114
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics
100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616
000001 70 000001 70 000001 70 000001 70 000001 70 000001 70 000001 70 000001 80 000001 80 000001 80 000001 80 000001 80 000001 80 000001 80 000001 90 000001 90 000001 90 000001 90 000001 90 000001 90 000002 00 000002 00 000002 00 000002 00 000002 00
0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0005
PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MATERIAL PPPI_MATERIAL_ITE M PPPI_MATERIAL_SH ORT_TEXT PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL_QU ANTITY PPPI_UNIT_OF_MEA SURE PPPI_MESSAGE_CA TEGORY PPPI_PROCESS_OR DER PPPI_CONTROL_RE CIPE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_MESSAGE_CA TEGORY PPPI_PROCESS_OR DER PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE
300-230 0180 Contaminated Water 1000 1010 2.00000000000000 00E+02 L 300-240 0190 Cans 1000 1010 1.20000000000000 00E+02 ST PI_CRST Y-300/PCS1 1000000000000006 16 PPPI_CONTROL_ RECIPE_STATUS PPPI_EVENT_DAT E PPPI_EVENT_TIM E PI_OPST Y-300/PCS1 PPPI_OPERATION PPPI_OPERATION _STATUS PPPI_EVENT_DAT E
CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R
April 2001
115
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 000002 00 000002 10 000002 10 000002 10 000002 10 000002 10 000002 10 000002 10 000002 20 000002 20 000002 20 000002 20 000002 20 000002 20 000002 20 000002 20 000002 20 000002 30 000002 30 000002 30 000002 30 000002 30 000002 30 000002 30 000002 30 0006 0001 0002 0003 0004 0005 0006 0007 0001 0002 0003 0004 0005 0006 0007 0008 0009 0001 0002 0003 0004 0005 0006 0007 0008 PPPI_REQUESTED_V ALUE PPPI_MESSAGE_CA TEGORY PPPI_PROCESS_OR DER PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_MESSAGE_CA TEGORY PPPI_PROCESS_OR DER PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_MESSAGE_CA TEGORY PPPI_PROCESS_OR DER PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_EVENT_TIM E PI_PHST Y-300/PCS1 PPPI_OPERATION PPPI_PHASE PPPI_PHASE_STA TUS PPPI_EVENT_DAT E PPPI_EVENT_TIM E PI_PROD Y-300/PCS1 PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL PPPI_EVENT_DAT E PPPI_EVENT_TIM E PPPI_MATERIAL_ PRODUCED PPPI_UNIT_OF_M EASURE PI_CONS Y-300/PCS1 PPPI_OPERATION PPPI_PHASE PPPI_MATERIAL PPPI_EVENT_DAT E PPPI_EVENT_TIM E PPPI_MATERIAL_ CONSUMED
SAP AG
CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R
116
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics
100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616
000002 30 000002 40 000002 40 000002 40 000002 40 000002 40 000002 40 000002 50 000002 50 000002 50 000002 50 000002 50 000002 50 000002 60 000002 60 000002 60 000002 60 000002 70 000002 70 000002 70 000002 70 000002 70 000002 70 000002 80 000002 80
0009 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0001 0002 0003 0004 0005 0006 0001 0002
PPPI_REQUESTED_V ALUE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_PARAMETER_ NAME PPPI_PARAMETER_V ALUE PPPI_UNIT_OF_MEA SURE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_DATA_REQUES T_TYPE PPPI_MESSAGE_CA TEGORY
PPPI_UNIT_OF_M EASURE 1010 1000 R_1111 1100 Charge input substances CHARGE1 1020 1000 R_1111 1100 Analyze and adjust ADJUST1 1020 MIX_TIME 1.50000000000000 00E+01 MIN 1030 1000 R_1111 1100 Transfer to reactor unit TRANSFER1 SIMPLE DPREAD
CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R NUM CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R
April 2001
117
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 000002 80 000002 80 000002 80 000002 80 000002 80 000002 80 000002 80 000002 80 000002 90 000002 90 000002 90 000002 90 000002 90 000002 90 000003 00 000003 00 000003 00 000003 00 000003 00 000003 10 000003 10 000003 10 000003 10 000003 10 0003 0004 0005 0006 0007 0008 0009 0010 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0005 0001 0002 0003 0004 0005 PPPI_PROCESS_OR DER PPPI_DATA_POINT_ NAME PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_UNIT_OF_MEA SURE PPPI_OPERATION PPPI_PHASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_PARAMETER_ NAME PPPI_PARAMETER_V ALUE PPPI_PARAMETER_V ALUE_ MIN PPPI_PARAMETER_V ALUE_ MAX PPPI_DATA_REQUES T_TYPE PPPI_MESSAGE_CA TEGORY PPPI_PROCESS_OR DER PPPI_DATA_POINT_ NAME PPPI_REQUESTED_V ALUE Y-300/PCS1 DENSITY_READ PPPI_DATA_POIN T_VALUE PPPI_EVENT_DAT E PPPI_EVENT_TIM E KG/M3 1000 1030 2010 2000 R_1121 1100 Prepare reaction basic substance PREPARE1 2010 PH_VALUE 6.50000000000000 00E+00 6.00000000000000 00E+00 7.00000000000000 00E+00 SIMPLE DPREAD Y-300/PCS1 PH1_END_OF_PH ASE PPPI_DATA_POIN T_VALUE
SAP AG
CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R NUM NUM NUM CHA R CHA R CHA R CHA R CHA R
118
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics
100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616
000003 10 000003 10 000003 10 000003 10 000003 10 000003 10 000003 20 000003 20 000003 20 000003 20 000003 20 000003 20 000003 30 000003 30 000003 30 000003 30 000003 30 000003 30 000003 40 000003 40 000003 40 000003 40 000003 40 000003 50
0006 0007 0008 0009 0010 0011 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0005 0001
PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_UNIT_OF_MEA SURE PPPI_OPERATION PPPI_PHASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_PARAMETER_ NAME PPPI_PARAMETER_V ALUE PPPI_PARAMETER_V ALUE_ MIN PPPI_PARAMETER_V ALUE_ MAX PPPI_DATA_REQUES T_TYPE
PPPI_EVENT_DAT E PPPI_EVENT_TIM E PPPI_EVENT_TIM E 2000 2010 2020 2000 R_1121 1100 Add mixture from operation 100 CHARGE2 2030 2000 R_1121 1100 Reaction takes place! REACTION1 2030 PH_VALUE 6.50000000000000 00E+00 6.00000000000000 00E+00 7.00000000000000 00E+00 SIMPLE
CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R NUM NUM NUM CHA R
April 2001
119
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 000003 50 000003 50 000003 50 000003 50 000003 50 000003 50 000003 50 000003 50 000003 50 000003 50 000003 60 000003 60 000003 60 000003 60 000003 60 000003 60 000003 70 000003 70 000003 70 000003 70 000003 70 000003 70 000003 80 000003 80 000003 80 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0005 0006 0001 0002 0003 PPPI_MESSAGE_CA TEGORY PPPI_PROCESS_OR DER PPPI_DATA_POINT_ NAME PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_UNIT_OF_MEA SURE PPPI_OPERATION PPPI_PHASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE DPREAD Y-300/PCS1 PH1_END_OF_PH ASE PPPI_DATA_POIN T_VALUE PPPI_EVENT_DAT E PPPI_EVENT_TIM E PPPI_EVENT_TIM E 2000 2030 2040 2000 R_1121 1100 Discharge to condensation unit DISCHARGE1 3010 3000 R_1131 1100 Receive mixture from operation CHARGE2 3020 3000 R_1131
SAP AG
CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R
120
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics
100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616
000003 80 000003 80 000003 80 000003 90 000003 90 000003 90 000003 90 000003 90 000003 90 000003 90 000003 90 000003 90 000003 90 000004 00 000004 00 000004 00 000004 00 000004 00 000004 00 000004 10 000004 10 000004 10 000004 10 000004 10 000004 10
0004 0005 0006 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0005 0006
PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_DATA_REQUES T_TYPE PPPI_MESSAGE_CA TEGORY PPPI_PROCESS_OR DER PPPI_DATA_POINT_ NAME PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_UNIT_OF_MEA SURE PPPI_OPERATION PPPI_PHASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE
1100 Heating operation HEAT1 REPEATED DPREAD Y-300/PCS1 TEMP_1 PPPI_DATA_POIN T_VALUE PPPI_EVENT_DAT E PPPI_EVENT_TIM E C 3000 3020 3030 3000 R_1131 1100 Condensing operation CONDENS1 3040 3000 R_1131 1100 Discharge to filter press DISCHARG1
CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R
April 2001
121
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 000004 20 000004 20 000004 20 000004 20 000004 20 000004 20 000004 30 000004 30 000004 30 000004 30 000004 30 000004 30 000004 40 000004 40 000004 40 000004 40 000004 40 000004 40 000004 40 000004 40 000004 40 000004 40 000004 50 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0005 0006 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0001 PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_PARAMETER_ NAME PPPI_PARAMETER_V ALUE PPPI_PARAMETER_V ALUE_ MIN PPPI_PARAMETER_V ALUE_ MAX PPPI_UNIT_OF_MEA SURE PPPI_MESSAGE_CA TEGORY PPPI_PROCESS_OR DER PPPI_OPERATION PPPI_INSPECTION_L OT PPPI_INSPECTION_ CHARACTERISTIC PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_REQUESTED_V ALUE PPPI_PHASE 4010 4000 R_1140 1100 Drying operation DRY1 4010 TEMPERATURE 6.50000000000000 00E+01 6.00000000000000 00E+01 7.00000000000000 00E+01 C PI_QMSMR Y-300/PCS1 4000 000000000000 10 PPPI_NUMBER_O F_ INSPECTIONS PPPI_INSPECTIO N_ SHORT_TEXT PPPI_INSPECTIO N_ RESULT PPPI_EVENT_DAT E PPPI_EVENT_TIM E 4020
SAP AG
CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R NUM NUM NUM CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R
122
April 2001
SAP AG
PP - PI-PCS Interface: Linking of Process Control Table CRFV: Process Instruction Characteristics
100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616 100000000000 000616
000004 50 000004 50 000004 50 000004 50 000004 50 000004 60 000004 60 000004 60 000004 60 000004 60 000004 60
0002 0003 0004 0005 0006 0001 0002 0003 0004 0005 0006
PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE PPPI_PHASE PPPI_OPERATION PPPI_PHASE_RESO URCE PPPI_PLANT_OF_RE SOURCE PPPI_PHASE_SHORT _TEXT PPPI_EXTERNAL_PH ASE
4000 R_1140 1100 Receive mixture from operation CHARGE2 4030 4000 R_1140 1100 Discharge to cans DISCHARG1
CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R CHA R
April 2001
123