Академический Документы
Профессиональный Документы
Культура Документы
Applications (Fiori)
Contents
Documents ............................................................................................................................................. 3
Summary ................................................................................................................................................ 4
Pre-requisites ........................................................................................................................................ 5
Overview Filter Filter Value and Filter Description retrieval........................................................ 5
Supported Parameter Types for TAANA based Filter ..................................................................... 7
TAANA delivered Analysis for Freight Order Visibility App ODT40_TO Scenario...................... 8
Set up TAANA for SAP delivered Filter based on TAANA ............................................................. 9
Filter Values for System Parameter used in Filter: ...................................................................... 9
Filter Values for Expected Event Parameter used in Filter: ....................................................... 9
How-To set up TAANA for Freight Order Visibility App for custom Parameter ......................... 10
How to setup a Control Parameter as Filter ............................................................................... 11
How to setup an Event Message Header Parameter as Filter ................................................ 16
Test Filter setup with the EM ODATA Service ............................................................................... 22
TAANA Warnings displayed on the Freight Order Visibility App UI ............................................ 25
Table of Figures .................................................................................................................................. 26
Documents
TAANA Table Analysis
SAP Help
http://help.sap.com/erp2005_ehp_07/helpdata/en/4d/9c347
69be813fde10000000a42189c/frameset.htm
SAP NOTE
SAP NOTE
http://scn.sap.com/docs/DOC-65175
Summary
In the SAP Event Management transactional Freight Oder Visibility app it is possible to use
pre-defined filters for querying data from the SAP EM backend system. Some of these values
are directly extracted from the SAP EM tables which are relevant for the ODT40_TO visibility
scenario. To offer a solution to customers that can be used on SAP HANA and Any DB
systems, SAP TAANA (Table Analyses) was selected to perform analyses and aggregate the
relevant data to retrieve the pre-analyzed distinct values.
This guide focuses on filter values which are based on SAP TAANA. No other non TAANA
based filter values like Status Parameter, Parameter Value Sets etc. are covered.
Pre-requisites
-
Supported
ODT40_TO
Shipment
TAANA View/Table
Yes
Yes
/SAPTRX/V_ODTTO,
Customer
EH Control
Yes
No
Customer
EH Info
Yes
No
Customer
Expected
Event
Parameter
Event
Extension
Parameter
Event Handler
TRKID
Parameter
Event
Message
Header
Yes
Yes
/SAPTRX/V_H_EXP,
Customer
Yes
No
Customer
Yes
No
Customer
Yes
No
Customer
UCCF Cust:
View/Table and Variant
Required, specify view
in uccf, Variant not
supported
Required, specify view
and variant in uccf
Required, specify view
and variant in uccf
Required, specify view
in uccf, Variant not
supported
Required, specify view
in uccf, Variant not
supported
Required, specify view
in uccf, Variant not
supported
Required, specify view
in uccf, Variant not
supported
TAANA Method
select_single_complex
select_single_complex
select_single_complex
select_single_complex
select_single_complex
select_single_complex
select_single_complex
TAANA delivered Analysis for Freight Order Visibility App ODT40_TO Scenario
Table/View
Parameter
Variant
/SAPTRX/V_ODTTO
ODT40_TO_TSP_I
ODT40_TO_TRMOD
ODT40_TO_TRMODCAT
ODT40_TO_SHIPPING_TYPE
ODT40_TO_SOU_LOC_I
ODT40_TO_SOU_LOC_CITY
ODT40_TO_SOU_LOC_COUNTRY
ODT40_TO_DESTLOC_I
ODT40_TO_DEST_LOC_CITY
ODT40_TO_DEST_LOC_COUNTRY
ODT40_EH_EXTENSION
/SAPTRX/V_H_EXP
LOC_ID_1
COUNTRY
ODT40_LOCATION
/SAPTRX/V_H_EXP
EVENT_CODE
ODT40_ EVENT_CODE
Table 2 TAANA delivered Analysis for Freight Order Visibility App ODT40_TO Scenario
Note: For the retrieval of the filter description for Carrier (ODT40_TO_TSP_I) a wrapper for
BAPI_LOCSRVAPS_GETLIST2 is available for SAP TM 9.20 or higher. When using Filter or
Business Partner descriptions do not call BAPI_LOCSRVAPS_GETLIST2 in a separate
RFC call for each BP as this would lead to performance problems.
In the View /SAPTRX/V_ODTTO, the field EH_TYPE is not a key field. In TAANA table
analysis only key fields can be used for data selection filters. If this is required a new view
has to be created containing the corresponding fields in the table key.
Hint: To ensure that you only get the TAANA values for parameters which correlate to active
Event Handlers, schedule the table analysis and use Field Selection and specify Active = X
to get only values for active Event Handlers.
Hint: To make sure that the Filter values are updated, schedule the TAANA analysis runs
daily. In setting up the table analysis, choose the Processing Options In the Background
and set up a daily job for the analysis run.
To regulate the space of the table analyses used on the database, it is recommended to
setup a reorganization of the table analysis transaction taana Utilities Reorganize
Analysis.
Also consider SAP Note: 2034063 - Deletion of old table analyses in the background
How-To set up TAANA for Freight Order Visibility App for custom Parameter
Pre-requisite: View Component EH_TYPE available
Parameter Type
EH Extension
EH Control
/SAPTRX/EH_HDR
/SAPTRX/EH_CNTR
EH Info
/SAPTRX/EH_HDR
/SAPTRX/EH_INFO
Expected Event
Parameter
/SAPTRX/EH_HDR
/SAPTRX/EH_EXPEV
Event Extension
Parameter
/SAPTRX/EH_HDR
EV Extension Table
Event Handler
TRKID Parameter
/SAPTRX/EH_HDR
/SAPTRX/EH_TRKID
Event Message
Header
/SAPTRX/EH_HDR
/SAPTRX/EH_EVMSG
/SAPTRX/EVM_HDR
If possible set up the TAANA table analysis data selection specify the EH_TYPE used in
the corresponding tracking scenario to limit the TAANA analysis result data.
If this is not possible due to the fact that the TAANA analysis View is required for multiple
tracking scenarios with different EH Types, the filter values are filtered in the coding by the
EH_TYPE which is used in the actual tracking scenario.
When using a Filter within SAP EM in combination with TAANA, specify the TAANA view
name and TAANA analysis variant in the Configured Field customizing for Selection Fields
Tab ODATA Service
Control and Info Parameter:
For this use case you must have a separate analysis variant for each parameter. This is
because the control and info parameters are stored as key values pairs in the DB
PARAM_NAME and PARAM_VALUE. It is not possible to request values for just one
parameter as all parameter values for all available parameters in the system are stored in
PARAM_VALUE.
10
11
Hint:
Create a variant for each Control and Info Parameter as the TAANA table and variant is
maintained in the corresponding configured field. TAANA cannot differentiate the parameters
within one variant as on the control and info data table all parameters are stored as
PARAM_NAME and PARAM_VALUE pairs.
Step 3.) TAANA Table Analysis
Start the table analysis. Specify the table/view to be analyzed and the variant created in the
previous step.
12
In the Data Selection the Parameter for which the values should be retrieved has to be
specified Parameter = ODT40_TO_EXEC_ORG_ID which is the PARAM_NAME on the
DB.
To limit the values for a certain scenario or EH Type specify the Event Handler Type as well
for the selection.
13
Run the analyses either online or schedule an analysis job which runs periodically. After the
first run of the table analysis the result can be found underneath the analyzed table/view
name and distinct columns can be viewed. These values can now be used when using the
Parameter ODT40_TO_EXEC_ORG_ID as a filter.
14
15
16
View Fields:
17
In the Data Selection the analysis result can be limited to the EH Type corresponding to the
tracking scenario.
Run the analyses either online or schedule an analysis job which runs periodically. After the
first run of the table analysis the result can be found underneath the analyzed table/view
name and distinct columns can be viewed. These values can now be used when using the
Tracking ID Code Set Parameter as a filter.
Table analysis result using EH Type in the Data Selection:
18
19
20
21
The Entity Type Name is derived User Profile OData ID and Selection Profile Item
Collection ID:
22
23
24
25
Table of Figures
Figure 1 Freight Order Visibility App Open Filter Control............................................................ 4
Figure 2 Freight Order Visibility App Filter Control....................................................................... 5
Figure 3 Table Join Conditions (Control Parameter)..................................................................... 11
Figure 4 View Fields (Control Parameter) ...................................................................................... 11
Figure 5 New TAANA Variant (Control Parameter) ....................................................................... 12
Figure 6 Start the table analysis (Control Parameter) .................................................................. 12
Figure 7 Table Analysis Parameter (Control Parameter) ............................................................. 13
Figure 8 Table Analysis Results (Control Parameter) .................................................................. 14
Figure 9 Control Parameter - Configured Field Customizing (General Data) ........................... 14
Figure 10 Control Parameter - Configured Field Customizing (OData Service) ....................... 14
Figure 11 Selection Profile - Add Configured Field (Control Parameter) ................................... 15
Figure 12 Table Join Conditions (EVM Header) ............................................................................ 16
Figure 13 View Fields (EVM Header) .............................................................................................. 17
Figure 14 New TAANA Variant (EVM Header) .............................................................................. 17
Figure 15 Start the table analysis (EVM Header) .......................................................................... 18
Figure 16 Table Analysis Parameter (EVM Header) ..................................................................... 18
Figure 17 Table Analysis Results (EVM Header) .......................................................................... 19
Figure 18 Table Analysis Results (EVM Header) .......................................................................... 19
Figure 19 EVM Header - Configured Field Customizing (General Data) ................................... 20
Figure 20 EVM Header - Configured Field Customizing (OData Service)................................. 20
Figure 21 Selection Profile - Add Configured Field (EVM Header)............................................. 21
Figure 22 Selection Profile Drill-down/Filter ................................................................................ 22
Figure 23 EM ODATA Metadata EntityType Filter ..................................................................... 22
Figure 24 EM ODATA Metadata EntitySet Filter ........................................................................ 23
Figure 25 ODATA Service Data call ............................................................................................. 24
26