cancel
Showing results for 
Search instead for 
Did you mean: 

Work worder closing

Former Member
0 Kudos

dear all

my user close work order without closing notification. i want that 1st user close notification then close work order. is it is possible.

Payal

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

it is not possible in standard. by user exit u can control it. 

http://www.se80.co.uk/sapfms/e/exit/exit_saplcoih_004.htm

Answers (2)

Answers (2)

jogeswararao_kavala
Active Contributor
0 Kudos

Hi Payal,

Here's the solution.

Write the following simple code in the include (ZXWO1U03) of user exit IWO10004.

Code


DATA:
lv_qmnum
TYPE viqmel-qmnum,
lv_phase
TYPE viqmel-phase.

SELECT SINGLE phase INTO lv_phase FROM viqmel WHERE qmnum = caufvd_imp-qmnum.

IF lv_phase <> '4'.
MESSAGE 'Please complete the Notification before completing Order' TYPE 'I'.
RAISE  completion_rejected.
ENDIF.

Knowing the code to be written for your need, using a user-exit is a very simple task.

This is done through Tcode SMOD  (Take help of ABAPer if needed).

I've tested this code. See the result I got, when I tried to complete an order before the notification completed.

Wish, you'd make use of this information.

Jogeswara Rao K


Former Member
0 Kudos

I hope, you are talking about Maintenance Order & Maintenance Notifications. Its not possible in standard to achieve that.

Through custom development, you can able to control. Refer the below exit & link.

IWO10004 Maintenance order: Customer check for order completion

http://wiki.scn.sap.com/wiki/display/ERPLO/PM-CS+User+Exits