<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic problem with changing settlement rule in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-changing-settlement-rule/m-p/2771707#M645856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a serviceorder when a user changes the wbs element in the additional data tab he or she also needs to change the settlement rule accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;further on their needs to be a check if the new wbs element is not TAFS and if the element is a wbs element (since also projects can be filled in here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to programm the check in user exit EXIT_SAPLCOIH_009&lt;/P&gt;&lt;P&gt;there I can find out the new value entered by the user and check if it's correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only can't get the new filled in values before save from the settlement rule&lt;/P&gt;&lt;P&gt;when I use&lt;/P&gt;&lt;P&gt;    ASSIGN ('(SAPLKOBS)dkobr') TO &amp;lt;dkobr&amp;gt;.&lt;/P&gt;&lt;P&gt;    CHECK &amp;lt;dkobr&amp;gt; IS ASSIGNED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the new values for the wbs element are not filled in dkobr when the user exit is running &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other way to find the new values for the settlement rule in memory in the user exit mentioned above ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or is there a bapi or function to adapt the settlement rule automaticaly ?&lt;/P&gt;&lt;P&gt;I have looked at K_ORDER_SETTLEMENT_RULE but I don't see where you can enter the WBS element in this function ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards &lt;/P&gt;&lt;P&gt;arthur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        A. de Smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 08:22:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-10T08:22:13Z</dc:date>
    <item>
      <title>problem with changing settlement rule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-changing-settlement-rule/m-p/2771707#M645856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a serviceorder when a user changes the wbs element in the additional data tab he or she also needs to change the settlement rule accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;further on their needs to be a check if the new wbs element is not TAFS and if the element is a wbs element (since also projects can be filled in here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to programm the check in user exit EXIT_SAPLCOIH_009&lt;/P&gt;&lt;P&gt;there I can find out the new value entered by the user and check if it's correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only can't get the new filled in values before save from the settlement rule&lt;/P&gt;&lt;P&gt;when I use&lt;/P&gt;&lt;P&gt;    ASSIGN ('(SAPLKOBS)dkobr') TO &amp;lt;dkobr&amp;gt;.&lt;/P&gt;&lt;P&gt;    CHECK &amp;lt;dkobr&amp;gt; IS ASSIGNED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the new values for the wbs element are not filled in dkobr when the user exit is running &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other way to find the new values for the settlement rule in memory in the user exit mentioned above ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or is there a bapi or function to adapt the settlement rule automaticaly ?&lt;/P&gt;&lt;P&gt;I have looked at K_ORDER_SETTLEMENT_RULE but I don't see where you can enter the WBS element in this function ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards &lt;/P&gt;&lt;P&gt;arthur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        A. de Smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 08:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-changing-settlement-rule/m-p/2771707#M645856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T08:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with changing settlement rule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-changing-settlement-rule/m-p/2771708#M645857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this by using the BADI - CO_SRULE_CHECK. ( Use Transaction SE18).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You implement this BADI - in the method DISTRIBUTION_RULE_CHECK you will be getting the Settlement lines. ( returned by COBRB - this table stores the settlement rules by object numbers - Object number of the Order is stored in AUFK).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above mentioned method - DISTRIBUTION_RULE_CHECK , you call a FM - READ_NOTIFICATION_BUFFER. This will return all the buffered data for Notification/Order. You can check the ncessary conditions and raise exception message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use these follwing FMs from your customer exit - EXIT_SAPLCOIH_010 for changing the Settlement rules ( if you want to go that way) - &lt;/P&gt;&lt;P&gt;K_SETTLEMENT_RULES_UPDATE&lt;/P&gt;&lt;P&gt;K_SETTLEMENT_RULE_COPY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or search with K_SETTLEMENT_RULE* to get the list of usefull FMs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-changing-settlement-rule/m-p/2771708#M645857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem with changing settlement rule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-changing-settlement-rule/m-p/2771709#M645858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi A. de Smidt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing similar problem like yours. Did you manage to get a solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs are much appretiated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 08:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-changing-settlement-rule/m-p/2771709#M645858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T08:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem with changing settlement rule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-changing-settlement-rule/m-p/2771710#M645859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems not to be possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 14:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-changing-settlement-rule/m-p/2771710#M645859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T14:47:29Z</dc:date>
    </item>
  </channel>
</rss>

