Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
Mehul_Fatnani
Explorer

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=69765F6D6F...

3 Comments