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

Badi works only in debugging mode,not in direct execution

Hi all,

I have a requirement to update system and user status in QM01 tcode. When the user enters the notification and clicks on black-white flag in QM01,the system and user status should get updated.

The same requirment was done in QM02 and its working fine,since we can fetch value from the tables.

But in QM01, we cannot do that because new notification is always captured.I am using BADI NOTIF_EVENT_POST.

In this badi ,i have written and logic.Its working fine in debugging mode.

But when i try to update the status without debugging,it is not working.I have used Commit work and wait.I have tried with FM in update task.Still it is not working.

Pls help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 08, 2016 at 05:51 AM

    I believe that your notification is not yet created when your BADI is called. It works works for you in change mode because the object is already there but while creation it is executed a bit too early.

    Add a comment
    10|10000 characters needed characters exceeded

    • You could try to use workflow events (transaction SWEQADM). When you click black-white flag event CLOSED is raised of BUS2078. You could attach your custom FM under that event - it is called after document is created hence you should not encounter the current error.

      Do you have any experience with workflow events?

  • Posted on Sep 08, 2016 at 06:05 AM

    hi ,

    which status are you trying to change.

    can you elaborate on this ..

    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.