cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete a Notification?

Former Member
0 Kudos

Hi all,

I have created a Notification using the following :

CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'

EXPORTING

notif_type = 'M4'

notifheader = notifheader

IMPORTING

notifheader_export = notifheader_export

TABLES

notitem = notitem

longtexts = longtexts

return = return.

CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'

EXPORTING

number = notifheader_export-notif_no

IMPORTING

notifheader = notifheader_export_2

TABLES

return = return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

IMPORTING

return = return.

I can check the notification created by IW23 transaction without problems (notifheader_export_2 = QMEL-QMNUM).

Now I need to delete this notification.

I'm trying with BAPI_ALM_NOTIF_DATA_DELETE but this bapi ends with an error : 'E IM 407 No changes made'.

Can any one please let me know the procedure to delete a notification?

We are current working on SAP R/3 Enterprise.

Thanks in Advance,

Lilian.

Accepted Solutions (0)

Answers (2)

Answers (2)

paul_meehan
Advisor
Advisor
0 Kudos

Hello,

BAPI_ALM_NOTIF_DATA_DELETE is used to delete items, causes, actions, etc from a notification, not delete the notification itself.

There is no function to delete a notification as such. Through normal transactions a notification is completed then a deletion indicator is set. Archiving is then used to remove the notification from the system.

Through the available BAPIs the best you can achieve is to use BAPI_ALM_NOTIF_CLOSE to mark the notifications as complete. Later set the deletion indicator through normal transactions.

-Paul

Former Member
0 Kudos

Try...

ALM_PM_NOTIFICATION_DELETE

Former Member
0 Kudos

Sorry, I tried with ALM_PM_NOTIFICATION_DELETE but the result was the same :

E IM 407 No changes made