Skip to Content
author's profile photo Former Member
Former Member

IW21 IW22 EXIT_SAPMIWO0_020

search terms: IW21 IW22 EXIT_SAPMIWO0_020 zxqqmu20 smod QQMA0014

In IW21 i create PM notifications (surprise).

I use user-exit EXIT_SAPMIWO0_020 in order to check stuff on save/complete, with the idea that a message cannot be closed (might be saved, yet not closed) when stuff not ok.

Whenever stuff is not ok:

current status is I0072 (closed).

then i use STATUS_CHANGE_INTERN to change status back to I0070 (in progress), works fine.

and finally i raise exception exit_from_save...

...and then i end up in the message-editing screen again.

The latter itself is nice, i do wanna end up there, yet the button "Complete" (finish-flag-button) does not appear anymore. In order to close the message I would then need to:

Save the message (status still in progress),

re-open it with IW22, push button re-open,

re-open it with iw22, enter the required stuff, survive my exit, and then finally close the message.

This is functionally (no close without stuff) ok, yet - obviously - quite a hassle.

Can anybody tell me how that finish-flag keeps on appearing after exit_from_save.

Tried: using several other statuses, raising exit_from_save with message...

Edited by: Axel Minnemann on Dec 18, 2008 3:10 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 02:28 PM

    Hello Axel,

    you should use enhancement IWOC0002 "PM/SM notification: Check whether status change is allowed" instead of "QQMA0014". Raise the exception, when status change isn't allowed. Then the finish-flag should be there.

    I'm not 100% sure, but I think the usage of STATUS_CHANGE_INTERN in exit QQMA0014 isn't a good idea. As the user-exit is only for checking and not for updating data, i.e. after exiting the funtion with the exception, SAP won't re-read all the actual data, especially not the status, with the result, that the icons aren't set according to the actual status.

    Best regards

    Stephan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Stephan,

      seems to work, strange though, that QQMA0030 does not do the trick, would seem logical to mee that enahncements in the same range were triggered in the same Tcode.

      Thanks again, Axel

  • Posted on Nov 04, 2019 at 04:05 PM

    use FM QMEM_STATUS_OLD_NEW_READ

    Regards,

    Andrea

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.