1 2 3 Previous Next

SAP Event Management

34 Posts

Today we are going to discuss how to understand the context of SAP Event Management Solution.


Let’s start with an introduction to give some background. When meeting with key stakeholders or architects to discuss suggestions and solutions, we always tend to give facts and figures prior to delivering a SAP Event Management solution to clients. We always evaluate the solution to determine overall issues first, instead of trying to identify small process gaps or areas for optimization in the existing process. However, when we have a closer look at the small process issues and optimization potential, fixing the small process issues leads to a larger positive impact on the overall performance of supply chain management.


Let me give you an example of one scenario and allow you to visualize it to realize the positive differences you can make within your client business processes.


Routes Optimization


Take the example of single truck and route efficiency. Some routes might only be 100 miles long, but take more than 6 hours to reach the destination port. However, another truck might 150 miles and only take 2.5 hours to reach the destination port. Why do some trucks take more than 6 hours to travel a 100 miles journey? The route mapping from the warehouse to the destination reports that more hours are required for particular routes of just 100 miles and yet some of these routes take the trucks even more hours at certain seasonal times, or during times of traffic congestion.

The context of this example is to show that dynamic route calculation will help us to calculate the best route depending on traffic and weather conditions. The tracking of performance on a single truck or single route and then processed for efficiency can result in a positive impact on the supply chain management overall process.


When you ask this question to the trucking associations, you may get an answer that the 100 miles route contains many hills and perhaps three mountain terrains that must be crossed before the destination port can be reached. However, another route might have a smooth road and no significant obstacles, which results in a lower travel time even if the distance is 150 miles. Integrating this dynamic route calculation and understanding the seasonal changes for one particular event, perhaps seems challenging. But we always look at the big picture when designing a solution in supply chain management. Imagine that a client is shipping 50 containers in a particular vessel to meet the customer’s delivery. In this instance, shipping the product via different routes to reach the departure port would be quite a challenge. If some trucks arrived late at the port then the shipping vessel cannot wait for the missing containers. In this case the ideal situation would be that the container is left at the port and those containers are rescheduled to be loaded onto the next shipping vessel. The end result is that the customer requested delivery date could not be met, which then leads to additional costs for storage at the port, demurrage charges etc.


If most of the containers end up being left at port then how would this impact the port itself? The port would not be expecting so many additional containers, which then affects the overall port operation due to the delayed delivery of the containers in the first place. The ports have stringent rules that they cannot hold containers for more than two or three days before the departure of vessel. If the container is a “reefer” (refrigerated storage) then the cost might be double or triple to store the products securely, due to the additional requirements of electricity, air conditioning, mechanics, electricians to check regular temperatures and so on. These uncoordinated multitier supply chain processes and lack of supply chain process visibility results in problems that can be addressed by SAP Event Management. Dynamic route calculation can easily be addressed in SAP Business Rules Framework Plus, and any unexpected events can be reported in SAP Event Management that would then create an alert in SAP Universal Worklist and/or creation of a task in SAP Customer Relationship Management. This could then be combined with additional alerts being sent to the relevant team via SAP Event Management when for example the reefer container temperatures go down below thresholds etc.


GEO-Map Integration


4PL and 3PL transportation companies are heading towards overall implementation of satellite Geo-Map integration for vehicle tracking and real time traffic updates to truck drivers. Eliminating waste and overage in the transportation process can save trillions of units of fuel across the globe. However, these may appear as small process optimizations and not necessarily seen as a big impact to the overall process. Disorganized or unreported events lead to high transportation costs. We may see the worst traffic in big cities all over the world, even though the trucks drive routes that are reported as having low traffic, or perhaps they drive during off-peak hours. However most of the time the trucks are stuck in traffic and this then causes delays to transportation of goods to the destination. Unpredictable delays and costs of time spent in traffic accounts for 40 to 70 hours per year per driver and it would cost around $500 to $700 per year in lost time and wasted fuel. According to the Texas Transportation Institute, 2.88 billion gallons of fuel were wasted in 2012 in the US and the equivalent billions of dollars of wasted money in fuel could purchase one of the Fortune Top 100 companies every year!


SAP Event Management and SAP Visual Business GEO-Map Integration


SAP Visual Business Geo Integration with SAP Event Management brings a new milestone to the end-to-end shipment process. The integration makes it possible to track reported events (including the location of all stops made along a route), displayed visually on a geographical map, get the latest update of the shipment route, locate the container, or view the end-to-end route of the overall shipment.


In today’s world, the modern advancements in technology bring best practices and real-time visibility to supply chain management. The small process optimizations might seem very simple but actually have a great advantage and will return a larger positive impact in the long run.


Draw on existing knowledge and experience when arriving at a solution for clients and be prepared to think facts and figures to see what real differences we can make to their processes that will ultimately save them both time and money.

This article provides an overview of how the SAP Event Management product can help the discrete processing industry.


If you don’t know what this is, allow me to explain. Discrete industry products are closely integrated with our everyday life. Cars, furniture and electronics are classic examples. We need a car to commute from one place to another, furniture for our home, televisions for entertainment and smartphones for multiple applications in addition to communicating verbally. Discrete manufacturing may have a high volume, such as when making nuts and bolts – resulting in output ranging in the millions – or with low complexity or low volume of manufacturing such as when building aeroplanes or trains – with numbers ranging less than one thousand per year – but with high complexity. Discrete manufacturing includes types identified as make-to-stock, make-to-order, and assemble-to-order.



