<?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: BDC commit work issue. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820645#M1470148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wait statement doesnt make any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the call transaction is written inside a 'at end of' statement.&lt;/P&gt;&lt;P&gt;Once i hit a F5 at the call transaction statement the control returns to 'AT END OF'.&lt;/P&gt;&lt;P&gt;I tried passing raw comit = 'X' and placed a commit work and wait after the call transaction statement,&lt;/P&gt;&lt;P&gt;but still the control is not coming to the next line after call transaction statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Apr 2010 15:40:56 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-04-13T15:40:56Z</dc:date>
    <item>
      <title>BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820640#M1470143</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;Im facing a issue in BDC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a loop there is a select query called and if sy-subrc = 0 the call transaction using mode N is called in the next step.&lt;/P&gt;&lt;P&gt;first time if the sy-subrc is ne 0 then call transaction is done which updates( considered as new entry )&lt;/P&gt;&lt;P&gt;the table used in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the loop executes the second time the sy-subrc is still 4 instead of 0( previous data is not updated in DB ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after all the execution only the last record exists in the transaction, &lt;/P&gt;&lt;P&gt;that is the table control index is always 1 due to the select query failure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the problem is when using mode N, when mode A is used its working fine.&lt;/P&gt;&lt;P&gt;The data is not getting updated in db in first loop cycle, so the select query in second loop cycle fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select query gets executed for the same material no's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried with explicit commit and synchrounous update is used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820640#M1470143</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-04-13T15:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820641#M1470144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I understand your last sentence correctly that you already tried option UPDATE 'S' of the CALL TRANSACTION statement? This would be my only idea at this point.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820641#M1470144</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-04-13T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820642#M1470145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used a synchronous update, but still its not updating.&lt;/P&gt;&lt;P&gt;The message table is also populated with message type success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820642#M1470145</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-04-13T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820643#M1470146</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;Are you using Synchronous update mode? If not please use this. Instead of only COMMIT use COMMIT WORK AND WAIT and introduce an explicit delay of 1 sec (WAIT UPTO n Seconds)  and see(For testing purpose). By the way is the transaction called is Z or standard? Does the called transaction has COMMIT inside?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During debugging, Instead of trying in MODE A, try in Mode N only. Execute for first call in mode N, wait for 2-3 seconds then execute the second select call and see if the first one is updated. If it is updated then explicit delay should solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But Why don't you filter out the required records to be updated outside the loop itself by comparing with itab data?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820643#M1470146</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-04-13T15:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820644#M1470147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;Its a synchronous update, i have used commit work and wait.&lt;/P&gt;&lt;P&gt;Its a standard transaction CL20( Obsolete : but the program was coded several years back &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried waiting for 10 seconds for each record, only thing is i have to try wait upto statement.&lt;/P&gt;&lt;P&gt;I'll get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820644#M1470147</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-04-13T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820645#M1470148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wait statement doesnt make any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the call transaction is written inside a 'at end of' statement.&lt;/P&gt;&lt;P&gt;Once i hit a F5 at the call transaction statement the control returns to 'AT END OF'.&lt;/P&gt;&lt;P&gt;I tried passing raw comit = 'X' and placed a commit work and wait after the call transaction statement,&lt;/P&gt;&lt;P&gt;but still the control is not coming to the next line after call transaction statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820645#M1470148</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-04-13T15:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820646#M1470149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try the COMMIT from menu during debugging after the CALL TRANSACTION statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I tried passing raw comit = 'X' and placed a commit work and wait after the call transaction statement,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;but still the control is not coming to the next line after call transaction statement.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean control is not coming to the COMMIT statement after the call transaction? Ideally F5 on call transaction should go to the standard code. Was this not happening? If this is not a stupid idea, Try to Regenerate the program Index and activate the main program and see. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820646#M1470149</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-04-13T15:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820647#M1470150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to select the same data you have updated via CALL TRANSACTION after the explicit COMMIT WORK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was reading the SAP documentation on COMMIT WORK &amp;amp; something caught my eye &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;The COMMIT WORK statement closes all database cursors. Open SQL statements that access a database cursor later (SELECT loop and FETCH) lead to an untreatable exception. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source: [http://help.sap.com/abapdocu_70/en/ABAPCOMMIT.htm|http://help.sap.com/abapdocu_70/en/ABAPCOMMIT.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 17:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820647#M1470150</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-13T17:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820648#M1470151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas &amp;amp; Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll be back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Suhas- Thanks for the info &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 20:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820648#M1470151</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-04-13T20:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820649#M1470152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This applies when we open a cursor for select, use fetch to get the data. Ater the fetch if we commit, then it closes all the open cursors. So next fetch on the previously opened cursor will lead to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect example could be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I beleive you are not using SELECT ENDSELECT in your case. If it is SELECT SIGLE/SELECT INTO TABLE,  OPEN, FETCH and CLOSE CURSOR operations happens at the back end during the select query execution. ( We can see ST05 trace for this). So as per my understanding COMMIT after the CALL TRANSACTION shouldn't cause any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct if i am wrong any where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 06:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820649#M1470152</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-04-14T06:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820650#M1470153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The phrase "SELECT loop and FETCH" in the documentation says it all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 07:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820650#M1470153</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-14T07:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820651#M1470154</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 believe, SELECT &lt;STRONG&gt;LOOP&lt;/STRONG&gt; referred here in the documentation is for SELECT ENDSELECT (Which behaves similar to LOOP on itab, record by record processing). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using SELECT ENDSELECT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 07:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820651#M1470154</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-04-14T07:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820652#M1470155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You got me wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I beleive a SELECT loop would be a SELECT ... ENDSELECT block &amp;amp; definitely(i think  so) not a LOOP + SELECT combo. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways later on i realised if this were the case our dear friend Keshav would have got an "untreatable exception" which is not the case &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 07:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820652#M1470155</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-14T07:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: BDC commit work issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820653#M1470156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod &amp;amp; Suhas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Atlast changed the mode to 'E' and everything worked fine.&lt;/P&gt;&lt;P&gt;Thanks for your suport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 09:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-commit-work-issue/m-p/6820653#M1470156</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-04-29T09:33:19Z</dc:date>
    </item>
  </channel>
</rss>

