<?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: BAPI error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541582#M246683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; there is no error. ie. there are ten loops, but the prog just execute 8 loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But when i execute it in debug mode, it is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; so that is with SAP process i think, but i do not know how to make sure it execute each loop.(i have tried commit work and wait but with no effect).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2006 07:21:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-28T07:21:55Z</dc:date>
    <item>
      <title>BAPI error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541579#M246680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when i use BAPI TO CREATE MATERIAL,I USE THE bapi during a loop&amp;amp;endloop. But not all the loop is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code as follow:&lt;/P&gt;&lt;P&gt;loop AT  it_massdata.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;transfer BAPI data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        headdata            = BAPIMATHEAD&lt;/P&gt;&lt;P&gt;        CLIENTDATA          = BAPI_MARA&lt;/P&gt;&lt;P&gt;        CLIENTDATAX         = BAPI_MARAx&lt;/P&gt;&lt;P&gt;        PLANTDATA           = BAPI_MARc&lt;/P&gt;&lt;P&gt;        PLANTDATAX          = BAPI_MARcx&lt;/P&gt;&lt;P&gt;        VALUATIONDATA       = BAPI_MBEW&lt;/P&gt;&lt;P&gt;        VALUATIONDATAX      = BAPI_MBEWX&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        RETURN              = IT_RETURN&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        MATERIALDESCRIPTION = IT_MATERIALDESC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;    commit work and wait.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any advice?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 07:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541579#M246680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T07:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541580#M246681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to read the contents of IT_RETURN before doing a commit. If IT_RETURN has any message of type 'E', that means that material will not be created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the message description to find out why the material was not created, it could be because of the kind of data you are passing to the BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 07:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541580#M246681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T07:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541581#M246682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any errors on it_return ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, JAcek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 07:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541581#M246682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T07:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541582#M246683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; there is no error. ie. there are ten loops, but the prog just execute 8 loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But when i execute it in debug mode, it is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; so that is with SAP process i think, but i do not know how to make sure it execute each loop.(i have tried commit work and wait but with no effect).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 07:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541582#M246683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T07:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541583#M246684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just remove the statement &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   commit work and wait.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it seems right, but i am not sure about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any points?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 07:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541583#M246684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T07:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541584#M246685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the following code after the call to 'BAPI_MATERIAL_SAVEDATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_return WITH KEY type = 'E' BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            wait = 'X'.&lt;/P&gt;&lt;P&gt;ElSE.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK' .&lt;/P&gt;&lt;P&gt;*Logic to collect errors&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 07:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541584#M246685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T07:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541585#M246686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Kiran and all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Tks for ur help. it works. and i have learned a new FM&lt;/P&gt;&lt;P&gt;'BAPI_TRANSACTION_ROLLBACK' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; tks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 08:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541585#M246686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T08:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541586#M246687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you probed making only one commit work when you get out of the loop, or perhaps you have to put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait up to 3 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally when the program works in debugging, but not in normal execution, it is problem of synchronism, probe both solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 08:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/1541586#M246687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T08:18:16Z</dc:date>
    </item>
  </channel>
</rss>