What is discrete manufacturing?


Discrete manufacturing is often characterized by the production of individual or separate units. Units can be produced in low volume with very high complexity or in high volumes with low complexity. Low volume and high complexity production results in the need for an extremely flexible manufacturing system that can improve quality and time-to-market speed whilst at the same time, cutting costs wherever possible or necessary. High volume and low complexity production results in high premiums on inventory controls, higher lead times and either reducing or limiting costs and waste of materials.


Source: Wikipedia


Example of high complexity Aeroplane Discrete Manufacturing process


Companies operating fleet of aircraft give specific technical specifications according to their country, travel route and requirements. A high-tech design team would review and produce the architectural and structural design and flow of the entire build and manufacturing process. Then they receive a sign-off from the airline company. To meet the customer demand and deliver on time, the aeroplane manufacturing company plans the assembly of the aircraft components and the necessary resources at their individual assembly lines. The production sites have to plan well in advance to receive these components and allocate resources on time so that manufacture can begin. Each manufacturing site might assemble a specific section such as the fuselage, cabin furnishing, nose, wings, tail etc. Once complete, major aircraft sections are then transported by truck or sea to another production site for final assembly and testing. The final assembly lines perform specific tasks such as joining fuselage together, adding the two wings, engine pylons, and fit the landing gear in the aircraft prior to the execution of systems and quality testing. Full cross-functional alignment is mandatory at each stage and excellent teamwork and management is required in each of the production assembly lines. The final operations such as engine installation, fuel and pressurisation tests, painting, engine run-up and flight-testing are then followed by aircraft acceptance and delivery.

Source: How is an aircraft built?

Did you know?


“Millions of components are required to make one airplane in the assembly line. If one tiny nut or bolt is not included in the production assembly line then it would halt the entire overall production.”


Discrete manufacturing process issues


Consider the following:


  • How can we tightly integrate each and every process of discrete manufacturing?
  • How is it possible to transport these millions of components, on time, to different production assembly lines?
  • How can we provide visibility of production assembly lines?
  • How would we proactively identify components that may have a low inventory?
  • How must we ensure that the aircraft sections pass the quality testing in each and every stage?
  • How can we notify systems testing failures to the multiple relevant teams?
  • How do we advise the inventory team about components that have not been RFID tagged?


These questions are just a few that when satisfied, are able to make the process more effective and notify the correct team well in advance. However, these integrations sometimes look more complex in nature due to the integration of multiple software components in an Enterprise Resource Planning system in order to achieve the result that the client expects. The discrete industry process involved with building aircraft is highly complex in nature because it requires zero tolerance in most of the processes and systems. This zero tolerance approach is not only specific to the manufacture of aircraft, it also applies to cars, smartphones, home electronics etc.

How does SAP Event Management help with discrete manufacturing?


The following items are examples of where SAP Event Management plays a key role in assisting with the discrete manufacturing process:


  • Monitoring shop floor production processes for make-to-stock, make-to-engineer and make-to-order scenarios, reducing exception errors by up to 30%
  • Monitor the end-to-end procurement visibility process including procure-to-pay, and reduce the cycle time by up to 30%, exception errors by up to 30% and ensure that the required inventory is maintained to save the cost of goods and services by up to 30%
  • Monitor the end-to-end order fulfillment process including order-to-cash and decrease the delivery lead-time by up to 30%, increase customer satisfaction by up to 30% and delivery before or on time. If any exceptions errors occur then ensure that an alert is sent to customers and the relevant teams well in advance
  • Monitor the end-to-end domestic and international road and sea shipment process. Track and trace the shipments that have departed, and raise an alert for exception errors before or on time so that they can be addressed.
  • Monitor the end-to-end RFID-enabled Returnable Transport Items (RTI) process and ensure integration with the SAP Auto-ID Infrastructure (SAP AII) product. Raise an alert for exception errors or trigger subsequent processes for commissioning RFID tags, decommissioning RFID tags, loading, unloading, goods issues, returns etc.
  • Monitor the end-to-end RFID outbound and inbound delivery process. Raise an alert for exception errors or trigger subsequent processes such as picking, packing, loading, goods receipt, goods issues etc.
  • Monitor the physical location of delivery trucks, vessels or containers using Visual Business Geo-Map integration




In conclusion, SAP Event Management helps you to:


  • Monitor the end-to-end discrete manufacturing process
  • Immediately notify exception errors during the process
  • Make decisions to adjust the discrete manufacturing process according to exceptions that may have occurred
  • Analyze the overall performance of the end-to-end discrete manufacturing process
  • Enhance and optimize the discrete manufacturing process based on historical performance

The food and beverage industry is by far the largest business in the world. Packaged food sales in the USA alone for the year 2011 amounted to $332 billion US dollars according to the New Zealand Trade & Enterprise government website that reports such statistics. Major food and beverage manufacturers such as Coca Cola, Pepsi, Nestle, Unilever, Fonterra, Danone, Kellogg’s, Tyson Foods, Arla Foods and Millers run their businesses on SAP software application systems.



Food processing - A Crucial and Complex process


