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

View Entire Topic
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