Skip to Content
0

Requirement to make TECO mandatory before CLSD in Maintenance Order

Jan 17, 2017 at 07:13 AM

95

avatar image
Former Member

Team,

I have a requirement for Maintenance Order

At present, User can CLSD the Order, without doing TECO, by bypassing the User Status sometimes. Since I cannot make any changes to user status..Now, I have a requirement, that : If a Maintenance Order is not TECO, and if user tries to CLSD the Order, system should give me an error message : Maintenance Order is not TECO.

I want to implement this logic, and I want to know, in which exit, i can write this.

Can anyone help me in this. Please treat this as an urgent.

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

5 Answers

Varun Mohan Jan 17, 2017 at 04:52 PM
0

Hi Rahul,

This can be achieved using save user exit IWO10009.

In this exit you can write your logic and to restrict business complete if TECO not there.

Also try to control using user status by forbidding the business transaction.

Thanks

Varun M

Share
10 |10000 characters needed characters left characters exceeded
K Jogeswara Rao Jan 18, 2017 at 08:03 AM
0

Put the code below in the include ZXWOCU07 of user-exit IWO10009.

IF caufvd_imp-iphas = '6'.
DATA: v_stat TYPE char1.
 SELECT SINGLE iphas INTO v_stat FROM afih WHERE aufnr = caufvd_imp-aufnr.
 IF v_stat <> '3'.
 MESSAGE: 'You can not close the Order before it was Technically Completed.' TYPE 'E'.
 ENDIF.
ENDIF.

After this you'd find things are according to your requirement.

If you want to confine the requirement to a particular Order Type say 'PM03', then put the above code between these two lines.

IF causfvd_imp-auart = 'PM03'.
<above code here>
ENDIF.


Share
10 |10000 characters needed characters left characters exceeded
Peter Atkin Jan 18, 2017 at 09:53 AM
0

It could probably be done via user-statuses.

PeteA

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 01, 2017 at 07:21 AM
0

Thanks All for the valuable Replies : Varun, Pete Atkin, Jogeswara Sir!

I have achieved my requirement, through Configuration!

We can close this thread.

Share
10 |10000 characters needed characters left characters exceeded
Peter Atkin Mar 01, 2017 at 08:12 AM
0

Rahul Tekwani

Would you please inform this forum how you did this via configuration..

PeteA

Share
10 |10000 characters needed characters left characters exceeded