Skip to Content
0

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

Apr 19 at 10:19 AM

70

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Dominik Meier Apr 19 at 12:07 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Maria Terence Apr 19 at 10:26 AM
0

Hi,

Create a User Status and assign to Notification type.

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

Regards

Terence

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Maria,

It will still allows me to create the order directly in IW31. Order shall always be created from a released notification only.

Regards,

0

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

0
Manikandaraja P Apr 20 at 06:12 AM
0

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


9ljyk.png (42.1 kB)
Show 5 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Manikandaraja,

Thanks for info, its restricting creation of order if the notification is not released. However, it is restricting to all notification types/order types.

Is there anyway to restrict for selected order types? i.e., for some order types system should not allow creation of orders if the notification is not released, however, for other order types system should allow creation of orders even if they do not have corresponding notification or notification is not released.

Regards,

SAP Consultant

0

Hi,

In such case, Create Different User Status Profile and assign to Order types.

Regards

Terence

1

Hello,

As Terence has pointed out, if the restriction is based on notification types then User status will be the best solution.

If order creation restriction is only for certain order types, then combination of user status and an enhancement is required. example: M1 type should restrict creation of PM01 based on release but can allow PM02.

Thanks,

P.Manikandaraja

0
Former Member

Hi Manikandaraja,

There are already some user statuses assigned to notification types.

Instead of using combination of user status and enhancement, is there anyway to restrict through enhancement only considering restriction is based on order type only?

Regards,

SAP Consultant

0

Hi,

Check the reply made by Dominik Meier

Regards

Terence

0