Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Settlement Rule

Former Member
0 Kudos
184

Hello Gurus,

I need of your help. Do I have to change the settlement rule of a Request for PM, when change the subject of associated costs. We use a user-exit that exists to change the settlement rule, but when there is already a settlement rule, not passing through user-exit. I thought to insert directly in the BD, but it is not the most correct.

Thank's in advanced.

Paulo

1 ACCEPTED SOLUTION

Former Member
0 Kudos
113

Hi,

You are right we do have a User Exit for Settlement Rules and we also have a BADI for settlement rules. The BADI definition is "WORKORDER_UPDATE". And when there are already settlement rules existing it's up to your requirement if you want to delete them or not. But it has to be deleted speaking in general. You can do this by using the FM, K_POSTING_RULES_DELETE.

Reward if helpful, for more queries get back to me.

Thanks,

Anil

3 REPLIES 3

Former Member
0 Kudos
114

Hi,

You are right we do have a User Exit for Settlement Rules and we also have a BADI for settlement rules. The BADI definition is "WORKORDER_UPDATE". And when there are already settlement rules existing it's up to your requirement if you want to delete them or not. But it has to be deleted speaking in general. You can do this by using the FM, K_POSTING_RULES_DELETE.

Reward if helpful, for more queries get back to me.

Thanks,

Anil

0 Kudos
113

Hi, Anil Japa

Thank's for your rapid reply.

I'll try it that FM.

Regards

0 Kudos
113

Hi Anil Japa

I tried the function and BADI, but I do not think it serves to my requirement. My requirement is that when I go to the IW32, if you have a single cost object the settlement rule is created automatically, without user intervention. If the object of cost is changed, the settlement rule also should be amended in order automatically.

Thank's in advanced.

Best Regards.

Paulo