Food processing and manufacturing is crucial but also highly complex in nature. Unlike a car or a computer, it is not possible to disassemble food and put back its components into their original states. Each food and beverage requires a separate set of processes, methods and techniques. Some processes feature straightforward manufacturing steps, whilst others have multiple phases to manufacture a single product. No matter how simple or complex, it is ultimately still a manufacturing process. If a single process fails, then sometimes the entire production is affected and can result in expensive losses. The real time visibility of plant operations and multiple levels included on the ‘Bill of Materials’ is another complex element of the food and beverage industry. These complex business scenarios may easily be monitored through SAP Event Management integrated with SAP Enterprise Resource Planning systems. The entire end-to-end production process can be monitored through SAP Event Management Production Malfunction Processing providing visibility into the different or key phases, for example; receipt of goods or failures of plant machines. You can see each of the production statuses from commencement of the process until the final products are received at the warehouse – all in SAP Event Management – and this also has the capability to highlight any unexpected events that occurred in the production process either when they happened, or if less serious, after the fact, for further investigation.






Food Regulatory Compliance


Another important point to consider is that in the USA, the food regulations are different in every state. It is of vital importance to ensure therefore that food standards are met without compromise according to the location of production. Even though the US Food and Drug Administration have a wide range of standards and rules that apply, automated systems help to maintain and adhere to these standards, prior to final preparation and shipping of the product. The integration of SAP Global Trade Services with SAP Event Management enabled precise and real-time visibility into the status of compliance and ensures that custom regulatory rules and requirements are met. The system allows events related to custom declarations for import and export to be tracked directly in SAP Event Management. If any event is unreported or unexpected, it becomes an exception, and SAP Event Management will trigger an alert and communicate to the export and import documentation team ensuring that they address the issue and remain compliant. Alerts can be delivered via a number of methods and commonly include email, SMS, fax or B2B notifications.




Food Distribution and Supply Chain Management


Another important factor in the food and beverage industry is that manufactured products must be stored and delivered to customers on or before a specific date that can also be impacted by demand. Food products have a shorter shelf life compared to car or computer products. Therefore, this requires more attention in the Supply Chain Management process. Products are manufactured on a scheduled date and are then stored securely in a warehouse. The real challenge arises in shipping the products across different international borders and at the same time meeting the customer demand on the requested date.

Shipping the product also has different options; from port to warehouse by truck, or from port to destination country by shipping vessel, sometimes including multiple stops along the route, and then delivered from the destination country port direct to the customer. Layers of logistics, for example lead logistics providers and consultants (known as 4PL) and logistics service providers (known as 3PL) play a major role in the ‘track and trace’ location services of the shipped product to the customer. We have to rely on 4PL and 3PL providing both regular and accurate information and updates to determine if the products have reached the customer on time. If there is no visibility into the location of the shipped product, we end up taking a reactive approach rather than a proactive approach when either unreported or unexpected scenarios happen to a shipment.


The SAP software products including SAP Transportation Management, SAP Event Management, SAP Customer Relationship Management, SAP Enterprise Resource Planning, and SAP Universal Worklist Configuration are able to provide true visibility into food distribution and supply chain management whilst closing any gaps in the entire process, and handling unreported or unexpected scenarios that may arise at any time during a shipment.



Why is SAP Event Management truly the king of track and trace?


There are a number of reasons that SAP Event Management excels:


  • Flexible event tracking for customer orders, from manufacturing to delivery.
  • Integrated SAP Event Management details in SAP Enterprise Resource Planning including sales order and delivery details
  • Integrated SAP Event Management details in SAP Transportation Management
  • Integrated SAP Global Trade Services Customs Management for export and import declarations
  • Event notification via web interface, mobile & technical devices such as RFID and hand-held scanners
  • Rules-based follow-up activity and alert triggering
  • Unexpected event alerting and communication via email, SMS, fax and B2B
  • SAP Business Warehouse Integration for advanced analytics and reporting

In everyday life we experience rules in our lives, for example; stop the car at the red traffic light signal, drop the children at school at 8AM, pay the credit card bill on or before the due date, etc. Violation of certain rules can lead to costly fines, interest payments, or worse. Similarly, every company has several thousands of business rules in various formats depending on their business process and model. For example; Customer A receives material A at the price of $2000 US dollars and their delivery time will be 1 week if the order quantity is >= 100 units. Customer B receives material B at the price of $3000 US dollars and their delivery time will be 2 weeks if the order quantity is >= 90 units. Customer C receives material C and their delivery time will be 3 weeks if the order quantity is >=80 units. The business rule violations in companies leads to fines for breaching service level agreements and thresholds, potential cancellation of orders etc. But in certain circumstances, violation of business rules can lead to losing customers permanently. These types of complex business rules can be easily handled through SAP Business Rule Framework Plus functionality.


What is SAP Business Rule Framework Plus (SAP BRF+)?


SAP Business Rule Framework Plus (BRF+) is a component of the SAP Netweaver platform and provides a comprehensive application programming interface (API) and user interface (UI) provided through SAP Web Dynpro ABAP technology. It allows us to define, edit and process business rules effectively. It provides functionality to model business rules in an intuitive way and to reuse these rules across different applications.

The image below provide a logical overview of a typical SAP Business Rule Framework Plus environment.

Image Source: SAP AG

Business Rule Workflow



The image below demonstrates the logical flow of steps involved in developing a business process rule:


Image Source: SAP AG


The logical steps can be described as follows:


  1. Create an application.
  2. Create a function.
  • Create and assign Context Data Object
  • Create and assign a Result Data Object
  • Assign Top Expression to the function

    3. Create and assign Ruleset(s).

    4. Create and assign Rules.

  • Create and assign Expressions
  • Create and assign Actions

    5. Activate the objects

    6. Simulate the function

    7. Integrate the SAP BRF+ function with SAP Event Management Function

