Skip to Content

Work Order creation restriction without Notification

Hi,

Can anybody tell me how to restrict work order creation (for ex. IW31) without Notification?

Is there any configuration needs to be done? or user exists have to be used?

Regards,

PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Jan 11, 2016 at 02:30 PM

    Hello Consultant,

    According to me for your query only enhancement way is possible. Here user-exit can easily perform this. Put this simple code in the include ZXWOCU07 of user-exit IWO10009 and the job is done.

    IF caufvd_imp-auart = 'PM02'.

    IF sy-tcode = 'IW31' AND caufvd_imp-qmnum IS INITIAL.

    MESSAGE 'Order can not be created without an associated notification' TYPE 'E' DISPLAY LIKE 'I'.

    ENDIF.

    ENDIF.

    If someone creates an Order of PM02 without an associated Notification then the following error is thrown at the time of Order SAVE.

    The first line of code confines this feature to the Order type 'PM02'. You change this value as per your requirement. If you want to apply for all Order types, then remove the first line and the lase line. Take help of your ABAPer. It's 2min job for him.

    Good luck

    KJogeswaraRao


    Capture.JPG (19.3 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 12, 2016 at 06:59 AM

    Hi,

    If you do the configuration for Integrating Notification and Work Order, system will automatically create the Notification in IW31.

    Plant Maintenance and Customer Service - Maintenance and Service Processing - Maintenance and Service Orders - Functions and Settings for Order Types - Define Notification and Order Integration

    Other than that, you need to go with user exit as mentioned by Jogeswara

    Regards

    Terence

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 12, 2016 at 07:50 AM

    PM

    This could also be done via user-exit IWOC0003 firts checking that the user has pressed the Create Notification button (sy-ucomm = IHOM).

    PeteA

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Jogeswara Rao,

      The code you mentioned above will work during saving of work order? or on the initial screen of work order creation itself?

      We need the message to be populated on the initial screen of IW31, when the user enters the work order type (for ex. PM02), then system should through the message that " Order can not be created without associated Notification ".

      Can you please tell me when this message will be shown? Thank you.

      Regards,

      PM Consultant

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2016 at 04:24 PM

    An easy way to do this would be to restrict the use of IW31 and give users access to IW34, which only allows for creation of an order from an existing notification.

    Paul

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.