<?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: Data Refresh problem with BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608998#M25068</link>
    <description>&lt;P&gt;Could you either Close the Question OR Explain what your solution was if it would be useful to others? Thanks&lt;/P&gt;
  &lt;P&gt;Nic T.&lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2018 21:23:27 GMT</pubDate>
    <dc:creator>NTeunckens</dc:creator>
    <dc:date>2018-05-30T21:23:27Z</dc:date>
    <item>
      <title>Data Refresh problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608993#M25063</link>
      <description>&lt;P&gt;Hello Experts, &lt;/P&gt;
  &lt;P&gt; I am running the BAPI BAPI_PO_CREATE1 multiple times to create multiple PO's. But the material number is not getting updated properly and hence causing wrong material number in PO.&lt;/P&gt;
  &lt;P&gt; Suppose a PO got created with materials with four line items. &lt;/P&gt;
  &lt;P&gt;Material Quantity&lt;/P&gt;
  &lt;P&gt; 100001 100&lt;/P&gt;
  &lt;P&gt; 100001 150&lt;/P&gt;
  &lt;P&gt; 100001 200&lt;/P&gt;
  &lt;P&gt; 100001 110&lt;/P&gt;
  &lt;P&gt; and then i need a PO with a single line item with material 100002, the PO is getting created with the material 100001. I notice that the material which goes into the BAPI is correct(100002) but after the BAPI runs, it is giving the wrong material number(100001) and creating a PO.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;B.R.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 13:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608993#M25063</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2018-05-30T13:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608994#M25064</link>
      <description>&lt;P&gt;If you could share a slice of formatted and relevant code in which you fill the tables and call the BAPI, it would help us in understanding the issue.&lt;/P&gt;
  &lt;P&gt;With the few information you gave, we can only guess, without giving any real help.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 14:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608994#M25064</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2018-05-30T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608995#M25065</link>
      <description>&lt;P&gt;Hello &lt;A href="https://answers.sap.com/users/1327/simonemilesi.html"&gt;Simone Milesi&lt;/A&gt;,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks for your reply. The code is nothing complicated thats why i did not share. It is just normal BAPI code. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;FORM proc_selec_lines USING ls_final_data TYPE ty_final_data.&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;MOVE: lv_po_item TO lt_ekpo-po_item,&lt;BR /&gt; lv_po_item TO lt_ekpox-po_item.&lt;BR /&gt; &lt;BR /&gt; ls_final_data-lgort = '3100'.&lt;BR /&gt;MOVE: ls_final_data-matnr TO lt_ekpo-material,&lt;BR /&gt; ls_final_data-lgort TO lt_ekpo-stge_loc,&lt;BR /&gt; ls_final_data-verme TO lt_ekpo-quantity,&lt;BR /&gt; ls_final_data-meins TO lt_ekpo-po_unit.&lt;BR /&gt; &lt;BR /&gt;APPEND lt_ekpo.&lt;BR /&gt; APPEND lt_ekpox.&lt;BR /&gt;ADD 1 TO lv_po_item.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;ENDFORM.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'BAPI_PO_CREATE1'&lt;BR /&gt; EXPORTING&lt;BR /&gt; poheader = ls_ekko&lt;BR /&gt; poheaderx = ls_ekkox&lt;BR /&gt;IMPORTING&lt;BR /&gt; exppurchaseorder = lv_ebeln&lt;BR /&gt;TABLES&lt;BR /&gt; return = lt_return&lt;BR /&gt; poitem = lt_ekpo&lt;BR /&gt; poitemx = lt_ekpox&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;*** I have got a list of materials and some materials have to be grouped together and made into one PO. (Which is working perfectly) and other set have to be grouped together and made into another PO. But the material data is not getting changed the second time. Before the BAPI is called it is all perfect but after the BAPI runs it is creating PO with the material in the first list.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 14:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608995#M25065</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2018-05-30T14:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608996#M25066</link>
      <description>&lt;P&gt;It is somwhat related to the memory issue. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I have seen codes like this in the standard SAP codes before using this BAPI.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;" refresh buffer&lt;BR /&gt; call function 'ME_EKKO_BUFFER_REFRESH'.&lt;BR /&gt; call function 'ME_EKPO_BUFFER_REFRESH'.&lt;BR /&gt; call function 'ME_STATISTICS_TABLES_REFRESH'.&lt;BR /&gt; perform mepo_refresh in program saplmepo. "See SCN Thread 77429&lt;BR /&gt; commit work and wait.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;But it is not helping either .&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 15:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608996#M25066</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2018-05-30T15:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608997#M25067</link>
      <description>&lt;P&gt;Solved&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 16:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608997#M25067</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2018-05-30T16:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608998#M25068</link>
      <description>&lt;P&gt;Could you either Close the Question OR Explain what your solution was if it would be useful to others? Thanks&lt;/P&gt;
  &lt;P&gt;Nic T.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 21:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-refresh-problem-with-bapi/m-p/608998#M25068</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2018-05-30T21:23:27Z</dc:date>
    </item>
  </channel>
</rss>

