<?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 Re: refresh using CS_BOM_EXPL_MAT_V2 2 times in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-using-cs-bom-expl-mat-v2-2-times/m-p/4322362#M1029994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Salvatore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on what you need to modify in the BOM, you could give a look at the following, really interesting note:&lt;/P&gt;&lt;P&gt; 488765 - 'Do it yourself EWB programming'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It comes with a sample program (Z_SIMPLE_EWB), that you can use as a reference for your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need further info, feel free to ask me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this could be of some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 21:49:47 GMT</pubDate>
    <dc:creator>Flavio</dc:creator>
    <dc:date>2013-08-22T21:49:47Z</dc:date>
    <item>
      <title>refresh using CS_BOM_EXPL_MAT_V2 2 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-using-cs-bom-expl-mat-v2-2-times/m-p/4322359#M1029991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;my problem is:&lt;/P&gt;&lt;P&gt;1. use fm CS_BOM_EXPL_MAT_V2 to get BOM data.&lt;/P&gt;&lt;P&gt;2. I modify the BOM using a Batch Input&lt;/P&gt;&lt;P&gt;3. use fm CS_BOM_EXPL_MAT_V2 to get the BOM updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the FM in the 3th step load the old data and not the updated BOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i clear the program cache?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 15:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-using-cs-bom-expl-mat-v2-2-times/m-p/4322359#M1029991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: refresh using CS_BOM_EXPL_MAT_V2 2 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-using-cs-bom-expl-mat-v2-2-times/m-p/4322360#M1029992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I'm answering to this threat even though it's 5 years old just in case somebody is looking out for the solution like I was a couple of weeks ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM &lt;STRONG&gt;CS_BOM_EXPL_MAT_V2&lt;/STRONG&gt; calls internally another FM called G&lt;STRONG&gt;ET_STPO&lt;/STRONG&gt;.&amp;nbsp; Inside &lt;STRONG&gt;GET_STPO &lt;/STRONG&gt;you will find structure &lt;STRONG&gt;STPOCTL &lt;/STRONG&gt;which will contain material's information for the previous run of &lt;STRONG&gt;CS_BOM_EXPL_MAT_V2&lt;/STRONG&gt;. Also, FM &lt;STRONG&gt;GET_STPO&lt;/STRONG&gt; calls FM &lt;STRONG&gt;GET_STATS&lt;/STRONG&gt; which will contain the structure &lt;STRONG&gt;STASCTL&lt;/STRONG&gt;; both these structures need to be cleared in order for the Function Module to retrieve fresh data from the database, instead of just returning the same data that was returned in the first run. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Function Group &lt;STRONG&gt;CSIO&lt;/STRONG&gt;, which contains all these Function Modules, there's a Function Module in charge of clearing these structures plus another internal tables which will contain the material's information, you need to call this FM right after your 1st iteration in order to clear the buffer. The Function Module is &lt;STRONG&gt;CSIO_REFRESH_BUFFER&lt;/STRONG&gt; or &lt;STRONG&gt;CS_IO_BOM_BUFFER_SMASH&lt;/STRONG&gt;, depending on your SAP implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps anyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Message was edited by: Matthew Billingham - changed formatting to make more readable&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 17:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-using-cs-bom-expl-mat-v2-2-times/m-p/4322360#M1029992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-22T17:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: refresh using CS_BOM_EXPL_MAT_V2 2 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-using-cs-bom-expl-mat-v2-2-times/m-p/4322361#M1029993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Salvatore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try putting a waite of 2 to 3 sec after the batch input and then try. This might work if you are looking at few BOMs in one execution and not thousads of them. Let us know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;WAIT UP TO &amp;lt;sec&amp;gt; SECONDS.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 20:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-using-cs-bom-expl-mat-v2-2-times/m-p/4322361#M1029993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-22T20:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: refresh using CS_BOM_EXPL_MAT_V2 2 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-using-cs-bom-expl-mat-v2-2-times/m-p/4322362#M1029994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Salvatore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on what you need to modify in the BOM, you could give a look at the following, really interesting note:&lt;/P&gt;&lt;P&gt; 488765 - 'Do it yourself EWB programming'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It comes with a sample program (Z_SIMPLE_EWB), that you can use as a reference for your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need further info, feel free to ask me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this could be of some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 21:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-using-cs-bom-expl-mat-v2-2-times/m-p/4322362#M1029994</guid>
      <dc:creator>Flavio</dc:creator>
      <dc:date>2013-08-22T21:49:47Z</dc:date>
    </item>
  </channel>
</rss>