Examples of scenarios where we can use SAP BRF+ in SAP Event Management


There are a number of areas where SAP Business Rules Framework Plus can be combined with SAP Event Management. Examples of this include but are not limited to:


  • Validation of sales orders, delivery and shipment data prior to triggering any expected and unexpected events.
  • Matching suitable sales organizations, customer groups, customers, material groups, materials and locations before triggering actual events.
  • Calculation of shipment delivery lead time based on different sales organizations, customer groups, customers, material groups, materials, locations and storage temperature.
  • Import and export customs declaration lead times subject to countries and any cross-border restrictions.
  • Customer specific estimated time of arrival (ETA) tolerances featuring deviations, for example; ±7 days.
  • Customer and material-specific estimated time of arrival (ETA) tolerances featuring deviations, for example; ±5 days.
  • Material specific estimate time of arrival (ETA) tolerances featuring deviations, for example; ±3 days.

How to include SAP BRF+ functions in SAP Event Management interface reflecting relevant or expected event scenarios from SAP Enterprise Central Component, SAP Transportation Management and/or SAP Global Trade Services?


The following logical steps outline the process required are as follows:


1. Create a custom function module for Expected Event Extractors or create SAP Event Management Relevance Functions (application object types) or SAP Event Management Relevance Functions (Event Types) Functional Module.

  • Include SAP Business Rules Framework Plus Application, Function ID and Function Name in the custom functional module.
  • Build the input parameters and statically call SAP BRF+ in the custom functional module.


2. Assign the custom functional module to the following:

  • Expected Event Extractors
  • Define Application Object Types
  • Define Event Types


Let me take you through a detailed scenario in a steel manufacturing company, where SAP BRF+ can be used within a complex business process.



Source: World Steel Org


The client has 100 material groups in their company. Each material group contains 1500 products. Each product has 3 to 5 variants, including length, height and width. Some customer specifications and requirements are different from the standard variant configurations.


In calculating the number of elements, we can see the following potential problem:


100 material groups x 1500 products = 150,000 products

150,000 products x 3 product variants = 450,000 approximate product options

450,000 product options x customer custom requirements = Exponential numbers


When a shipment is created to fulfill an order, business rules determine the subsequent expected events in SAP Event Management, for example; loading begin, loading end, proof of pickup and departure.

Business Rules


In the case of our steel manufacturing business, the following business rules have been defined:


  1. The loading begin event should happen for X, Y and Z material group within 1 week.
  2. The loading begin event should happen for A, B and C material group within 2 weeks.
  3. The loading begin event should happen for D, E and F material group within 3 weeks.
  4. The above rules do not apply for specific materials M, N and O and in this case, the loading begin event should occur within 5 days and trigger an email notification to the respective customer service representative.
  5. When customers G, H and I are placing an order, a high priority email notification alert to the customer Account Manager should be triggered and the loading begin event should occur within 3 days.

SAP BRF+ Decision Table


The following decision table can be used to easily see the business rules that should be applied to customers, material groups and materials based on the time of the loading begin event and whether an email alert should be triggered.




The above rules are easily accommodated in SAP BRF+ through the implementation of embedded functionality entitled Rules and Rulesets, Rule Flows, Decision Tables, Decision Trees, Formulas and Scorecards. It should be noted that this is not limited and SAP BRF+ can also accommodate more complex business rules as well.




Benefits of using SAP BRF+ in SAP Event Management


The following benefits are seen when using SAP BRF+ in SAP Event Management:


  • Complex business rules can be handled easily through the use of expressions, including functionality such as the Decision Table, Decision Tree, Formula and ABAP function calls.
  • It’s possible to trigger actions such as send email notifications, write a log entry and execute a workflow task from SAP BRF+ for unreported and unexpected events, if required.
  • Custom expressions and actions can be created to handle highly complex business rules for SAP Event Management.
  • A bulk activity user interface has been provided to allow user to simply perform multiple operations against a number of objects at the same time.
  • There is no hard coding required for business rules.
  • It is possible to edit the business rules without very much technical knowledge and activate the business rule again once the changes have been applied.
  • New event handlers for expected events are automatically determined based on modified business rules.
  • It’s possible to maintain business rules catering for expected and unexpected events through Microsoft Excel.



Performance considerations using SAP BRF+ in SAP Enterprise Resource Planning, SAP Transport Management and SAP Event Management



Most of the time when formulating a solution for customers, the business rule validation process occurs on the SAP Netweaver platform, but we perhaps do not consider system performance. With hundreds or thousands of business rules defined in SAP Event Management, even just a single second delay in certain business process event scenarios could incur the company a large expense.


Performance measurements are mostly dependent on hardware, memory, network and any other processes that are running on the system. SAP BRF+ rules are executed by calling a function via the Application Programming Interface (API). When calling a function, the appropriate class name and the class is loaded into the ABAP memory. The loading of this class takes less than 100KB and overall doesn’t have a large impact on the total memory usage. It’s better to design the environment with scalability in mind, ensuring that enough memory, CPU and system resources are provisioned, mitigating any potential performance impact once the SAP BRF+ and SAP Event Management system is fully up and running at peak usage.






Integrating SAP BRF+ into SAP Event Management brings many advantages in terms of defining complex business rules. However, whilst there is no standard SAP BRF+ function defined in SAP Event Management, a customized solution and integration can provide many benefits to the business.

