Académique Documents
Professionnel Documents
Culture Documents
Monitoring: An Overview
Topics
Introduction
System Overview
Demo
Introduction
System Overview
Demo
milestone monitoring
Analytical alert publishing Event
Event Infrastructure
Infrastructure
Process Efficiency
Analysis of efficiency of processes
Extraction &
Based on milestone monitoring Non-SAP Transformation
© SAP systems
Know How Network Call
Monitoring Event Creation and Filtering
How it all comes together
BAM
listener
Exposed
services
ECC CRM SRM …
Exposed
events
Purchase Sales Shopping
Business …
order order cart
objects
Local
events
Model
driven mySAP Business Suite
Event enabling
Propagate significant events beyond the application system boundaries (“chattiness”)
Scenario characteristics
BAM listener as passive component needs to be notified
Applications are communicative – raise events
© SAP Know How Network Call
Monitoring Event Creation and Filtering
From Local Events to Global Events in Three Steps
(1) Define event signature in ESR (like for any other service)
(2) Generate outbound proxy for the defined event
(3) Cast local events to the outbound proxy call
(configuration, without Touching Core Business)
Local
events
Change Status Alert
…
Documents Management Management
Enterprise
Enterprise
Service
Service Proxy
Repository
Repository Application
Generation
Application
Application System
System (Event
(Event Producer)
Producer) Release
Release 6.20-7.10
6.20-7.10
SAP NetWeaver
Alert:
Consistency Check: If the goods receipt quantity does not match to the ordered
quantity then an alert should be raised to the Dashboard.
Introduction
System Overview
Demo
NetWeaver 2004s
EP Guided Procedures
UWL
XI BI
CRM ERP
in our example
XI and Alert
Servier is on
one box
Introduction
System Overview
Demo
Introduction
System Overview
Demo
Step 1 - XI
Step 2 - CRM
Step 3 - ERP
Step 4 - Alert Server
Step 5 - Guided Procedures
Step 6 - BI
Step 7 – Visual Composer
STEP 1: XI Î Design & Configuration
Start
End
Asynch. Abstract MI Asynch. Abstract MI Synch. Abstract MI Asynch. Abstract MI Condition Transformation Asynch. Abstract MI
CRM_Sales_Order_Event ERP_Purchase_Order_ ERP_Purchase_Order_ ERP_Goods_Receipt_ Step Step (Message BAM_Alert_Event
(MT: CRM_Sales_Order Event Item_Event Event Mapping: (MT: BAM_Alert
DT: CRM_Sales_Order) (MT: (MT: (MT: AlertContext) DT: BAM_Alert)
ERP_Purchase_Order ERP_Purchase_Order ERP_Goods_Reciept
DT:
DT:
ERP_Purchase_Order) ERP_Purchase_Order)
DT: XI Process
ERP_Goods_Receipt)
Engine
Asynch. Outbound MI Asynch. Outbound MI Synch. Inbound MI Asynch. Outbound MI Asynch. Inbound MI
CRM_Sales_Order_Message ERP_Purchase_Order_ ERP_Purchase_Order_ ERP_Goods_Receipt_ BAM_Alert_Message
(MT: CRM_Sales_Order Message Item_Message Message (MT: BAM_Alert
DT: CRM_Sales_Order) (MT: (MT: (MT: DT: BAM_Alert)
ERP_Purchase_Order ERP_Purchase_Order ERP_Goods_Reciept XI Integration
DT: DT: DT:
ERP_Purchase_Order) ERP_Purchase_Order) ERP_Goods_Receipt) Engine
Sales Order Outbound Proxy Purchase Order Purchase Order Item Goods Receipt Alert Inbound Proxy
Outbound Proxy Inbound Proxy Outbound Proxy
Legend:
MI = Message Interface = Message and Interface Mapping = Message = Message / Process Flow
MT = Message Type
DT = Data Type
Step 1 - XI
Step 2 - CRM
Step 3 - ERP
Step 4 - Alert Server
Step 5 - Guided Procedures
Step 6 - BI
Step 7 – Visual Composer
STEP 2: CRM Î Event Enabling
Step 1 - XI
Step 2 - CRM
Step 3 - ERP
Step 4 - Alert Server
Step 5 - Guided Procedures
Step 6 - BI
Step 7 – Visual Composer
STEP 3: ERP Î PO Event Enabling I
Î Customizing - Transaction Code SPRO Î SAP Reference IMG Î Materials Management
Î Purchasing Î Messages Î Output Control Î Messages Types Î Defines Messages Types
for Purchaser Order Î Maintain Message Types for PO
method ZNW_II_ERP_PURCHASE_ORDER_ITEM~EXECUTE_SYNCHRONOUS.
data l_menge type ekpo-menge.
output = input.
select single matnr from ekpo into output-ERP_PURCHASE_ORDER-MATERIAL where EBELN = input-
ERP_PURCHASE_ORDER-ID and ebelp = '00010'.
select single menge from ekpo into l_menge where EBELN = input-ERP_PURCHASE_ORDER-ID and ebelp = '00010'.
output-ERP_PURCHASE_ORDER-ORDER_QUAN = l_menge.
select single werks from ekpo into output-ERP_PURCHASE_ORDER-PLANT where EBELN = input-
ERP_PURCHASE_ORDER-ID and ebelp = '00010'.
select single meins from ekpo into output-ERP_PURCHASE_ORDER-unit where EBELN = input-ERP_PURCHASE_ORDER-ID
and ebelp = '00010'.
endmethod.
© SAP Know How Network Call
STEP 3: ERP Î GR – Outbound Proxy
ÎTransaction Code
SE19
method IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE.
data l_mseg type mseg.
data l_ZNW_ERP_GOODS_RECEIPT type ZNW_ERP_GOODS_RECEIPT1.
loop at xmseg into l_mseg.
if l_mseg-LIFNR eq '0000005587'.
l_ZNW_ERP_GOODS_RECEIPT-ERP_GOODS_RECEIPT-id = l_mseg-MBLNR.
l_ZNW_ERP_GOODS_RECEIPT-ERP_GOODS_RECEIPT-PURCHASE_ORDER_ID = l_mseg-EBELN.
l_ZNW_ERP_GOODS_RECEIPT-ERP_GOODS_RECEIPT-GRQUANT = l_mseg-MENGE.
l_ZNW_ERP_GOODS_RECEIPT-ERP_GOODS_RECEIPT-unit = l_mseg-meins.
l_ZNW_ERP_GOODS_RECEIPT-ERP_GOODS_RECEIPT-STORAGE_LOCATION = l_mseg-LGORT.
l_ZNW_ERP_GOODS_RECEIPT-ERP_GOODS_RECEIPT-GRDATE = SY-DATUM.
l_ZNW_ERP_GOODS_RECEIPT-ERP_GOODS_RECEIPT-GRTIME = SY-UZEIT.
DATA l_r_goods_receipt TYPE REF TO ZNW_CO_ERP_GOODS_RECEIPT_MESSA.
DATA l_n_async_messaging TYPE REF TO if_wsprotocol_async_messaging.
try.
CREATE OBJECT l_r_goods_receipt.
* exporting logical port name =
* exceptions CX_AI_SYSTEM_FAULT =
* get asynchronous messaging protocol
l_n_async_messaging ?= l_r_goods_receipt->get_protocol(
if_wsprotocol=>async_messaging ).
l_n_async_messaging->set_serialization_context('MY_QUEUE_ID').
CALL METHOD l_r_goods_receipt->execute_asynchronous
EXPORTING
output = l_ZNW_ERP_GOODS_RECEIPT.
CATCH cx_ai_system_fault.
CATCH cx_ai_application_fault.
endtry.
endif.
exit.
endloop.
endmethod.
method IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE.
endmethod.
Step 1 - XI
Step 2 - CRM
Step 3 - ERP
Step 4 - Alert Server
Step 5 - Guided Procedures
Step 6 - BI
Step 7 – Visual Composer
STEP 4: Alert Server – Alert Category I
l_r_cnt = cl_swf_cnt_factory=>create( ). …
Call method l_r_cnt->element_set
CALL FUNCTION 'SALRT_CREATE_API'
EXPORTING EXPORTING
name = 'so' ip_category =
'BAM_ALERT_GR'
value = input-bam_alert-sales_date-object_id. IP_WAIT_ON_COMMIT = ''
ii_container = l_r_cnt
…
* IMPORTING
* ep_alert_Id = l_Id
tables
IT_RECIPIENTS =
EXCEPTIONS
ALERT_CATEGORY_UNKNOWN = 1
ALERT_NO_RECIPIENTS = 2
ALERT_ERROR_UNKNOWN = 3
DESTINATION_UNDEFINED = 4
COMMUNICATION_FAILURE = 5
SYSTEM_FAILURE = 6.
Step 1 - XI
Step 2 - CRM
Step 3 - ERP
Step 4 - Alert Server
Step 5 - Guided Procedures
Step 6 - BI
Step 7 – Visual Composer
STEP 5: Guided Procedures – Event Resolution Design
Time
Step 1 - XI
Step 2 - CRM
Step 3 - ERP
Step 4 - Alert Server
Step 5 - Guided Procedures
Step 6 - BI
Step 7 – Visual Composer
STEP 6: BI – Process Data Extraction XI Î BI
Step 1 - XI
Step 2 - CRM
Step 3 - ERP
Step 4 - Alert Server
Step 5 - Guided Procedures
Step 6 - BI
Step 7 – Visual Composer
STEP 7: VC – Process Efficiency Dashboard
Q&A
The information in this document is proprietary to SAP. No part of this document may be reproduced, copied, or transmitted in any form or for any purpose
without the express prior written permission of SAP AG.
This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This document contains only intended
strategies, developments, and functionalities of the SAP® product and is not intended to be binding upon SAP to any particular course of business, product
strategy, and/or development. Please note that this document is subject to change and may be changed by SAP at any time without notice.
SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics,
links, or other items contained within this material. This document is provided without a warranty of any kind, either express or implied, including but not limited
to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement.
SAP shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of
these materials. This limitation shall not apply in cases of intent or gross negligence.
The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of
hot links contained in these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web
pages.