cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot implement logic, as Notification is going to locked status when order is in edit mode IW32.

Former Member
0 Kudos

Hi Gurus,

I am functional guy, My Abaper is saying that he,While implementing the below thread is getting notification locked status , hence cannot close the notification:

https://archive.sap.com/discussions/thread/3816724

I am unable to understand why this situation has arised, can any one guide me so that i can make him implement this logic provided successfully..

Regards:

Manu

Accepted Solutions (1)

Accepted Solutions (1)

peter_atkin
Active Contributor

Manu,

When a user opens an object (e.g. a PM/CS Order), then the system "locks" that order to stop anyone else changing the order at the same time. This ensures that the data in the database is kept consistent.

If a Notification is linked to that PM/CS Order, then this is also locked.

So the problem you are finding is that you are trying to update the order and notification in the same session without ever going into the notification.

One option is to update the notification after the order update is complete (and locks are therefore removed). THis could be done in a number of ways, for example:

  • Batch program
  • PERFORM XYZ ON COMMIT in user-exit IWO10009
  • Try mimicing how SAP closes the notification whilst in IW32

.

PeteA

Answers (2)

Answers (2)

peter_atkin
Active Contributor
0 Kudos

You could try it.. It depends on when IWO10026 is triggered.

You can also look at BADI WORKORDER_UPDATE via SE18.

PeteA

Former Member
0 Kudos

Hi sir,

Thank you for the response,

i will try to implement that, i have a small query, as u said in the old thread which i mentioned, we can use user exit IWO10026, so after the order is saved we can implement this user exit to validate NCMP, and if "yes" then close the notification using FM.

Is my understanding correct?