Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Sap em 9.0 CG - TM - em

Download as pdf or txt
Download as pdf or txt
You are on page 1of 32
At a glance
Powered by AI
The document discusses integration between SAP Transportation Management (TM) and SAP Event Management (EM). It describes how SAP TM handles events from SAP EM by forwarding them to business documents and changing execution statuses. It also provides steps to define alert categories and connections for notification purposes.

SAP TM saves event messages from SAP EM in the receiving business documents. It then processes the events by forwarding them to business documents and changing execution statuses. If a document is locked, it creates triggers for failed actions.

You specify the alert category, communication method and data. For transportation orders, the responsible person's email is used. You select the EM activity, copy and rename it, then enter the alert category. This enables using the alert framework for notifications.

SAP Transportation Management

Integration of SAP TM and SAP Event Management

PUBLIC Document Version: 2.0 September 2012

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

IOS is a registered trademark of Cisco Systems Inc.

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.

INTERMEC is a registered trademark of Intermec Technologies Corporation.

Wi-Fi is a registered trademark of Wi-Fi Alliance.

Bluetooth is a registered trademark of Bluetooth SIG Inc.

Motorola is a registered trademark of Motorola Trademark Holdings LLC.

Computop is a registered trademark of Computop Wirtschaftsinformatik GmbH.

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

Icons in Body Text


Icon Meaning Caution Example Note Recommendation Syntax Additional icons are used in SAP Library documentation to help you identify different types of information at a glance. For more information, see Help on Help General Information Classes and Information Classes for Business Information Warehouse on the first page of any version of SAP Library.

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

Example text <Example text> 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

Integration of SAP TM and SAP Event Management


This configuration guide provides you with the necessary information for configuring the integration of SAP Transportation Management (SAP TM) and SAP Event Management. Most of the configuration described in this guide is already preconfigured in the SAP TM and the SAP Event Management systems. However, due to individual system landscapes and business data, you need to make some changes in the implementation phase. In this configuration guide, we use the following example systems and clients: SAP Application Component SAP Transportation Management SAP Event Management Example System TM1 EM1 Example Client 910 500 Logical Name of Example System TM1CLNT910 EM1CLNT500

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

Settings in SAP Transportation Management


This section describes the configuration settings that are required in the SAP TM system for the integration with the SAP Event Management system.

(C) SAP AG

Maintaining the Output Management in SAP Transportation Management


You use this procedure to maintain the output management adapter for a given business object (BO) node.

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

4. Choose Details. 5. Select the Enable checkbox.

(C) SAP AG

Registering the Inbound Queue for Updates


You use this procedure to register the inbound queue for updates from SAP Event Management to SAP TM.

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

Setting Up Freight Unit, Freight Order, and Freight Booking Type


For the integration of SAP TM and SAP Event Management you need to set up the Freight Unit type, Freight Order type, and Freight Booking type.

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

Defining RFC Connection to SAP Event Management System


The RFC connection to SAP Event Management and the definition of the logical system serve as base definitions for connecting all systems to the SAP TM system. You can use this procedure to define which of the connected systems is a SAP Event Management system.

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

Defining Logical System for SAP Event Management


You use this procedure to define the logical system in which SAP Event Management is located.

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

Defining SAP Event Manager Definitions


You use this procedure to define which of the connected systems is an SAP Event Management System.

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

Checking the Business Process Type Definitions


Procedure
1. In Customizing for SAP TM, choose Integration with Other SAP Components Event Management Interface Define Application Interface Define Business Process Types . 2. In the Define Business Process Types table, select the entry for the business process type TMS_TOR. 3. Make sure that the EH Create and EMsg Send checkboxes are selected.

(C) SAP AG

16

Defining Application Object Type and Event Types


You use this procedure to specify the business process types and the related application object types for your event management-relevant processes.

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

ODT20_TO_POPU ODT20_TO_UNL_BEGIN ODT20_TO_UNL_END ODT20_UNBLOCK

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.

9. Save your entries.

(C) SAP AG

18

Settings in SAP Event Management


This section describes the configuration settings that are required in the SAP Event Management system for the integration with the SAP Transportation Management system.

(C) SAP AG

19

Defining RFC Connection to SAP Transportation Management


The RFC connection to the SAP TM system and the definition of the logical system serve as base definitions for connecting all systems to the application system. You can use this procedure to define which of these connected systems is a SAP TM system.

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

Defining Logical System for SAP Transportation Management


You use this procedure to define the logical system in which SAP TM is found.

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

Defining Application System


The RFC connection to the application system and the definition of the logical system are the base definitions for connecting all systems to the SAP Event Management system. You use this procedure to specify which one of these connected systems is an application system.

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

Assigning Profile to Mapping Area


By defining mapping profiles, you standardize the parameter information transferred from the application system to the SAP Event Management system. This enables you to display different parameter names from various application systems in a standardized way in SAP Event Management. If required, in the mapping profile you assign the parameter value sets, which you have defined for the control and info parameters or which SAP has predefined for the system parameters. You can specify default values for parameter mapping and for the type of mapping used for the parameters. You assign the mapping profiles using the application system and the application object type.

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

Defining Preprocessing Functions


To ensure that delayed events for Freight Orders, Freight Bookings, and Freight Orders are replicated to Transportation Management, you have to define the following fields.

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

Assigning User to Web Transactions


You assign a user to a Web interface transaction and to an existing user profile so the appropriate Web layout for sending event messages and querying event handler information is available. Depending on your scenario, assign the relevant Web transaction to your user. The possible combinations of Web transaction ID and user profile are provided below.

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

Defining Alert Categories


SAP Event Management can also track the Delay/Damage unexpected event. If this event occurs, SAP Event Management sends an alert to an alert recipient (for example, an e-mail address). If your scenario requires the system to send alerts to an alert recipient, you must configure the settings as follows.

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

Classification: EM: Alert in SAP EM Priority: High Application Pac: SAPLET

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

Defining Alert Framework Integration with SAP Event Management


You specify which alert category the system uses and how the container elements for this alert category are filled from SAP Event Management. This enables you to use the Alert Framework for notification purposes in certain situations, for example, in the event of a delay or contamination.

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

Scheduling the Report for Trigger Processing in SAP Transportation Management


SAP TM saves event messages from SAP Event Management in the receiving business documents. SAP TM processes the events as follows: Forward event to a business document Change the execution status of the business document

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

You might also like