cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Settlement rule assignment in maintenance order change

Former Member
0 Kudos

Hello everyone;

I have a problem on settlement rule assignment on change of the maintenance order. I'll write down the steps I do and will tell the problem on the corresponding step.

1- Creating a maintenance order (IW31) with an equipment number 40000000. 40000000's cost center is 444444444.

2- Make a settlement rule by clicking the "Settlement rule" button with "DEFAULT", so it will get the cost center from the equipment's master data.

3- Release and save.

4- Changing the equipment number on the maintenance order (IW32), entering 50000000 and its cost center in the master data is 555555555.

5- Maintenance order is changed but settlement rule is not changed. It should have 555555555 cost center for both lines for FUL and PER. But it still got 44444444 as a cost center for both lines. Still got the old value.

How can I let maintenance order's settlement rule to update itself everytime that it changes? Is there any automatic settlement rule update?

Thank you.

Talha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

I have figured it out by making changes on this user exit:

-ZXWO1U05

-Using these BADI's to delete and create new settlement rules:

    

     - K_POSTING_RULES_DELETE

     - K_ORDER_SRULE_ADD

In case anyone needs.

Thank you

Answers (2)

Answers (2)

Former Member
0 Kudos

Generally, Settlement rule will be defined at the time of Release / TECO. So, by the time you release / complete the order, your equipment will not be changed there after.

You can control that via authorization by giving only to the authorized person(s) who do Release / TECO of the order. By this, you can avoid overwriting the settlement rule.

Still, after Release of PM order, system will allow you to change the technical object. But by the time you release the order, all the details will be mentioned appropriately.

peter_atkin
Active Contributor
0 Kudos

Talha

There is no automatic process to change the settlement rules once created.

In the past we have handled this with a development at SAVE which compares the current cost centre with the current settlement rule(s).

A message is then issued informing the user of the inconsistency. You may also want to reject the SAVE.

Another option is to write a program to search all REL/TECO orders for settlement rule inconsistencies.

PeteA

Former Member
0 Kudos

Thank you for the answer Pete.

Lets say i control this on the SAVE and wont let it go further before defining the right cost center on settlement rule. Is there any button or way for a SAP-USER to define settlement rule again with default? Because SAP-USER's may not have an authorization to know cost center of the equipment for to change it manually.

When the PM order is created, settlement rule can be assigned with an option of "DEFAULT" as in the picture I attach. However, on change of the PM order, I couldnt find it, only thing that I can do is to enter into the settlement rule with the same button and change the cost center manually. But as i told, SAP-USERS cannot do this. I need to reassign the settlement rule with simple button or something.

Thank you