We are probably all aware of hearing or reading the news and publications about how global trade has developed over the last fifty years. Portugal started the eastern trade in the 15th century and they slowly established a sea faring route to sell or exchange the products. The Portuguese had traveled through many countries and took many years to sell or exchange their products. Slowly, this form of trading in the current century has formed many billion-dollar companies selling their own unique products. Global trade is inevitable and every international trade organization would like to have a footprint in all of the countries, but countries have their own import and export models, rules and regulations to protect their people, land, resources and economy. In most situations, these implement restrictions on what, how, where and when trade can be performed.


If we look closely at global supply chain management, the global trade export and import processes are an integral part of it. We could not split global trade if a company is selling their products beyond their country boundaries or territories. If a company imports or exports their products, then they have to abide with the import and export laws and regulations of their own country in addition to the country that they are importing from or exporting to.


In today’s world, the biggest threats are nuclear, epidemic, and global terrorism. Countries are setting more stringent rules and regulations than two or three decades ago. The import and export of food products will have different rules and regulations than for example vehicle import and export. Pharmaceutical import and export rules and regulations are again different from food product import and export. A company has to declare to the export and import customs departments exactly what their goods or services are, or contain, prior to departure via country import or export.


SAP Global Trade Services provides one instance that may solve all the different countries import and export declaration issues during the global supply chain management transactions.


SAP Global Trade Services major components






The SAP Global Trade Services major components can be described as:


  • Compliance Management
  • Customs Management
  • Risk Management
  • Electronic Compliance Reporting (ECR)


Customs management in SAP GTS


The Customs Management component will assist you in generating the required export and import documentation for customs authorities. The trade documentation is required to accompany the products, or to be sent in advance in electronic form or as physical documents prior to the export or import occurring. Every country has their own automated application systems, for example in the USA there is the Automated Export System, in Germany the ATLAS system, and in New Zealand the TSW system. All these systems help trading companies to submit their import and export clearances electronically.



SAP Event Management comes with a predefined set of expected and unexpected events for SAP Global Trade Services import and export customs declaration integration

The image below provides an overview of the high level integration between a SAP Global Trade Services system and a SAP Event Management system:




Export and Import declaration documents


The declaration documents required for export and import can include:


  • Customs documents
  • Customs shipments
  • Presentation documents
  • Predeclarations
  • Inbound delivery documents etc


Customs export declaration: SAP Event Management expected and unexpected Events


The image below provides a diagrammatic overview of the customs export declaration process as processed within a SAP Global Trade Services system and a SAP Event Management system:




Customs import declaration: SAP Event Management expected and unexpected Events


The image below provides a diagrammatic overview of the customs import declaration process as processed within a SAP Global Trade Services system and a SAP Event Management system:




Two SAP Event Management BADI implementations for SAP GTS customs export and import declarations


The following are two examples of calls to SAP Event Management for implementing SAP Global Trade Services customs import and export declarations:/SAPSLL/EM_CUS_DOC_EXP - Call SAP Event Management for customs export declarations/SAPSLL/EM_CUS_DOC_IM - Call SAP Event Management for customs import declarations

Benefits of using SAP GTS Customs Management integration with SAP Event Management


The following benefits can be gained by integrating SAP Global Trade Services Customs Management with SAP Event Management:


  • Receive high visibility on customs operations and import and export customs documents
  • Trigger a proactive alert if the import and export customs documentation are not sent on time
  • Create manual or automated customs documentation before time
  • Avoid costly fines and demurrage charges
  • Submit electronic customs clearance with European, US, Asian, New Zealand and Australian customs authorities in a timely manner
  • Track and trace shipments and custom declaration requirements at departure or destination ports
  • Receive customs declaration status on shipments
  • Raise an alert when customs authorities do not provide clearance of the shipments within a specific time



Enabling SAP Event Management with SAP Global Trade Services provides high visibility of customs import and export declaration documents and provides preventive action enabling submission of manual or electronic documents without any delay.

This topic discusses the Unknown truth of SAP ERP, SAP Event Management and SAP Customer Relationship Management Trio Combination.


Before going into the topic let's see 'How Supply Chain Management is important in today’s end to end business process?'.


Supply chain is everywhere from running your home, in health services, hotel, retail, Wholesale, oil and gas company.


Some of you may remember an incident which took place during 2005 Katrina Hurricane disaster in New Orleans. Wal-mart, the world’s largest retailer shipped 2500 containers of disaster relief products quickly and efficiently to the devastated region in the first two and a half weeks. In fact they beat the federal emergency management agency and red cross on proven efficient supply chain. Walmart is considered to be the master of supply chain management and their efficient work during a natural disaster shows that Walmart is truly a master of supply chain management (Source: Total Supply Chain Management By Ron Basu, J. Nevan Wright).


Not only for Walmart, but, Supply Chain Management acts as a crucial part for many clients across the globe. Procuring and delivering to customers has become quite a challenge in each and every step in end to end business process cycle.


To understand the supply chain management in detail, I will take you through a scenario...


When we buy 12 cans of cola in a cardboard case from super market, the only thing we notice is the refreshing drink inside the can. But the end to end process involved, from manufacturing the cola till delivery to supermarket is lengthy process.


