<?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: Calling BAPI in sequence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288078#M1022904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried with similar code lines.But it didnt work.&lt;/P&gt;&lt;P&gt;My assumption is that there is some problem with lock mechanism.Is there any way to handle this.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched and found one sap note for the bapi...still its not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jinesh Kumar C on Aug 12, 2008 4:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2008 10:11:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-12T10:11:29Z</dc:date>
    <item>
      <title>Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288072#M1022898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m calling FIVE FM namely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_ALM_ORDER_MAINTAIN&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT,&lt;/P&gt;&lt;P&gt;BAPI_ALM_NOTIF_DATA_ADD,&lt;/P&gt;&lt;P&gt;BAPI_ALM_NOTIF_SAVE,&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the sequence written above.But i am not able to add data &lt;/P&gt;&lt;P&gt;to a created notification (created through BAPI_ALM_ORDER_MAINTAIN ),IF i process it in the above sequence.If i do the notification addition separetly,its working.&lt;/P&gt;&lt;P&gt;Do anyone have an idea to do this in a single function module.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answers will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 08:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288072#M1022898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T08:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288073#M1022899</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;And how are you using BAPI_TRANSACTION_COMMIT ?&lt;/P&gt;&lt;P&gt;Give code pls ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 08:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288073#M1022899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T08:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288074#M1022900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jigneesh,&lt;/P&gt;&lt;P&gt; Try to use Wait Statement after every Bapi commit, I think this logic works sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 08:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288074#M1022900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T08:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288075#M1022901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to wait parameter in the BAPI_TRANSACTION_COMMIT. And there can be some more delay due to Database Commit and buffering, so you may have to wait until the data is accessible. (Try a select/wait until read or an Enqueue wait on the order) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 08:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288075#M1022901</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-12T08:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288076#M1022902</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 have passed the parameter for wait also.still its not getting&lt;/P&gt;&lt;P&gt;updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 08:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288076#M1022902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T08:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288077#M1022903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to open the order (IW32 or the like) after the commit wait, there may be a delay as i wrote. So try something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
     EXPORTING
          wait   = 'X'
     IMPORTING
          return = bapiret2.
IF bapiret2-type EQ 'E'.
  " help
ENDIF.
DO.
  SELECT COUNT(*) FROM aufk BYPASSING BUFFER
    WHERE aufnr = returned_order.
  IF sy-subrc EQ 0.
    EXIT.
  ELSE.
    WAIT UP TO 1 SECONDS.
  ENDIF.
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 09:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288077#M1022903</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-12T09:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288078#M1022904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried with similar code lines.But it didnt work.&lt;/P&gt;&lt;P&gt;My assumption is that there is some problem with lock mechanism.Is there any way to handle this.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched and found one sap note for the bapi...still its not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jinesh Kumar C on Aug 12, 2008 4:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 10:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288078#M1022904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T10:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288079#M1022905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which message do you get : order not found, or order locked ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 10:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288079#M1022905</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-12T10:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288080#M1022906</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 didnt get any messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 10:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288080#M1022906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T10:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288081#M1022907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at OSS [Note 1058895 - Lock error when you change or delete notifications|https://service.sap.com/sap/support/notes/1058895] of 05.30.2007	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 11:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288081#M1022907</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-12T11:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI in sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288082#M1022908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 11:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-in-sequence/m-p/4288082#M1022908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T11:39:09Z</dc:date>
    </item>
  </channel>
</rss>

