2008 Mar 20 9:22 AM
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
2008 Mar 20 12:07 PM
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
2008 Mar 20 12:07 PM
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
2008 Mar 20 12:51 PM
Hi, Anil Japa
Thank's for your rapid reply.
I'll try it that FM.
Regards
2008 Mar 21 10:49 AM
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