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.
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
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