<?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: Execute BAPI again on error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084400#M731526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this by calling this FM BAPI_TRANSACTION_COMMIT with wait option after your BAPI call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
              wait   = 'X'. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2007 20:46:12 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-12-03T20:46:12Z</dc:date>
    <item>
      <title>Execute BAPI again on error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084396#M731522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a BAPI and I need to execute this BAPI again after a particular waiting time (e.g 10 sec) once it fails. &lt;/P&gt;&lt;P&gt;How can I achieve this functionality?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any helpful entry will be rewarded.&lt;/P&gt;&lt;P&gt;Warm regards, &lt;/P&gt;&lt;P&gt;Raman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 20:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084396#M731522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T20:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Execute BAPI again on error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084397#M731523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can read the RETURN table and if the error is there you can use the WAIT syntax to wait for some itme.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WAIT UP TO 10 SECONDS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 20:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084397#M731523</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-12-03T20:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Execute BAPI again on error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084398#M731524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to wait?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 20:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084398#M731524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T20:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Execute BAPI again on error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084399#M731525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I go to debugging mode and execute the BAPI after sometime (after waiting for 10 sec), it runs successfully. That's the reason I want to implement that in my code and try to give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm regards,&lt;/P&gt;&lt;P&gt;Raman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 20:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084399#M731525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T20:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Execute BAPI again on error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084400#M731526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this by calling this FM BAPI_TRANSACTION_COMMIT with wait option after your BAPI call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
              wait   = 'X'. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 20:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084400#M731526</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-12-03T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Execute BAPI again on error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084401#M731527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WAITing may or may not work. Adding the wait parameter to the commit is much better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 20:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084401#M731527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T20:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Execute BAPI again on error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084402#M731528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In most cases, you get this kind of issues when there is a lock on the object that you trying to update or if you are creating and updating the same object in the same program flow. If it is the first case, introduction of a DO... ENDDO may help. In the later case, BAPI_TRANSACTION_COMMIT with WAIT = 'X' after the create call helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;call bapi.&lt;/P&gt;&lt;P&gt;if there is an error in the return messages.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 21:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-bapi-again-on-error/m-p/3084402#M731528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T21:02:26Z</dc:date>
    </item>
  </channel>
</rss>

