<?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 program cache in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324284#M1030430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would check if the importing parameter MMORY of the FM has any effect (values could be 1 and 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2008 08:56:48 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2008-08-25T08:56:48Z</dc:date>
    <item>
      <title>Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324277#M1030423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i need to refresh program cache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is:&lt;/P&gt;&lt;P&gt;- run the program&lt;/P&gt;&lt;P&gt;- call a FM&lt;/P&gt;&lt;P&gt;- change data&lt;/P&gt;&lt;P&gt;- call the FM (again) to refresh data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fm gets the old data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324277#M1030423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T08:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324278#M1030424</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;which FM do you call? I would check in the function group of that FM, if there is any other FM in that group which clears all buffered data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324278#M1030424</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-08-25T08:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324279#M1030425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop the internal table pass the values to the parameters is one option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324279#M1030425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T08:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324280#M1030426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it a Custom Function, if so Did you clear the Global data in the Function module..if not use CLEAR and REFRESH the global data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324280#M1030426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324281#M1030427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using FM CS_BOM_EXPL_MAT_V2 (get BOM data).&lt;/P&gt;&lt;P&gt;take a look to source code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FORM bom_carica_modello USING par_matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                              &lt;STRONG&gt;par_stlal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                              &lt;STRONG&gt;par_stlan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                              &lt;STRONG&gt;par_werks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                     &lt;STRONG&gt;CHANGING par_tab LIKE it_tab[]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                              &lt;STRONG&gt;par_wa  LIKE wa_tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;DATA: it_bom_item OCCURS 0 WITH HEADER LINE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;REFRESH it_bom_item.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;DATA: BEGIN OF it_diba OCCURS 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;INCLUDE STRUCTURE stpox.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;DATA: END   OF it_diba.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;REFRESH it_diba.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'*&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;datuv                       = p_datuv&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;    capid                       = 'PP01'*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;     &lt;STRONG&gt;mehrs                       = ' '&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;mtnrv                       = par_matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;stlal                       = par_stlal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;stlan                       = par_stlan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;werks                       = par_werks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;stb                         = it_diba&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  MATCAT                      =*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   &lt;STRONG&gt;EXCEPTIONS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;alt_not_found               = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;call_invalid                = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;material_not_found          = 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;missing_authorization       = 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;no_bom_found                = 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;no_plant_data               = 6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;no_suitable_bom_found       = 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;conversion_error            = 8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;OTHERS                      = 9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;MESSAGE ID 'ZM' TYPE 'S' NUMBER 099&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;WITH 'Alternativa richiesta come modello non valida'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDFORM.                    " carica_modello&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Salvatore Volpe on Aug 25, 2008 10:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324281#M1030427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T08:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324282#M1030428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm changing the BOM via batch input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324282#M1030428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324283#M1030429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code you posted is fine. and how are you telling that you are getting the olddata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'*&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;datuv = p_datuv&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;capid = 'PP01'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;mehrs = ' '&lt;/P&gt;&lt;P&gt;mtnrv = par_matnr&lt;/P&gt;&lt;P&gt;stlal = par_stlal&lt;/P&gt;&lt;P&gt;stlan = par_stlan&lt;/P&gt;&lt;P&gt;werks = par_werks&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;stb = it_diba&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the population you are not passing the it_diba to any where .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the use of this&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;CHANGING par_tab LIKE it_tab[]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;par_wa LIKE wa_tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why are you using par_tab , i mean what purose you are using the parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324283#M1030429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T08:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324284#M1030430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would check if the importing parameter MMORY of the FM has any effect (values could be 1 and 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324284#M1030430</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-08-25T08:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324285#M1030431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed that parameters... but any effects...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 09:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324285#M1030431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T09:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh program cache</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324286#M1030432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the full source code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bom_carica_modello USING par_matnr&lt;/P&gt;&lt;P&gt;                              par_stlal&lt;/P&gt;&lt;P&gt;                              par_stlan&lt;/P&gt;&lt;P&gt;                              par_werks&lt;/P&gt;&lt;P&gt;                     CHANGING par_tab LIKE it_tab[]&lt;/P&gt;&lt;P&gt;                              par_wa  LIKE wa_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: it_bom_item OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  REFRESH it_bom_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF it_diba OCCURS 0.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE stpox.&lt;/P&gt;&lt;P&gt;  DATA: END   OF it_diba.&lt;/P&gt;&lt;P&gt;  REFRESH it_diba.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     datuv                       = p_datuv&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    capid                       = 'PP01'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     mehrs                       = ' '&lt;/P&gt;&lt;P&gt;     mtnrv                       = par_matnr&lt;/P&gt;&lt;P&gt;     stlal                       = par_stlal&lt;/P&gt;&lt;P&gt;     stlan                       = par_stlan&lt;/P&gt;&lt;P&gt;     werks                       = par_werks&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      stb                         = it_diba&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATCAT                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     alt_not_found               = 1&lt;/P&gt;&lt;P&gt;     call_invalid                = 2&lt;/P&gt;&lt;P&gt;     material_not_found          = 3&lt;/P&gt;&lt;P&gt;     missing_authorization       = 4&lt;/P&gt;&lt;P&gt;     no_bom_found                = 5&lt;/P&gt;&lt;P&gt;     no_plant_data               = 6&lt;/P&gt;&lt;P&gt;     no_suitable_bom_found       = 7&lt;/P&gt;&lt;P&gt;     conversion_error            = 8&lt;/P&gt;&lt;P&gt;     OTHERS                      = 9&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID 'ZM' TYPE 'S' NUMBER 099&lt;/P&gt;&lt;P&gt;          WITH 'Alternativa richiesta come modello non valida'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH par_tab.&lt;/P&gt;&lt;P&gt;  CLEAR par_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_diba.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF it_diba-datub GE p_datub.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Cancella le posizioni scadute&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CLEAR: par_wa.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING it_diba TO par_wa.&lt;/P&gt;&lt;P&gt;      MOVE it_diba-meins TO par_wa-meins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Conversione UM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'CONVERSION_EXIT_RUNIT_OUTPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          input          = it_diba-meins&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        LANGUAGE       = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;          output         = par_wa-meins.&lt;/P&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND par_wa TO par_tab.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " carica_modello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also added a wait command, a commit work... but the problem still the same...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 09:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-program-cache/m-p/4324286#M1030432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T09:16:16Z</dc:date>
    </item>
  </channel>
</rss>

