cancel
Showing results for 
Search instead for 
Did you mean: 

Non Std Requirements for Preventive Maintenance

Former Member
0 Kudos

Hi SAP Gurus ,

Hope most of you had a Good Easter Vacation.

We have the following requirements from our Client  , which seems to be Non -Std SAP Preventive Maintenance Requirements .

  

  • To get the operation description of Task List to description of Preventive Maintenance Order.

        (With Std SAP , the description in PM order comes from Maintenance Item description)

   

  • Search for Maintenance Orders based on  A Inspection , B Inspection , C inspection ,  D inspection & E Inspection.

       (Even If I create A inspection , B Inspection , C Inspection  etc as Mntce Activity Types , I can assigne only one Mntce Activity Types to

         a Maintenance Item of Maintenance Plan, which will be defaulted in preventive maintenance Order generated )

Some additional Info

1) Maintenance Plan description = Inspection for a DumpTruck A - E inspection

2) Maintenance Item description = Inspection for a DumpTruck A - E inspection

3) Task List description               = Inspection for a DumpTruck A - E inspection

3a) Task List  Operation 0010 Description =  A Inspection  ( asssigned to Mntce Package A)

3b) Task List  Operation 0020 Description =  B Inspection  ( asssigned to Mntce Package B)

3c) Task List  Operation 0030 Description =  C Inspection  ( asssigned to Mntce Package C)

3d) Task List  Operation 0040 Description =  D Inspection  ( asssigned to Mntce Package D)

3e) Task List  Operation 0050 Description =  E Inspection  ( asssigned to Mntce Package E)

Any help will be highy appriciated .

Regards

Frazer

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The order is generated out of the maintenance plan calls by the function module CO_IH_ORDER_GENER_1. The default behaviour is the order text is derived from the maintenance item text.


There are many options available to achieve this requirement, but the one I prefer is to use is an implicit enhancement at the end of the function module CO_IH_ORDER_GENER_1. I prefer this approach because the enhancement is close to where the SAP code sets the order text.


In the enhancement, read the operations of the order using CO_BO_OPR_OF_ORDER_GET.

Sort the operations by operation number and then read the first operation

Transfer the short text of the operation to the order header text

caufvd-ktext = afgvd-ltxa1.

Make the change to the order header known to the buffer tables by calling Perform Header_Update

Former Member
0 Kudos

Hi Andrew ,

Your suggested solution for "To get the operation description of Task List to description of Preventive Maintenance Order" is a good solution , which we intend to adpot .Thanks for the inputs .

Regards

Frazer

Former Member
0 Kudos

Hi SAP Gurus ,

Any inputs on the 2nd question

  • Search for Maintenance Orders based on  A Inspection , B Inspection , C inspection ,  D inspection & E Inspection.

      

(Even If I create A inspection , B Inspection , C Inspection  etc as Mntce Activity Types , I can assigne only one Mntce Activity Types to  a Maintenance Item of Maintenance Plan, which will be defaulted in preventive maintenance Order generated )

Some additional Info

1) Maintenance Plan description = Inspection for a DumpTruck A - E inspection

2) Maintenance Item description = Inspection for a DumpTruck A - E inspection

3) Task List description               = Inspection for a DumpTruck A - E inspection

3a) Task List  Operation 0010 Description =  A Inspection  ( asssigned to Mntce Package A)

3b) Task List  Operation 0020 Description =  B Inspection  ( asssigned to Mntce Package B)

3c) Task List  Operation 0030 Description =  C Inspection  ( asssigned to Mntce Package C)

3d) Task List  Operation 0040 Description =  D Inspection  ( asssigned to Mntce Package D)

3e) Task List  Operation 0050 Description =  E Inspection  ( asssigned to Mntce Package E)

Regards

Frazer

Former Member
0 Kudos

If you have defined Inspection A, Inspection B, etc., as operation text, then you can use IW37N or IW49N report to get the required orders.

Former Member
0 Kudos

Hi Maheswaran,

Yes , that is one way of searching via Work order Text .

We were also exploring , if we can update the Mntce Activity type automatically based on Mntce Package and Strategy .

May be a create a Z-Table , having Strategy , Mntce package and Mntce activity types combination  matained in the table. Every time a Preventive maintenance order is created , the program updates the Mntce Activity Type based on the Z-Table combination.

Regards

Frazer

Answers (1)

Answers (1)

peter_atkin
Active Contributor
0 Kudos

In addition to the above,

This can be done at order SAVE event too using user-exit IWO10009 or BADI WORKORDER_UPDATE.

PeteA