Skip to Content

Automated Notification Updation using BAPI_ALM_NOTIF_DATA_MODIF

In one my latest project we had requirement where we need to process various functionality of  Notification in Mass.Data is to be uploaded via Excel sheet.

Excel sheet was processed SAP PI and data was passed on to ABAP program.

Operation Performed

1) Additon/Updation of Notification Header/Items/Activity/Task

2) Updation of System/User Status of Notification/Task

BAPI/FM used :

    1.    BAPI_ALM_NOTIF_GET_DETAIL / ALM_ME_NOTIFICATION_GET_DETAIL

    2.    BAPI_ALM_NOTIF_DATA_ADD

    3.    BAPI_ALM_NOTIF_DATA_MODIFY

    4.    BAPI_ALM_NOTIF_SAVE

    5.    BAPI_TRANSACTION_COMMIT

    6.    IQS0_ADD_HEADER_TASK

    7.    BAPI_SERVNOT_RELEASE_TASK

    8.    BAPI_SERVNOT_COMPELETE_TASK

    9.    STATUS_EXTERN_CHANGE

    10.  PM_PARAMETER_READ

BADI Implemented : NOTIF_EVENT_SAVE

While Implementing this Solution we came around no. of issues with BAPI  “BAPI_ALM_NOTIF_DATA_MODIFY” so i thought to share my experience with you. Validation which are getting triggered from Standard transaction are not captured in this BAPI it needs to handled explicitly.

  • BAPI_ALM_NOTIF_GET_DETAIL /  ALM_ME_NOTIFICATION_GET_DETAIL can be used  to fetch notification detail by providing notification number.
    • BAPI_ALM_NOTIF_GET_DETAIL gives all detail of header,items,activity, task and user status of notification (Deleted and Existing)
    • ALM_ME_NOTIFICATION_GET_DETAIL gives only existing header,items,activity,task and Userstatus. 
  • BAPI_ALM_NOTIF_DATA_MODIFY provide provision to update notification Header, items, activities, Task and User Status
    • BAPI doesnt validate   Code Group and  Code against Notification Type which is validated in Standard Transaction(handled Explicitly).
    • BAPI updates Task Processor and Type even if doesnt exists in SAP or is Invalid.(Handled explicitly using PM_PARAMETER_READ).
    • BAPI doesn’t validate primary check for date and time needs to be handled explicitly
    • BAPI doesn’t have provision to update Task Completion Date ( Use IQS0_ADD_HEADER_TASK to update completion date)
  • BAPI_ALM_NOTIF_SAVE needs to be called after any notification BAPI / FM to save changes.
  • BAPI_TRANSACTION_COMMIT is required to changes to take place.
  • IQS0_ADD_HEADER_TASK – Specifically used to add task completion details(Completion date/completed by)
  • BAPI_SERVNOT_RELEASE_TASK – BAPI to Release Task
  • BAPI_SERVNOT_COMPELETE_TASK – BAPI to Complete Task
  • STATUS_EXTERN_CHANGE – FM to change Notification user status/Task User status

Calculation of Breakdown Duration is not supported by BAPI and BADI needs to be implemented as in

1619709  – Notification breakdown duration not populated by BAPI call

https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3136313937303926

3 Comments
You must be Logged on to comment or reply to a post.
  • Mehul, I have pretty well done the same. Everything works fine,but I can’t seem to update the system status. Do you know what bapi/function module to use to update the system status of a notification?

    Your response is most welcome.

    Marianne

    • Hi Marianne,

      You can use “BAPI_ALM_NOTIF_CLOSE” to close notification.Kindly send me detail regarding what kind of status you want to update in notification.

      Mehul

  • Found the answer. I went through and used some of the above BAPI’s but they did not update the status. I found function module status_update and updated the notification with entries from jsto into jest. It worked fine. Thanks for your quick replied.

    Marianne