cancel
Showing results for 
Search instead for 
Did you mean: 

Work Order creation restriction without Notification

syed_yousuf
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

peter_atkin
Active Contributor
0 Kudos

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

syed_yousuf
Participant
0 Kudos

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

MTerence
Active Contributor
0 Kudos

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

jogeswararao_kavala
Active Contributor
0 Kudos

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