Bauxite ore is mined in Australia and then transferred in Trucks to nearby mill to produce powdery Alumina. Bulk Alumina is then transferred from mill to port in Truck and from there to the destination country in Ship. The molten aluminum is cast into ingots and shipped by boats or trucks to Philadelphia, US. The ingot goes into several processes to make coils. Thin coils are then shipped by truck to Can maker’s warehouse in Illinois State, US. Cans are manufactured and shipped to bottlers warehouse in pallets by truck. The cola company fill the cans and ships to supermarket by truck and cola finally reaches you.

Now we understand there are several sub-processes involved to make cola in can and deliver to supermarket. The key here is effective supply chain management which brings the products on time to port to reach destination country or to reach warehouse, to manufacture on planned time, to ship to warehouse and deliver to super market.

Now, let’s move on to understand how the trio of SAP ERP, SAP EM and SAP CRM will bring effective supply chain management.


When a supermarket orders 1000 cans of Cola, SAP ERP system raises sales order to process the order. All monitoring from order creation till receiving the payment is done by SAP EM system. SAP EM also captures expected and unexpected events. If any unexpected or unreported event occurs then SAP EM triggers a task in SAP CRM via ERMS and assigns it to relevant team for further processing.


The Sales Order is converted into production order for manufacturing. If there is any issue with production order then an unexpected event triggers to SAP EM and SAP EM will create a task in SAP CRM and assign it to production planner via ERMS to look at it. If there is no response, the issue will be escalated to the next level.


On successful completion of production, the purchasing team raises a PO to vendor to supply 1000 cans. When there is any delivery delay, short of qty, delivery time adjustment, SAP EM will trigger a task in CRM and assign it to customer service team via ERMS to notify customer about these changes.


Similarly if there is any shipment delay due to nature cause or cross border customs issues then SAP EM will trigger a task in CRM and assign it to shipment team or destination country customer service team.





In all of these scenarios, the issues have been addressed and resolved on time due to effective integration of SAP CRM with SAP EM and ERP. This proactive approach makes the business model transparent and deliver product on time without any delay. In case there is a delay, the customer would be happy if they are notified well in advance.


Everyone knows SAP ERP and SAP Event Management integration in today’s supply chain management, but integrating SAP Customer Relationship Management with SAP ERP and SAP EM are unusual but it gives a lot of benefit.


Some advantages as as follows:


  • Proactive customer service
  • Assign a task to relevant team
  • High visibility
  • Leverage to action immediately within SLA
  • Fill the gaps and tighten the integration of supply chain management
  • Mitigate the risk of losing customers
  • Monitor and evaluate your customer service


As of now, SAP Event Management has not been integrated with SAP Customer Relationship Management in Standard SAP. However, the customized solution gives you 100% transparent visibility on Sales and proactive service approach.

SAP has integrated SAP Fiori with SAP Event Management 9.2.  This is another major milestone in SAP Event Management and this tool is going to attract more customers who would like to view KPI’s with graphical visualization in real time through SAP Smart Business cockpits.  However, SAP hasn’t published the guide on “Available Features and Integration options” as of now in SAP OSS note 2093429 - Create an own Fiori app for Event Management 9.2



Release of SAP Fiori application with SAP Event Management 9.2, we can create our own FIORI application and make a new user experience (UX) across all devices (computers, smartphones, tablets etc.) to clients.



This is a good news but “What is SAP Fiori?”

SAP Fiori is the new user experience (UX) for SAP software. It applies modern design principles for a completely reimagined user experience. SAP Fiori UX represents a personalized, responsive and simple user experience across devices and deployment options.



Current SAP Fiori products for SAP Business Suite:



SAP Fiori for Request Approvals

SAP Fiori for SAP ERP

SAP Fiori for SAP CRM

SAP Fiori for SAP SRM

SAP Fiori for SAP SCM

SAP Fiori for SNC

SAP Fiori for MDG

And so on....



SAP FIORI product information link and check this brief video introduction of it.



I will update the features in this same article once SAP has officially released the information.

This Note is a few months old now but can't see it mentioned here at SCN...

Good info on TM/EM connectivity.





Some settings described in the documents do not comply with the current release.



Change History and Updates for the document - please implement the changes as described.

SAP TM 9.1 SP00 and higher with SAP Event Management 9.0 SP04 and higher - latest release v4.21 June 2014 (see attached PDF).

Guides for previous releases are available from Solution Manager.

These are some frequent issues which we come across while we do SAP Event Management Development and Quality system upgrade or patching.

Issue 1: Event Handlers are not created and updated in SAP Event Management post upgrade or patching

When you create a sales order, event handler doesn’t get created in SAP Event Management system.


To find out the root cause, I set a breakpoint in the beginning of functional module CALL FUNCTION 'GET_R3_EXTENSION_SWITCH' inside Sales order BADI /SAPTRX/SD_SALESORD -> Method IF_EX_BADI_SD_SALES~SAVE_DOCUMENT.




      i_structure_package = l_structure_package


      e_active            = l_extflag


After setting the breakpoint, when I create a new sales order in ECC system, I can check, what is the importing value returned by the parameter “l_extflag”.  In this case, I could see importing value returned by l_extflag is “blank”. The blank value shows that Business Transaction Event PI-EM is disabled in Transaction code BF11.




Business Transaction Event PI-EM is disabled in Transaction code BF11.




Enable Business Transaction Event PI-EM in Transaction code BF11.  To test if it works now, create a new sales order and it should create an event handler in SAP Event Management.




