09-21-2010 11:27 PM
Hello, I am new to this forum so I apologize if the subject of my post has already been addressed...
I need to write an ABAP program to change the status of a notification to "NOCO" after the user saves the notification in IW21.
I know that while in IW21, the notification number is a temporary one, and a permanent one isn't assigned until the user saves new notification and the screen closes.
I think I can record the steps to complete the notification in IW22 via a BDC, but I need to capture the permanent notification number that was created on save and exit of IW21...
Any advice as to how I can retrieve the new notification number would be appreciated, or if another approach is best...
My thanks in advance.
Kim.
09-21-2010 11:38 PM
Hi,
When you save a notification, do you get a message indicating the number of the notification just created? If so, after the IW21 transaction is complete, in your program, use the appropriate system variable SY-MSGV1, SY-MSGV2, SY-MSGV3 or SY-MSGV4. One of them should contain the notification number.
Regards, Andy
09-21-2010 11:38 PM
Hi,
When you save a notification, do you get a message indicating the number of the notification just created? If so, after the IW21 transaction is complete, in your program, use the appropriate system variable SY-MSGV1, SY-MSGV2, SY-MSGV3 or SY-MSGV4. One of them should contain the notification number.
Regards, Andy
09-22-2010 7:35 PM
Yes, I do see a message at the bottom of the screen that shows the notification number... This is exactly what I need...
Thank you very much !!!
Kim.
09-21-2010 11:41 PM
You can make use of the customer exit EXIT_SAPLMCI1_001, it triggers after save.
And the enhancement name is MCI10001
Edited by: Keshav.T on Sep 22, 2010 4:12 AM
09-21-2010 11:41 PM
Hi Kim,
I think you can use BAPI_ALM_NOTIF_DATA_MODIFY and BAPI_ALM_NOTIF_SAVE.
Regards,
Caíque Escaler
09-22-2010 3:42 AM
Use this exit.
QQMA0014 - EXIT_SAPMIWO0_020. (Checks before saving a notification)
10-25-2022 4:08 PM
Be careful not to use a commit work in this user exit.. It can cause problems.
05-04-2011 8:03 AM
Hi,
please tell me how to change status in !W21 from OSNO to NOPR automatically , which Exit or Badi will be more suitable
Thanks & Regards
Dhananjay Mishra