<?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: Runtime Detection of In Update Task Error COMMIT_IN_POSTING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402009#M1925229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lol &lt;SPAN __jive_emoticon_name="laugh" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/laugh.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 12:48:45 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2015-12-22T12:48:45Z</dc:date>
    <item>
      <title>Runtime Detection of In Update Task Error COMMIT_IN_POSTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402002#M1925222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to detect at run-time whether a method is running in Update Task or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concrete I have an abstract method which sets in an own DB-Table a status flag.&amp;nbsp; This can happen in a lot of places (why it is abstract) but also for example during BADI of create inbound delivery which then runs in Update Task (rightfully I think).&lt;/P&gt;&lt;P&gt;I would like to see inside my abstract method whether I can do the commit or not but there seems no syst-field (or I missed it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and a supercalifragelisticexpialidoucious 2016&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 09:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402002#M1925222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-22T09:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Detection of In Update Task Error COMMIT_IN_POSTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402003#M1925223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the method CL_SYSTEM_TRANSACTION_STATE=&amp;gt;GET_IN_UPDATE_TASK( ).&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, 22 Dec 2015 10:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402003#M1925223</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2015-12-22T10:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Detection of In Update Task Error COMMIT_IN_POSTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402004#M1925224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tyriad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below Function module can be used to check if the program is being called in update task or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'TH_IN_UPDATE_TASK'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_update_task = lf_update_task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthikeyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 10:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402004#M1925224</guid>
      <dc:creator>karthikeyan_p3</dc:creator>
      <dc:date>2015-12-22T10:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Detection of In Update Task Error COMMIT_IN_POSTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402005#M1925225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; color: #333333; text-align: left; background: #ffffff;"&gt;&lt;STRONG&gt;Hi, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;&amp;gt;&amp;gt;the COMMIT WORK &lt;/SPAN&gt;&lt;SPAN style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt; commit all&amp;nbsp; database changes and executes&amp;nbsp; all functions&amp;nbsp; modules called in update task that's why we need not to call COMMIT WORK in user exits and BADI's.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; color: #333333; text-align: left; background: #ffffff;"&gt;&lt;STRONG&gt;&amp;gt;&amp;gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN style="text-align: justify; color: #000000; text-indent: 0px;"&gt;To debug update FM we need to switch on&lt;/SPAN&gt;&lt;SPAN style="text-align: justify; color: #000000; text-indent: 0px;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;Update Debugger&lt;SPAN style="text-align: justify; color: #000000; text-indent: 0px;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="text-align: justify; color: #000000; text-indent: 0px;"&gt;&lt;STRONG&gt;in debugging mode, if your FM is running in Update task your debugging flow will reach it &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; color: #000000; text-align: justify; background: #ffffff;"&gt;&lt;STRONG&gt;thanks!!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 10:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402005#M1925225</guid>
      <dc:creator>Chintu6august</dc:creator>
      <dc:date>2015-12-22T10:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Detection of In Update Task Error COMMIT_IN_POSTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402006#M1925226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you read the question? And what is with the all BOLD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 10:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402006#M1925226</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2015-12-22T10:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Detection of In Update Task Error COMMIT_IN_POSTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402007#M1925227</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;sorry I misinterpreted it!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 10:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402007#M1925227</guid>
      <dc:creator>Chintu6august</dc:creator>
      <dc:date>2015-12-22T10:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Detection of In Update Task Error COMMIT_IN_POSTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402008#M1925228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick and accurate reply your name is fore ever in the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF cl_system_transaction_state=&amp;gt;get_in_update_task( ) = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JollyHelpFrom Suhas Saha: &lt;/SPAN&gt;&lt;A class="jive-link-message-small" data-containerid="2015" data-containertype="14" data-objectid="16428484" data-objecttype="2" href="http://scn.sap.com/message/16428484#16428484"&gt;http://scn.sap.com/message/16428484#16428484&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMIT WORK AND WAIT.&amp;nbsp; " WeighBridge comes here in UpdateTask(CreateInbound)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have to say that what was suggested in &lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2015" data-containertype="14" data-objectid="1294685" data-objecttype="1" href="http://scn.sap.com/thread/1294685"&gt;http://scn.sap.com/thread/1294685&lt;/A&gt;&lt;SPAN&gt; (using nativ SQL-commit and accepted) seems to me a lot more dangerous.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 12:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402008#M1925228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-22T12:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Detection of In Update Task Error COMMIT_IN_POSTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402009#M1925229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lol &lt;SPAN __jive_emoticon_name="laugh" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/laugh.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 12:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-detection-of-in-update-task-error-commit-in-posting/m-p/11402009#M1925229</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2015-12-22T12:48:45Z</dc:date>
    </item>
  </channel>
</rss>