During patching / upgrade, Business Transaction Event PI-EM checkbox is being overwritten automatically to “Uncheck”.

Issue 2: Error “Target SAP system not found: Please check the customizing for the link and the customizing for the RFC connection”


SAP EM WebUI - We may want to check the existing sales orders, which have been created in the past. Here, I check if we can navigate to ECC Sales Order screen via Display link.  When I click on the sales order hyperlink, it throws an error Target SAP system not found: Please check the customizing for the link and the customizing for the RFC connection”.



First, check the configuration in IMG -> Event Management -> Event Messages, Status Queries, and Web Interface -> Web Interface -> Assign Link to Configured Field –> Assign Business Object Information / Assign Target Configured Field. In case you see any problem with configuration, fix it here. If all configuration looks fine, then we need to debug a little more from SAP EM WebUI.



Let’s move on to SAP EM WebUI to check why and where the issue occurs.  Following are the actual steps that I did in SAP EM WebUI to identify where the problem is.


  1. Executed Tcode SE24 and entered /SAPTRX/CL_EM_WDA_UI.
  2. Selected Method - GET_RFC_DESTINATION - returns name of rfc destination for link to SAP system.
  3. Set  External Breakpoint or Ctrl+Shift+F9 in the Method - GET_RFC_DESTINATION.
  4. Clicked Sales order hyperlink or display link in SAP EM WebUI.
  5. ABAP debugger screen appeared and stopped at CASE iv_log_sys_from.
  6. Executed F5 three times and double clicked on IV_LOG_SYS.
  7. I could see Application Object System ID was populated in WHERE app_system_id = iv_log_sys.
  8. It was pointing out to production system instead of patching upgrade system id.
  9. To track back from where this field was getting populated, I checked Standard Tab in debugging screen.
  10. In ABAP and Screen Stack block, double clicked the METHOD - CREATE_LINK_TO_SAP.
  11. The cursor shows at lv_rfc_dest = wd_assist->get_rfc_destination.
  12. I could see lv_log_sys was getting value from lv_aosys (line 3,564: lv_log_sys = lv_aosys).
  13. The lv_aosys value was coming from  line 3,489: lv_aosys = ls_hdr-ao_system.
  14. I checked  the line 3,486: READ TABLE lt_hdr INTO ls_hdr had called and filled the data of ao_system.
  15. Double clicked ls_hdr to check entry in ao_system. Hmm... The value of production id was coming from this field.
  16. The data is got from table /SAPTRX/EH_HDR-AO_SYSTEM (ls_hdr filled data from /saptrx/bapi_eh_disp_hdr).




When you perform validation, post system upgrade or patching work, do not use old completed event handlers for display link validation, because old (mean production) application system id resides in event handler header table /SAPTRX/EH_HDR-AO_SYSTEM.

Issue 3: “HTTP Error not found” in SAP EM WebDynpro-based UI navigation by using the "Display Details" button

When you highlight a line item and click “Display Details” button in SAP EM WebUI, it throws an error message as “HTTP 404 Not Found” in Internet Explorer browser (if your default browser is Chrome or Firefox, then it shows only a blank screen and no message).



Root cause:



  1. The issue is a change in the kernel implementation of method cl_http_utility=>fields_to_string() now causes the escape of the name part of the name/value pairs provided to the method.
  2. Correction is required in /SAPTRX/EM_WDA_UI COMPONENTCONTROLLER.





Implement this SAP OSS note 2002844 - Garbled URLs for the WebDynpro UI to fix the issue.



Kernel Patching / upgrade caused the issue.

Issue 4: Error - “Logon balancing error85: Message Server for _tsystem ‘XXX’ not found – check spelling and/or configuration”


When you click Sales order / Delivery / Shipment hyperlink in SAP EM WebUI, a login box appears (if you are not logged in already). Once you enter your user id and password credentials in popup screen, you get an error message immediately as “Logon balancing error85: Message Server for _tsystem ‘XXX’ not found – check spelling and/or configuration”.





  1. Check if your SAP GUI logon pad version is SAPGUI 720 or lower
  2. If yes, then you need to upgrade your user logon pad to SAPGUI 7.30 Patch 5 or upgrade SAPGUI logon pad depending on your SAP EM upgrade or patching versions.





We need to check which SAP GUI Logon pad is suitable for your SAP EM upgrade or patching.

Bonus Points: Post refresh activity in SAP EM


When there is a post refresh activity in SAP EM and Application Source System, we need to change SAP EM Logical system in the below configurations to show the correct system id's.


1. SAP Event Management :


  1. IMG -> Event Management -> Event Handlers and Event Handler Data -> Parameters -> Define Parameter Mapping -> Assign Profile to Mapping Area -> Application System Field -> Change correct system id (Dev or QA or Preproduction)



2. SAP ECC System:


  1. IMG -> Integration with Other mySAP.com Components -> Event Management Interface -> Define Application Interface -> Define Used Bus. Proc. Types, Appl. Obj. Types, and Evt Types -> Define Used Business Process Types -> Define Application Object Types -> General Data Tab -> Event Manager Field -> Change correct system id (Dev or QA or Preproduction)
  2. IMG -> Integration with Other mySAP.com Components -> Event Management Interface -> Define Application Interface -> Define Used Bus. Proc. Types, Appl. Obj. Types, and Evt Types -> Define Used Business Process Types Define Event Types -> General Data Tab -> Event Manager Field -> Change correct system id (Dev or QA or Preproduction)



