Skip to Content

How to restrict Maintenance Orders Creation if the Notification is not released ?

Hi Experts,

Can anybody tell me how to restrict maintenance orders creation if the notification is not released (Put in Process) ? i.e., if the maintenance notification is not released then system should not allow to create a maintenance order for/from that notification.

Regards,

SAP EAM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 19 at 12:07 PM

    You could theoretically implement the user exit ZXWOCU07 in enhancement IWO10009 to forbid saving the order in case the header notification is not released.

    But consider this: The user can fill out the all of the service order information without linking it to any notification at all. This would still allow saving the order. Also (if the user DOES link it to a notification) the exit would only trigger on save causing the user to either abort and lose all entered information or to remove the notification link again and save it without a header notification.

    Depending on your use case it may be an option to change your requirement and allow the user to create service orders for unreleased notifications. Then you could easily prevent the order release by using enhancement IWO10002.

    -> Order can be prepared for unreleased notifications but not processed yet.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 19 at 10:26 AM

    Hi,

    Create a User Status and assign to Notification type.

    In the User Status, make the Business Transaction "Assign Order" - Forbidden

    Regards

    Terence

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Then you need to restrict IW31 access to users. There are many ways to restrict Order creation from Notification.

      From IW31, you can disable the configuration link to create Notification. Check whether you can remove the create Icon from that screen.

      Else you need to develop a custom enhancement upon creating the Work Order, which checks whether the Notification is released, else through an error.

      Regards

      Terence

  • Apr 20 at 06:12 AM

    Hello,

    You can restrict order assignment for an unreleased/outstanding notification through system status control in transaction BS22. You can set "Assign order" as forbidden against system status OSNO. (image below)

    Thanks,

    P.Manikandaraja

    Add comment
    10|10000 characters needed characters exceeded