<?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 inside a loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543560#M578249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shan,&lt;/P&gt;&lt;P&gt;wait = x does'nt mean wait a special.&lt;/P&gt;&lt;P&gt;it's the same as COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means wait until update process is finished.&lt;/P&gt;&lt;P&gt;Look at the docu of the FM of the Docu of COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2007 08:07:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-10T08:07:58Z</dc:date>
    <item>
      <title>BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543554#M578243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing a strange behaviour..... I am doing some coading in user-exit.... all thing is happeing inside a loop. things looks pretty fine, but sometimes, when the control reach to the bapi BAPI_ALM_ORDER_MAINTAIN (which i am using to create the operations ), so when control reachs to this bapi, it did not proceed rather the control goes back to the loop at lt_tab ....... and sometimes it works fine, that after BAPI_ALM_ORDER_MAINTAIN it proceed normal..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far is one issue, but sometimes its also happend that, when control goes back to loop, if procees then outside the loop, and then automatically comes again to BAPI_ALM_ORDER_MAINTAIN.. and proceed further.... dont know what is going on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one has any idea, what is happening ?&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, 10 Jul 2007 07:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543554#M578243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T07:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543555#M578244</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;Where did you put your COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just put it after the BAPI call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 07:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543555#M578244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T07:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543556#M578245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the commit work is placed after the bapi called, but this is not the issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said, in debug mode it did not happend always, but sometimes, it happends that, when control reach to the bapi call, it goes back to the loop at lt_lab ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea, why ?&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, 10 Jul 2007 07:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543556#M578245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T07:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543557#M578246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shan,&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&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;    IMPORTING&lt;/P&gt;&lt;P&gt;      RETURN = RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after your BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 07:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543557#M578246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T07:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543558#M578247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Dieter, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danke &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am using this BAPI after my bapi ( order maintain ), but instead of using wait = 'X' I am using explicit command, like wait 1 seconds, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea, what is the reason that, the control goes back to loop at it_tab back ?&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, 10 Jul 2007 08:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543558#M578247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543559#M578248</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;Just increase the WAITING TIME lets say 5 seconds or something, and you will not face that issue then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543559#M578248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543560#M578249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shan,&lt;/P&gt;&lt;P&gt;wait = x does'nt mean wait a special.&lt;/P&gt;&lt;P&gt;it's the same as COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means wait until update process is finished.&lt;/P&gt;&lt;P&gt;Look at the docu of the FM of the Docu of COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543560#M578249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543561#M578250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will do this as dieter mentioned to set the wait to 'X', but pls anyone tell me why this is happenig ? have any one also faced such thing ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know the reason, why the contol goes back to the start of loop ?&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, 10 Jul 2007 08:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543561#M578250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543562#M578251</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 are many transactions which require more time to happen the COMMIT so it is better to increase the time if you find the earlier time is not sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543562#M578251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543563#M578252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shan,&lt;/P&gt;&lt;P&gt;can you show the code of LOOP ... ENDLOOP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543563#M578252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543564#M578253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its nice suggestion to increase the wait time to 5 sec, but then I have probelm with performance, because its a big code piece, and I am calling atleast 6, or 7 times this BAPI commit, as I am inserting / updating , various tables, and calling bapi like bapi_maintani_order etc..... so lets say, if loops goes 3 tims, then wait 5 sec after each bapi, is a big performance hole....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comming to you dieter, the piece of code is  nothing more then..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'&lt;/P&gt;&lt;P&gt;....&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;            wait UP TO 1 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Endloop.&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, 10 Jul 2007 08:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543564#M578253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543565#M578254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatelly, the problem is not solved, ..... when control reach to the bapi, it goes back to the start of loop..... any one has any idea, why, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any one who faced this issue before ?&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, 10 Jul 2007 08:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543565#M578254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543566#M578255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shan,&lt;/P&gt;&lt;P&gt;please set some break-point after&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and loop at the sy-tabix, sy-index. do they have right values?&lt;/P&gt;&lt;P&gt;why don't you use 'BAPI_TRANSACTION_COMMIT' with wait = 'X'.&lt;/P&gt;&lt;P&gt;which i have mentioned above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543566#M578255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543567#M578256</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;what i believe is BAPI is not execting with sucess and returning with errors.  also, u pl check any Return or Exit after bapi call inside bapi call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543567#M578256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543568#M578257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very very strange :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have debuged the bapi BAPI_ALM_ORDER_MAINTAIN, and with inside this bapi when control reach to the bapi IBAPI_PROC_METHOD_TABLE_EXEC, it goes back to my starting loop, and when inside this loop the table index reach to end, the control goes back to bapi IBAPI_PROC_METHOD_TABLE_EXEC, and processing is resumed from where it ends &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; ???????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting mad, what is going on &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea, ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Shah H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 09:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543568#M578257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T09:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543569#M578258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shah,&lt;/P&gt;&lt;P&gt;is it possible that you loop for an itab which you use as an&lt;/P&gt;&lt;P&gt;parameter in the FM BAPI_ALM_ORDER_MAINTAIN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please show your LOOP-Statement and&lt;/P&gt;&lt;P&gt;your call of the FM BAPI_ALM_ORDER_MAINTAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 09:46:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543569#M578258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543570#M578259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, no, I am looping over the it_tab  lt_afvgd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okey here is a peice of code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_afvgd.&lt;/P&gt;&lt;P&gt;IF sy-ucomm eq 'GO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="8" type="ul"&gt;&lt;P&gt;SOME FUNCTONALITY *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;........................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          clear:  wa_methods,&lt;/P&gt;&lt;P&gt;                  it_methods.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create operations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          MOVE '1' TO wa_methods-REFNUMBER.&lt;/P&gt;&lt;P&gt;          MOVE 'OPERATION' TO wa_methods-objecttype.&lt;/P&gt;&lt;P&gt;          MOVE 'CREATE' TO wa_methods-method.&lt;/P&gt;&lt;P&gt;          MOVE orderNr to wa_methods-objectkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          APPEND wa_methods TO it_methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          MOVE '1' TO wa_methods-REFNUMBER.&lt;/P&gt;&lt;P&gt;          MOVE '' TO wa_methods-objecttype.&lt;/P&gt;&lt;P&gt;          MOVE 'SAVE' TO wa_methods-method.&lt;/P&gt;&lt;P&gt;          MOVE orderNr to wa_methods-objectkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          APPEND wa_methods TO it_methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          clear l_aufpl.&lt;/P&gt;&lt;P&gt;          Select single AUFPL INTO l_aufpl&lt;/P&gt;&lt;P&gt;            from afko&lt;/P&gt;&lt;P&gt;              where&lt;/P&gt;&lt;P&gt;                 aufnr = orderNr.&lt;/P&gt;&lt;P&gt;          clear l_aplzl.&lt;/P&gt;&lt;P&gt;          Select MAX( APLZL ) into l_APLZL&lt;/P&gt;&lt;P&gt;            from AFVC&lt;/P&gt;&lt;P&gt;             where&lt;/P&gt;&lt;P&gt;                AUFPL = l_aufpl.&lt;/P&gt;&lt;P&gt;          clear l_vornr.&lt;/P&gt;&lt;P&gt;          Select single vornr into l_vornr&lt;/P&gt;&lt;P&gt;            from AFVC&lt;/P&gt;&lt;P&gt;             where&lt;/P&gt;&lt;P&gt;                 AUFPL = l_aufpl AND&lt;/P&gt;&lt;P&gt;                 APLZL = l_APLZL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          add '1' to l_vornr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          clear:  wa_operation,&lt;/P&gt;&lt;P&gt;                  et_numbers,&lt;/P&gt;&lt;P&gt;                  IT_RETURN,&lt;/P&gt;&lt;P&gt;                  it_operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'Z_GET_OPER_NAME'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              L_VIDEONORM             = ls_ZENCO_TAB_CTRL-videonorm&lt;/P&gt;&lt;P&gt;              L_QC_LEVEL              = ls_ZENCO_TAB_CTRL-qc_level&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;             LV_OPERATION_TEXT       = lv_oper_text&lt;/P&gt;&lt;P&gt;                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          MOVE l_vornr TO wa_operation-activity. " Must give&lt;/P&gt;&lt;P&gt;          MOVE 'Z114' TO wa_operation-CONTROL_KEY.&lt;/P&gt;&lt;P&gt;          MOVE '' TO wa_operation-sub_activity.&lt;/P&gt;&lt;P&gt;          MOVE '' TO wa_operation-standard_text_key.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         MOVE 'QC Setup' TO wa_operation-description.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           MOVE lv_oper_text TO wa_operation-description.&lt;/P&gt;&lt;P&gt;          MOVE '' TO wa_operation-vendor_no.&lt;/P&gt;&lt;P&gt;          MOVE 3 TO wa_operation-quantity.&lt;/P&gt;&lt;P&gt;          MOVE 'KG' TO wa_operation-base_uom.&lt;/P&gt;&lt;P&gt;          APPEND wa_operation TO it_operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;          it_methods = it_methods&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          it_header = it_header&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_HEADER_UP =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_HEADER_SRV = IT_HEADER_SERV&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_HEADER_SRV_UP =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_USERSTATUS = IT_USERSTATUS "not working&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_PARTNER =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_PARTNER_UP =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          it_operation = it_operation&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_OPERATION_UP =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_RELATION =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_RELATION_UP =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_COMPONENT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_COMPONENT_UP =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_TEXT = it_text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IT_TEXT_LINES = it_text_line&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          EXTENSION_IN =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          RETURN = IT_RETURN&lt;/P&gt;&lt;P&gt;          et_numbers = et_numbers.&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;         wait UP TO 2 seconds.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;......some more functionality .......................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Shah H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Shah H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 09:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543570#M578259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T09:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543571#M578260</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;then problem is with IBAPI_PROC_METHOD_TABLE_EXEC. so before executing this fm chek all parameters of this BAPI. or with the runtime set of information excute that module in se37. then check... surely this is the problem .  check and modifiy values provided to BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 09:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543571#M578260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T09:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543572#M578261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one has any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why the bapi goes back to loop again ?&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, 10 Jul 2007 11:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543572#M578261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543573#M578262</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 tried, this, but still facing the same issue.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one know what is the reason ?&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, 10 Jul 2007 11:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inside-a-loop/m-p/2543573#M578262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:55:07Z</dc:date>
    </item>
  </channel>
</rss>

