Skip to Content
author's profile photo
Former Member

Changing Notification Status-After Saving in IW21

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 21, 2010 at 10: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Posted on Sep 21, 2010 at 10: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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 21, 2010 at 10:41 PM

    Hi Kim,

    I think you can use BAPI_ALM_NOTIF_DATA_MODIFY and BAPI_ALM_NOTIF_SAVE.

    Regards,

    Caíque Escaler

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 22, 2010 at 02:42 AM

    Use this exit.

    QQMA0014 - EXIT_SAPMIWO0_020. (Checks before saving a notification)

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 04, 2011 at 07: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

    Add comment
    10|10000 characters needed characters exceeded