Skip to Content
0

WCM- Prevent work order release when order does not have status EXEC

Feb 02, 2017 at 09:09 PM

69

avatar image
Former Member

Hi experts,

we have configured WCM- enhanced model / work permit.

How do I prevent users from releasing the work order, when the approvals are not complete and Status EXEC is not set at order level.

Seems Status REL and EXEC is independent of each other and so we were able to Set order status to REL and confirm time before necessary approvals are done.

Any inputs?

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

1 Answer

Best Answer
Sebastian Lenartowicz Mar 14, 2017 at 09:09 AM
1

Greetings Saravanan,

Consider in your process that the "Release" and "Release for Execution" are separate for a reason, the first showing that the Order is OK to be performed from a planning and cost standpoint, the latter showing that the order is being performed on the plant floor and OK from a safety perspective. I hope that your business requirement is valid.

I can think of two ways to do this:

Case 1) If you want to prevent release of a work order that does not have a specific status (EXEC in this case), then you should have your ABAPer develop a small check in the customer exit IWO10002 (FM EXIT_SAPLCOIH_002, include ZXWO1U02) for the presence of the status in the CAUFVD structure

Case 2) If you only need a reminder in the process, you may do the following using configuration only:

create a new User Status such as "ONYX" - "Order Not Yet Executed". Set that as a non-numbered, initial status.

When you create a Work Order, this status is active.

This prevents the Order from being released

You create the WCM documents and perform the WCA and tagging to get to the EXEC status.

The ONYX status is removed when EXEC is set and you may release the Order.

Note that this does not prevent a user from working around this by removing the ONYX status manually, so this is only good as a process reminder, not a process enforcement.


onyx1.png (8.1 kB)
onyx2.png (25.7 kB)
onyx3.png (8.6 kB)
onyx4.png (8.8 kB)
onyx4.png (8.8 kB)
onyx5.png (11.2 kB)
onyx6.png (7.8 kB)
Share
10 |10000 characters needed characters left characters exceeded