<?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 Problems with BADI_ARTICLE_REF_RT... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638222#M1665490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in order to modify automatically the content of valuation class (MBEW-BKLAS) at save command of transactions MM41/42, we are using BADI_ARTICLE_REF_RT, methods REFERENZ_BEFORE-REFERENZ_AFTE.&lt;/P&gt;&lt;P&gt;The solution is ok but it has a problem: for a particular group of plants (MBEW-BWKEY), all the ones starting with 'IT', the BAdI is jumped and than the content of valuation class is not modified.&lt;/P&gt;&lt;P&gt;We cannot understand whey this happens: any idea?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 10:26:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-14T10:26:09Z</dc:date>
    <item>
      <title>Problems with BADI_ARTICLE_REF_RT...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638222#M1665490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in order to modify automatically the content of valuation class (MBEW-BKLAS) at save command of transactions MM41/42, we are using BADI_ARTICLE_REF_RT, methods REFERENZ_BEFORE-REFERENZ_AFTE.&lt;/P&gt;&lt;P&gt;The solution is ok but it has a problem: for a particular group of plants (MBEW-BWKEY), all the ones starting with 'IT', the BAdI is jumped and than the content of valuation class is not modified.&lt;/P&gt;&lt;P&gt;We cannot understand whey this happens: any idea?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 10:26:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638222#M1665490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-14T10:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with BADI_ARTICLE_REF_RT...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638223#M1665491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i understand your sceneraio but i am not able to gain what code you wrote in BADI impl, send ur code once to better understand it clearly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 10:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638223#M1665491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-14T10:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with BADI_ARTICLE_REF_RT...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638224#M1665492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well,&lt;/P&gt;&lt;P&gt;the code is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;SELECT &lt;SPAN class="L1S52"&gt;SINGLE&lt;/SPAN&gt; valfrom &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; l_bwkey&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; setleaf&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHERE&lt;/SPAN&gt; setname &lt;SPAN class="L1S52"&gt;EQ&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'ZPS_VALAREA'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;AND&lt;/SPAN&gt; valfrom &lt;SPAN class="L1S52"&gt;EQ&lt;/SPAN&gt; badi_mbew-bwkey.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;IF&lt;/SPAN&gt; sy-subrc &lt;SPAN class="L1S52"&gt;IS&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;INITIAL&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; badi_mbew-bklas = &lt;SPAN class="L1S33"&gt;'PS01'&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ELSE&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;SINGLE&lt;/SPAN&gt; bklas &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; badi_mbew-bklas&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; mbew&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHERE&lt;/SPAN&gt; matnr &lt;SPAN class="L1S52"&gt;EQ&lt;/SPAN&gt; badi_mbew-matnr&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;AND&lt;/SPAN&gt; bwkey &lt;SPAN class="L1S52"&gt;EQ&lt;/SPAN&gt; badi_mbew-bwkey&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;AND&lt;/SPAN&gt; bwtar &lt;SPAN class="L1S52"&gt;EQ&lt;/SPAN&gt; badi_mbew-bwtar.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDIF&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;In other words: for the plants contained in the set defined, the valuation class should be set with a costant value, for the others the valuation class should be set with the existing value (if found). Now, we have n plants, say 'XXX1', 'XXX2', ...,'IT01', 'IT02',..., 'ITNN', ...'XXXN': if I put a breakpoint in the methods, the transaction stops for every 'XXXY' plant (and the code work properly), but not for the plants starting with 'IT'. I'm wondering if, for these plants, I should use another BAdI or exit (and which one...).&lt;/SPAN&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 10:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638224#M1665492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-14T10:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with BADI_ARTICLE_REF_RT...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638225#M1665493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to write that for the plants contained in the set and not starting with 'IT', and for the plants not contanined in the set and not starting with 'IT' the code, of course, works correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 10:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638225#M1665493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-14T10:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with BADI_ARTICLE_REF_RT...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638226#M1665494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Can you check first the plants which starts are in final variale and also check if any validations are there for that plant.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurunath Kumar D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 11:24:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638226#M1665494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-14T11:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with BADI_ARTICLE_REF_RT...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638227#M1665495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope it's clear that the problem is: for certain plants ('ITXX'') the bapi appears to be skipped because, putting a break point in the method, the transaction doesn't stop at it (the contrary for the other plants).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 16:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-badi-article-ref-rt/m-p/8638227#M1665495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-14T16:09:32Z</dc:date>
    </item>
  </channel>
</rss>