If you have encountered any issues during SAP EM upgrade or patching, please list your problems and solutions in the comments section of this post.

In this post I have described how the process works to receive an inbound event message using ES, AIF and how to re-process the failed event messages.





FWO: Forwarding order

TO: Freight order / Transport order

FU: Freight unit

TU: Trailer unit


Using SAP EM Enterprise Service  TrackedProcessEventNotificationCreateRequest_In events are posted in EM. SAP PO/PI service interface and interface mapping required from PI/PO end.


SAP AIF supports for event message re-processing by changing the event details such as location, event code, tracking id and date /time. Authorisation based on event tracking ID is also promising in AIF but it requires custom development in AIF.

Security roles for business users are required to re-process the error event message in AIF. Using event message tracking id, standard EM authorisation is sufficient for accessing AIF monitoring tool.


AIF Monitoring Dashboard selection screen



AIF Event Message re-processing



Data structure space from the right bottom of the AIF dashboard support for event message reprocessing by changing the event details.



Structure value turns to yellow colour by default after changing the values.



Message mapping based on master/ transactional data in AIF is easy to maintain rather than building the complex message mapping in PI/PO or any other integration tools. PI Inbound message  queue can be deleted after the error as it may block the subsequent event processing.


Benefits of using AIF in EM

Event message re-processing

Tracking id mapping and custom business validations

Allowing the business user to re-process the event messages

The latest support package SP07 has been released for SAP EM 9.0 on 18th of July 2014. The support package contains - among some corrections - one new feature: Direct Search via URL. Details about this you can find here: http://scn.sap.com/docs/DOC-54696


Cheers, Daniel

SAP has recently released updates on OSS note 1976948 - Update for document "Integration of SAP TM and Event Management".   This OSS note gives us necessary information to configure integration of SAP TM and SAP EM.




SAP Transportation Management 9.1

SAP Event Management 9.0 with SP4 or higher


Go to above link and download it.  As per this document, most of the configurations are preconfigured in SAP TM and SAP EM if you are in these latest releases.

SAP Released SP06 on May 2nd 2014 for SAP EM 9.0.

Highlights include correcting issues and improving performance for OER related functionality. See below for the list of OSS notes included in the support pack.

AIE-OER Object Event Repository

  • 1963146 Queries may not return the original EPCIS message
  • 1964316 Performance issues when capturing an EPCIS message with a la
  • 1968226 Lock table overflow during EPCIS message processing
  • 1974869 Performance optimization for capturing of EPCIS messages
  • 1976112 Avoid call of method CHECK_REPOST_DATA
  • 1976153 Enable mass check for archived event handlers when processing
  • 1978145 Unnecessary call of FM /SAPTRX/FIND_EH_GUIDS when processing
  • 1979272 Query result in wrong order when ordered by ‘QUANTITY’
  • 1979566 Performance improvement for method CHECK_MAX_EVENT_COUNT

SCM-EM-MGR Event Manager

  • 1883931 Documentation missing for report /SAPTRX/EE_MONITOR_ADVANCED
  • 1960510 Performance optimization for capturing EPCIS messages

SCM-EM-MGR-CON Control Processing

  • 1972632 Unnecessary retrieval of event handler data when processing

SCM-EM-MGR-EVP Event Processing

  • 1957964 New parameter for activity TM_MAINTAIN_EXEC_INF
  • 1970392 Activity QUIT_EVM_PROCESSING effects processing of other event

SCM-EM-MGR-ISQ Information System and Queries

  • 1951993 Display of consolidated events not correct if one event message
  • 1958813 Performance enhancement for SimpleEventQuery
  • 1962186 Performance enhancement for SimpleEventQuery
  • 1971371 Split up of SELECT in method get_by_trk_ids
  • 1972756 Event message display is wrong if multiple event handlers ar
  • 1973329 Performance enhancement for SimpleEventQuery
  • 1974554 ‘By System’ indicator is not evaluated for hidden configured
  • 1975648 Columns of tab ‘Event Messages’ are not wrapped
  • 1976444 ‘Event Messages’ tab is getting collapsed after sending even
  • 1978096 Method FILTER_DATA performs unnecessary SELECTs

SAP Note 1976948 is where you will find the latest updates to the SAP TM EM Integration guide.


For SAP TM 9.1 SP00 and higher with SAP Event Management 9.0 SP04 and higher, the latest PDF version (v4.2 Feb2014), is directly available from this SAP Note.  This version, and all future versions, will be available in Solution Manager by means of the regular quarterly update.


  • Integration guides for all previous SAP TM releases are available from Solution Manager.


http://sapcampaigns.de/suiteonhana/   --> Check the video in the bottom left corner

SAP Smart Business for Event Management




SAP Smart Business for event management is a collection providing an overview of the most important key performance indicators for a transportation manager. It allows the transportation manager to monitor the operational transportation business based on the latest reported events including the following:

  • delays of deliveries in transit or those that arrived at customer sites with an overdue proof of delivery (POD)
  • average cycle times (time between the actual event dates and times of: when picking begins, PICKBEG, and the last event POD)
  • reporting completeness and compliance – what percentage of transports were reported and how accurate were those reports?

The transportation manager can use this ability to monitor the business to track deliveries and get insights into the business. This helps the transportation manager to spot as soon as possible anything that might need to be investigated more closely, and if necessary to correct any small issues in the operational business before they escalate.


Filter Blog

By author: By date:
By tag: