09-08-2016 6:07 AM
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.
09-08-2016 6: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.
09-08-2016 6: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.
09-08-2016 10:26 AM
09-08-2016 3:07 PM
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?
09-08-2016 7:05 AM
hi ,
which status are you trying to change.
can you elaborate on this ..
09-08-2016 7:28 AM
i want to update the system status to TECO when the black-white flag is clicked.
09-08-2016 2:49 PM
since TECO is a system status unless the notification is created ,
i dont think you can set the status in QM01..