Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 14, 2017 at 09:09 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded