TECO Set Deletion Flag Into The Service PR

When I am going to TECO the order system is automatically set deletion flag into the service PR.  According to business process here deletion flag should not set even if order is in TECO status.   Why this is happening and what would be remedy of this problem?

By: Graham Johnston / Bill

This is standard functionality. If the work order is finished (TECO) how can you add more costs? My best suggestion would be to ABAP a fix to stop the TECO if there is an outstanding PR.

The requirement for a customer check at TECO is quite common, considering the standard SAP TECO process of setting a deletion flag for outstanding external operations with requisition and components (both non stock and stock).

Typically the user exit IW010004 is used to do this.  Checks are coded to prevent TECO if outstanding reservation components exist or where purchase materials or external processed operations exist  An outstanding purchase material or service in this case is determined if no PO exists for the requisition line items created via the work order.

If a PO has been raised then the deletion flag will not be set by SAP for the relevant items, the order can then be TECO’ed and the outstanding components receipted afterwards.  This obviously raises business process issues in that by TECOing you are saying complete, so do you really need the parts / services or is it the case that they have been fulfilled but the receipt process follows TECO?

Outstanding stock reservation items will always be deleted at TECO unless a customer check prevents it.

If you go down the customer check path, you should also consider how you will post process the orders once the material components are fulfilled or turned into purchase orders.  Considering using a user status highlighting a TECO attempt so that you know which orders are complete so it’s easier to track those through the list edits.

You should also consider at the time of attempting TECO you may want to complete the notifications attached to the work order and have their reference date and time stamped as the actual completion date.  Get the user exit to do this but not complete the work order (set NOCO on the notifications).

Pointers for what you need to look at for the check at TECO:

  • External processed operation:  External control key, status of EODL at the operation, PO exists flag. 
  • Reservation:  Final issue indicator, required quantity vs. withdrawn quantity. 
  • Purchase requisition:  PO exists and/or required quantity vs. received quantity.
You will also need to think about what messages are returned to the user indicating the cancellation of TECO.  You may want this as a warning or you may want to prevent TECO altogether. 

Also consider how the system will behave when you try and bulk TECO using IW38 etc.

Related:

Have a SAP PM Problems?
Do you have a SAP PM Question?

SAP Plant Maintenance Books
SAP PM Books  - Certification, Interview Questions and Configuration

SAP PM
SAP PM Tips and Plant Maintenance Discussion Forum

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.