Академический Документы
Профессиональный Документы
Культура Документы
PUBLIC
Document Version: 2.0 September 2012
Copyright
Copyright 2012 SAP AG. All rights reserved.
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
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
Description
Example text
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
Emphasized words or phrases in body text, graphic titles, and table titles.
EXAMPLE TEXT
Example text
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.
Example text
Exact user entry. These are words or characters that you enter in the system
exactly as they appear in the documentation.
<Example text>
Variable user entry. Angle brackets indicate that you replace these words and
characters with appropriate entries to make entries in the system.
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
Example System
Example Client
Logical Name of
Example System
SAP Transportation
Management
TM1
910
TM1CLNT910
SAP Event
Management
EM1
500
EM1CLNT500
Prerequisites
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
Node: ROOT
4. Choose Details.
5. Select the Enable checkbox.
(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
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.
Freight Order
2. Choose the freight order type that is to be tracked with SAP Event Management.
3. Enter the following data:
(C) SAP AG
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.
11
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:
(C) SAP AG
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.
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
Target Host
This is the host name of your SAP Event Management system (for example,
emsystem.wdf.sap.corp).
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
Event
.
Logical System
Enter your logical system (for example, EM1CLNT500).
Name
Enter the name of your logical system.
(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 .
Event
Event Manager
Enter the appropriate ID (for example, EM1CLNT500).
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.
SAP EM Version
Enter SCM 4.0.
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.
Description
Enter any relevant descriptive text.
(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).
(C) SAP AG
ODT20_BLOCK
ODT20_CANCEL
ODT20_SCHEDULED
ODT20_TO_ARRIVAL
ODT20_TO_DEPART
ODT20_TO_LOAD_BEGIN
ODT20_TO_LOAD_END
ODT20_TO_POD
17
ODT20_TO_POPU
ODT20_TO_UNL_BEGIN
ODT20_TO_UNL_END
ODT20_UNBLOCK
In the Event Manager field, enter the ID of your SAP Event Management
system (for example, EM1CLNT500).
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
Connection type: 3
Target Host
This is the host name of your SAP TM system (for example,
tmsystem.wdf.sap.corp).
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 .
General
Logical System
Enter your logical system for Transportation Management, for example,
TM1CLNT910.
Name
Enter the name of the logical system.
(C) SAP AG
21
Procedure
1. In Customizing for SAP Event Management, choose Event Management
Settings in SAP Event Management Define Application System .
General
Application System
Enter your SAP TM system (for example, TM1CLNT910).
Logical System
Enter the logical name of the SAP TM system (for example, TM1CLNT910).
Destination
Enter the RFC connection for the SAP TM system (for example, TM1CLNT910).
Acknowledge EH Post
Select this checkbox.
(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
TM1CLNT910
TM1CLNT910
(C) SAP AG
Application Object
Type
ODT20_FU
ODT20_TO
Mapping Profile
Error Mode
ODT20_TOR
Choose Map
parameters if
possible, otherwise
assign input
parameter
ODT20_TOR
Choose Map
parameters if
possible, otherwise
assign input
parameter
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
FU
DELAYE
D
TO
DELAYE
D
TOR_TE
C
(C) SAP AG
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
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
User Profile
Description
ODT20_CONS_FO
ODT20_CONSIGNEE_FO
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
Priority: High
Name
Short Description
ABAP Dict.
EXP_DELAY_DATE
DATS
EXP_DELAY_TIME
TIMS
EXP_DELAY_TZ
Expected Delay TZ
Expected Delay TZ
/SAPTRX/TIMEZONE
FU_ID
Freight Unit
Freight Unit
CHAR20
(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
Name
Short Description
ABAP Dict.
EXP_DELAY_DATE
DATS
EXP_DELAY_TIME
TIMS
EXP_DELAY_TZ
Expected Delay TZ
Expected delay TZ
/SAPTRX/TIMEZONE
FO_ID
Freight Order
Freight order
CHAR20
(C) SAP AG
Priority: High
Name
Freight Unit
Short Description
Freight unit
ABAP Dict.
CHAR20
(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.
(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