Sap em 9.0 CG - TM - em
Sap em 9.0 CG - TM - em
Sap em 9.0 CG - TM - em
Copyright
Copyright 2012 SAP AG. All rights reserved.
SAP Library document classification: PUBLIC 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. 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, Excel, Outlook, PowerPoint, Silverlight, and Visual Studio are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, z10, z/VM, z/OS, OS/390, zEnterprise, PowerVM, Power Architecture, Power Systems, POWER7, POWER6+, POWER6, POWER, PowerHA, pureScale, PowerPC, BladeCenter, System Storage, Storwize, XIV, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, AIX, Intelligent Miner, WebSphere, Tivoli, Informix, and Smarter Planet are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the United States and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are trademarks or registered trademarks of Adobe Systems Incorporated in the United States and other countries.
Oracle and Java are registered trademarks of Oracle and its affiliates.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems Inc.
HTML, XML, XHTML, and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology.
Apple, App Store, iBooks, iPad, iPhone, iPhoto, iPod, iTunes, Multi-Touch, Objective-C, Retina, Safari, Siri, and Xcode are trademarks or registered trademarks of Apple Inc.
(C) SAP AG
RIM, BlackBerry, BBM, BlackBerry Curve, BlackBerry Bold, BlackBerry Pearl, BlackBerry Torch, BlackBerry Storm, BlackBerry Storm2, BlackBerry PlayBook, and BlackBerry App World are trademarks or registered trademarks of Research in Motion Limited.
Google App Engine, Google Apps, Google Checkout, Google Data API, Google Maps, Google Mobile Ads, Google Mobile Updater, Google Mobile, Google Store, Google Sync, Google Updater, Google Voice, Google Mail, Gmail, YouTube, Dalvik and Android are trademarks or registered trademarks of Google Inc.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, SAP HANA, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company.
Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase Inc. Sybase is an SAP company.
Crossgate, m@gic EDDY, B2B 360, and B2B 360 Services are registered trademarks of Crossgate AG in Germany and other countries. Crossgate is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
(C) SAP AG
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
(C) SAP AG
Typographic Conventions
Type Style Example text Description Words or characters quoted from the screen. These include field names, screen titles, pushbuttons labels, menu names, menu paths, and menu options. Cross-references to other documentation. Example text EXAMPLE TEXT Emphasized words or phrases in body text, graphic titles, and table titles. Technical names of system objects. These include report names, program names, transaction codes, table names, and key concepts of a programming language when they are surrounded by body text, for example, SELECT and INCLUDE. Output on the screen. This includes file and directory names and their paths, messages, names of variables and parameters, source text, and names of installation, upgrade and database tools. Exact user entry. These are words or characters that you enter in the system exactly as they appear in the documentation. Variable user entry. Angle brackets indicate that you replace these words and characters with appropriate entries to make entries in the system. Keys on the keyboard, for example, F2 or ENTER.
Example text
(C) SAP AG
Table of Contents
Integration of SAP TM and SAP Event Management...................................................................... 7 Settings in SAP Transportation Management .............................................................................. 8 Maintaining the Output Management in SAP Transportation Management ............................ 9 Registering the Inbound Queue for Updates .......................................................................... 10 Setting Up Freight Unit, Freight Order, and Freight Booking Type ........................................ 11 Defining RFC Connection to SAP Event Management System ............................................. 13 Defining Logical System for SAP Event Management ........................................................... 14 Defining SAP Event Manager Definitions ............................................................................... 15 Checking the Business Process Type Definitions .................................................................. 16 Defining Application Object Type and Event Types ............................................................... 17 Settings in SAP Event Management .......................................................................................... 19 Defining RFC Connection to SAP Transportation Management ............................................ 20 Defining Logical System for SAP Transportation Management ............................................. 21 Defining Application System................................................................................................... 22 Assigning Profile to Mapping Area ......................................................................................... 23 Defining Preprocessing Functions ......................................................................................... 24 Assigning User to Web Transactions ..................................................................................... 25 Appendix .................................................................................................................................... 26 Defining Alert Categories ....................................................................................................... 27 Defining Alert Framework Integration with SAP Event Management..................................... 30 Scheduling the Report for Trigger Processing in SAP Transportation Management ............. 32
(C) SAP AG
Prerequisites
The following applications and releases are required: o o SAP TM 9.0 with Support Package 1 SAP enhancement package 1 for SAP Event Management 7.0 with Support Package 3
In the SAP Event Management system, you must have activated the business function SCM_EM_TMCONTENT01. To do so, in Customizing for SAP EM, choose SAP NetWeaver Application Server System Administration Switch Framework .
(C) SAP AG
(C) SAP AG
Procedure
This procedure refers to the Transportation Management business objects Freight Unit (technical name FU), Freight Order (technical name TO), and Freight Booking (technical name BO). 1. In Customizing for SAP TM, choose Cross-Application Components Processes and Tools for Enterprise Applications Reusable Objects and Functions for BOPF Environment PPF Adapter for Output Management Maintain Output Management Adapter Settings . 2. Choose the dialog structure Direct Output Agents (w/o PPF & w/o History). 3. Select the entry with the following data: o o o Business object: /SCMTMS/TOR Node: ROOT Agent name: SEND_EM_DATA_FROM_TOR
(C) SAP AG
Procedure
1. In SAP TM, start the transaction SMQR. 2. Choose Registration. 3. On the dialog box, enter EM* in the Queue Name field. 4. Save your entries.
(C) SAP AG
10
Procedure
Settings for Freight Unit Types 1. In Customizing for SAP TM, choose Unit Define Freight Unit Types . Transportation Management Planning Freight
2. Choose the freight unit that is to be tracked with SAP Event Management. 3. Enter the following data: o o Under Execution Settings next to Execution Tracking Relevance, choose Execution Tracking with External Event Management. Under Event Management Settings next to Application Object Type enter ODT20_FU. This is the application object that is to be tracked on the application system. o Under Event Management Settings next to Last Expected Event, choose the last expected event (for example, UNLOAD_END). If this last expected event is sent from the destination stop of a business document, this document is finished from an execution perspective.
Settings for Freight Order Types 1. In Customizing for SAP TM, choose Transportation Management Management Freight Order Define Freight Order Types . Freight Order
2. Choose the freight order type that is to be tracked with SAP Event Management. 3. Enter the following data: o o Under Execution Settings next to Execution Tracking Relevance, choose Execution Tracking with External Event Management. Propagate Execution Info: This checkbox specifies whether an event that is reported for a freight order is to be propagated to the predecessor document (a freight unit in the visibility process). Select this checkbox to enable the propagation of events to the predecessor document. Under Event Management Settings next to Application Object Type enter ODT20_TO. Under Event Management Settings next to Last Expected Event choose the last expected event (for example, UNLOAD_END). If this last expected event is sent from the destination stop of a business document, this document is finished from an execution perspective.
o o
(C) SAP AG
11
Settings for Freight Booking Types 1. In Customizing for SAP TM, choose Transportation Management Management Freight Booking Define Freight Booking Types . Freight Order
2. Choose the freight booking type that you want to be tracked with SAP Event Management. 3. Choose New Entries, and edit or enter the following data: o o Under Execution Settings next to Execution Tracking Relevance, choose Execution Tracking with External Event Management. Propagate Execution Info: This checkbox specifies whether an event that is reported for a freight booking is to be propagated to the predecessor document (a freight unit in the visibility process). Select this checkbox to enable the propagation of events to the predecessor document. Under Event Management Settings next to Application Object Type enter ODT20_TO. Under Event Management Settings next to Last Expected Event choose the last expected event (for example, UNLOAD_END). If this last expected event is sent from the destination stop of a business document, this document is finished from an execution perspective.
o o
(C) SAP AG
12
Procedure
1. In Customizing for SAP TM, choose Integration with Other SAP Components Event Management Interface Define System Configuration Define RFC Connection to SAP EM . 2. Choose Create, and enter the following data: o o o RFC destination (example: EM1CLNT500) Connection type: 3 (Connection to ABAP System) Description for your RFC connection
3. On the Technical Settings tab page, enter the following data: o Target Host This is the host name of your SAP Event Management system (for example, emsystem.wdf.sap.corp). o System Number This is the SAP system number of your SAP Event Management system (for example, 29). 4. On the Logon & Security tab page, enter the client, the user (for example, ALEREMOTE), and the password.
You have to enter a user with the user type Service. The profile SAPTRX/SAP_EM_USER must be assigned to it. 5. Save the RFC connection.
(C) SAP AG
13
Procedure
1. In Customizing for SAP TM, choose Integration with Other SAP Components Management Interface Define System Configuration Define Logical System 2. Choose New Entries, and enter the following data: o Logical System Enter your logical system (for example, EM1CLNT500). o Name Enter the name of your logical system. Event .
(C) SAP AG
14
Procedure
1. In Customizing for SAP TM, choose Integration with Other SAP Components Management Interface Define Application Interface Define SAP EM . 2. Choose New Entries and enter the following data: o Event Manager Enter the appropriate ID (for example, EM1CLNT500). o EM Logical System Enter the ID of the logical system of your SAP Event Management system that you defined in the previous chapter (for more information, see Defining Logical System for SAP Event Management); example: EM1CLNT500. o SAP EM Version Enter SCM 4.0. o Local Event Manager Do not select the checkbox. o Logical Destination Enter the name of the RFC destination (SAP Event Management system) that you created in the previous (for more information, see Defining Logical System for SAP Event Management); example, EM1CLNT500. o Synchronous Communication to Event Manager Deselect this checkbox to improve performance. Select this checkbox for test purposes only. In a productive environment, we recommend to use asynchronous communication. o Description Enter any relevant descriptive text. Event
(C) SAP AG
15
(C) SAP AG
16
Procedure
1. In Customizing for SAP TM, choose Integration with Other SAP Components Event Management Interface Define Application Interface Define Business Process Types . 1. In the Define Used Business Process Types table, select the entry for the business process type TMS_TOR. 2. Make sure that the EH Create and EMsg Send checkboxes are selected. 2. In Customizing for SAP TM, choose Integration with Other SAP Components Event Management Interface Define Application Interface Define Used Bus. Prc. Types, Appl. Obj. Types, and Event Types . 1. In the Define Used Business Process Types screen, choose Define Used Business Process Types. 2. In the Define Used Business Process Types table, select the entry of the business process type TMS_TOR. 3. Choose Define Application Object Types. 4. Specify the application object types ODT20_FU and ODT20_TO. 5. For each application object type, specify the following data: In the Event Manager field, enter the ID of your SAP Event Management system (for example, EM1CLNT501). Select the EM Relevance of Appl. Obj checkbox.
6. Choose Define Event Types. 7. Specify the following event types: ODT20_BLOCK ODT20_CANCEL ODT20_SCHEDULED ODT20_TO_ARRIVAL ODT20_TO_DEPART ODT20_TO_LOAD_BEGIN ODT20_TO_LOAD_END ODT20_TO_POD
(C) SAP AG
17
8. For each event type, specify the following data: In the Event Manager field, enter the ID of your SAP Event Management system (for example, EM1CLNT500). Select the EM Relevance of Event Type checkbox. To improve performance, select the Appl. Log Deact. checkbox for all object types.
(C) SAP AG
18
(C) SAP AG
19
Procedure
1. In Customizing for SAP Event Management, choose Event Management General Settings in SAP Event Management Define RFC Connection to Application System . 2. Choose Create. 3. Enter the following data: o o o RFC destination (for example, TM1CLNT910) Connection type: 3 Description for your RFC connection
4. On the Technical Settings tab page, enter the following data: o Target Host This is the host name of your SAP TM system (for example, tmsystem.wdf.sap.corp). o System Number This is the host SAP system number of your SAP TM system (for example, 29). 5. On the Logon & Security tab page, enter the client, user (for example, ALEREMOTE), and password.
You have to enter a user with the user type Service. The profile SAP_QAP_Transportation_Manager must be assigned to it. 6. Save your entries.
(C) SAP AG
20
Procedure
1. In Customizing for SAP Event Management, choose Event Management Settings in SAP Event Management Define Logical System . 2. Choose New Entries and enter the following data: o Logical System Enter your logical system for Transportation Management, for example, TM1CLNT910. o Name Enter the name of the logical system. General
(C) SAP AG
21
Procedure
1. In Customizing for SAP Event Management, choose Event Management Settings in SAP Event Management Define Application System . 2. Choose New Entries and enter the following data: o Application System Enter your SAP TM system (for example, TM1CLNT910). o Logical System Enter the logical name of the SAP TM system (for example, TM1CLNT910). o Destination Enter the RFC connection for the SAP TM system (for example, TM1CLNT910). o Local Application System Do not select this checkbox. o Synchronous Communication to Event Manager Select this checkbox for test purposes only. In a productive environment, we recommend to use asynchronous communication. o Acknowledge EH Post Select this checkbox. o Description for your entry Enter a description. General
(C) SAP AG
22
Procedure
1. In Customizing for SAP Event Management, choose Event Management Event Handlers and Event Handler Data Parameters Define Parameter Mapping . 2. Choose Assign Profile to Mapping Area. 3. Choose New Entries, and enter the following data: Example Application System Application Object Type Mapping Profile Error Mode Choose Map parameters if possible, otherwise assign input parameter Choose Map parameters if possible, otherwise assign input parameter
TM1CLNT910
ODT20_FU
ODT20_TOR
TM1CLNT910
ODT20_TO
ODT20_TOR
(C) SAP AG
23
Please also see SAP Note 1527790: Delay Events are not replicated to Transportation Management.
Procedure
1. In Customizing of SAP Event Management, choose Event Management Event Messages, Status Queries, and Web Interface Define Criteria for Event Message Processing . 2. Under Preprocessing Functions, enter the following values : Internal Event Code DELAYE D Tracing ID Code Set Sender Code Set Sender Code ID Location Code Set Location Code ID 1 Location Code ID 2 Function Module /SAPTRX /TMS_A DD_PAR A /SAPTRX /TMS_A DD_PAR A /SAPTRX /TMS_A DD_PAR A
FU
DELAYE D
TO
DELAYE D
TOR_TE C
(C) SAP AG
24
Procedure
1. In Customizing for SAP Event Management, choose Event Management Event Messages, Status Queries, and Web Interface Web Interface Assign User Profiles and Web Interface Transactions to Users . 2. Enter your user name in the dialog box Determine Work Area: Entry. 3. Choose New Entries, and enter the following data: Web Interface Transaction ODT20_CONS_FO User Profile ODT20_CONSIGNEE_FO Description Consignee Freight Order Transp. Exec. Visib. Proc. (new) Consignee Freight Unit Transp. Exec. Visib. Proc. (new) Shipper Freight Order Transport. Exec. Visib. Proc. (new) Shipper Freight Unit Transport. Exec. Visib. Proc. (new) Shipper Freight Booking Transport. Exec. Visib. Proc. (new)
ODT20_CONS_FU
ODT20_CONSIGNEE_FU
ODT20_SHIP_FO
ODT20_SHIPPER_FO
ODT20_SHIP_FU
ODT20_SHIPPER_FU
ODT20_SHIP_BO
ODT20_SHIPPER_BO
(C) SAP AG
25
Appendix
In this appendix you find optional settings we recommend.
(C) SAP AG
26
Prerequisites
You have implemented SAP Note 1680711 (Missing Alert Categories for Activity Parameter IDs) and SAP Note 1534724 (for the alert Damage).
Procedure
1. In Customizing for SAP Event Management, choose Event Management Reactions to Event Messages Define Alert Framework Connection Define Alert Categories . 2. Under All Classifications, choose EM: Alert in SAP EM, or create your own classification. 3. Within the classification you just selected or created, create the following alert categories based on these examples: 3.1 Alert Category When Freight Unit is Delayed Properties tab page: o o o o Alert Category: Z_SCEM_ODT20_DELAY_FU Description: Send E-Mail with Delay Information of Freight Unit Classification: If necessary, create your own classification Priority: High
Container tab page: Element EXP_DELAY_DATE EXP_DELAY_TIME EXP_DELAY_TZ FU_ID Name Expected Delay Date Expected Delay Time Expected Delay TZ Freight Unit Short Description Expected Delay Date Expected Delay Time Expected Delay TZ Freight Unit ABAP Dict. DATS TIMS /SAPTRX/TIMEZONE CHAR20
Long and Short Text tab page: o o Message title: Delayed Arrival of Freight Unit &FU_ID& Long text (e-mail/fax): Dear Sir or Madam: Your freight unit &FU_ID& has been delayed
(C) SAP AG
27
Estimated date/time: Date: &EXP_DELAY_DATE& Time: &EXP_DELAY_TIME& TZone: &EXP_DELAY_TIMEZONE& Kind regards, 3.2 Alert Category When Freight Order is Delayed Properties tab page: o o o Alert Category: Z_SCEM_ODT20_DELAY_FO Description: Send E-Mail with Delay Information of Freight Order Classification: EM: If necessary, create your own classification.
Container tab page: Element EXP_DELAY_DATE EXP_DELAY_TIME EXP_DELAY_TZ FO_ID Name Expected Delay Date Expected Delay Time Expected Delay TZ Freight Order Short Description Expected delay date Expected delay time Expected delay TZ Freight order ABAP Dict. DATS TIMS /SAPTRX/TIMEZONE CHAR20
Long and Short Text tab page: o o Message title: Delayed Arrival of Freight Order &FO_ID& Long text (e-mail/fax): Dear Sir or Madam: Your freight order &FO_ID& has been delayed Estimated date/time: Date: &EXP_DELAY_DATE& Time: &EXP_DELAY_TIME& TZone: &EXP_DELAY_TIMEZONE& Kind regards, 3.3 Alert Category When Freight Unit Is Damaged Properties tab page: o o (C) SAP AG Alert Category: Z_SCEM_ODT20_DAMAGE Description: SCEM: Send E-Mail with Damage Information of Freight Unit 28
o o o
Container tab page: Element FU_ID Name Freight Unit Short Description Freight unit ABAP Dict. CHAR20
Long and Short Text tab page: o o Message title: Freight Unit &FU ID& Damaged Long text (e-mail/fax): Dear Sir or Madam: Your freight unit &FU_ID& has been damaged. Kind regards,
(C) SAP AG
29
Prerequisites
You have implemented SAP Note 1534724 for the entry ODT_DAMAGE. You have defined the Alert Framework Connection in the Customizing of SAP Event Management.
Procedure
In Customizing for SAP Event Management, choose Event Management Reactions to Event Messages Define Alert Framework Connection Define Alert Framework Integration to SAP Event Management . Freight Unit is Delayed 1. Select ODT20_DELAY_FU. 2. Copy the selected entry, and rename it to create your own activity parameter ID. Example: Z_ODT20_DELAY_FU. 3. Enter the alert category you defined. For more information, see the chapter Defining Alert Categories. 4. Specify the communication method, for example Internet E-Mail Address. 5. Specify the communication data. Here you enter an Event Management parameter.
For the Transportation Order related business objects, the RESP_EMAIL_ADDR control parameter is populated with the email address of the person responsible. If this email address is not available, it is populated with the email address of the user who made the last change, provided that this user is maintained in the user master data. 6. Choose Enter, and choose copy all to copy the entry with all dependent entries. Freight Order is Delayed 1. Select ODT20_DELAY_FO. 2. Copy the selected entry, and rename it to create you own activity parameter ID. Example: Z_ODT20_DELAY_FO. 3. Continue with step 3 above. Freight Unit is Damaged
(C) SAP AG
30
1. Select ODT20_DAMAGE. 2. Copy the selected entry, and rename it to create you own activity parameter ID. Example: Z_ODT20_DAMAGE. 3. Continue with step 3 above.
(C) SAP AG
31
If a business document (for example, freight order) is locked, the SAP TM system cannot perform the above actions. Instead, the system creates a trigger for each failed action. SAP TM uses report /SCMTMS/PROCESS_TRIGGER_BGD to execute the triggers and perform the actions with as little delay as possible.
Procedure
Schedule and run report /SCMTMS/PROCESS_TRIGGER_BGD periodically.
To make sure that business documents in the system are updated with their new status regularly, run the report often, for example, every 10 minutes.
(C) SAP AG
32