Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
Showing results for 
Search instead for 
Did you mean: 
Product and Topic Expert
Product and Topic Expert
0 Kudos

Here is the easiest and quicker way of implementing the changes.


We know that Notification linked to Work Order are display at Work Order level. Any notification populated under work order collections are  display only -  That’s what hyperlink for notification on work order tab points to.  Idea is to  populate all notifications into notification collection under main object which are displayed in notification tab based on assignment type configuration for notification type . By default notifications on notification tab are enabled for edit and changes are posted to SAP.  So if we populate all the notifications which are assigned to user and notification linked to Workorder which might  have different work center into Notifications collections  under main object, we can reuse existing  OOB functionality for Notification.  The only change you need to make is to change reference of hyperlink from notification on work order to reference Notification collection on main object on Agentry side rest will be SAP changes.


SAP Changes :-


  1. Change Work Order Class Handler “/SYCLO/CL_PM_WORKORDER2_DO”  method me->get_work_order_notification in GET method.

   a. Comment out code to return notifications details ( items/causes/activities) in work order GET method.  To improve performance and avoid redudant data.

   b. Either create Z table to store Notifications linked to Work order with user guid as a key  and refresh it during every fetch or  retrieve work order
download to Mobile users from /SYCLO/MDW02 table from notification fetch directly and look up for notifications linked to work order.


                                                 ET_NOTIF_HEADER   - Return only header data





   2. Modify Notification class handler “/SYCLO/CL_PM_NOTIFICATION2_DO”  method :- get_assignment, once all assigned notification are  retrieved and before main SQL statement is executed. Introduce logic to retrieve notification linked to work order from Z table or /SYCLO/MDW02 -  Populate main internal table for notification. Once main internal table is populated existing logic will populate notification details.

Agentry Changes:-


  1. Change reference of hyperlink for notification on work order to point to notification collections.

Once notification are populated under main objects. Any changes made to notifications are updated in SAP.

1 Comment