<?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: Starting a new LUW? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/starting-a-new-luw/m-p/7420802#M1549273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aishi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to call your FM by RFC with destination NONE.&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Oct 2010 07:32:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-12T07:32:34Z</dc:date>
    <item>
      <title>Starting a new LUW?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/starting-a-new-luw/m-p/7420801#M1549272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys. &lt;/P&gt;&lt;P&gt; I'd explain my scenario first. &lt;/P&gt;&lt;P&gt;I have a common function module which is called by many custom programs. &lt;/P&gt;&lt;P&gt;Now in this common FM I want to update a database table and commit/rollback it WITHOUT affecting the calling programs's LUW - i.e. if the calling program has updated a database table BEFORE calling the FM, that SHOULD NOT be updated via the DB_COMMIT of my FM - i.e I want the updates inside my FM to be treated as a separate LUW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I know some immediate responses to achieve this might be SUBMIT and return. Well, I tried that - but on committing inside the submitted program, all database updates till then are getting committed. &lt;/P&gt;&lt;P&gt;2nd option -&amp;gt; I tried to call my FM in update task - but that does not help because then the FM is dependent on the COMMIT work to be issued by the calling program, but I do not want that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd option -&amp;gt; I tried to submit a job in background to do the update - even that does not work because JOB_OPEN internally calls a commit work which commits any database updates till then. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues what can I do, or where I am going wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 06:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/starting-a-new-luw/m-p/7420801#M1549272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T06:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a new LUW?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/starting-a-new-luw/m-p/7420802#M1549273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aishi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to call your FM by RFC with destination NONE.&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 07:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/starting-a-new-luw/m-p/7420802#M1549273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T07:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a new LUW?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/starting-a-new-luw/m-p/7420803#M1549274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I can see SAP says about this is&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An implicit or explicit DB commit in the called transaction also updates all the completed inline &lt;/P&gt;&lt;P&gt;changes of the calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Conversely&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you call up transactions with nested calls, each transaction needs its own COMMIT WORK &lt;/P&gt;&lt;P&gt;because each transaction maps its own SAP LUW. &lt;/P&gt;&lt;P&gt;The same applies to executable programs that are called using  SUBMIT &amp;lt;program&amp;gt; AND &lt;/P&gt;&lt;P&gt;RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So in order each SAP LUW can process only its updates you should trigger COMMIT WORK explicitly for each of them. This would be case when you i.e. call transaction -&amp;gt; do your updates there -&amp;gt; trigger COMMIT WORK. This should therefore not affect calling program's updates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if all updates have to be done in FM in UPDATE TAKS, similary as described [here|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbae4135c111d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All LUW issues always makes me going crazy too &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 07:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/starting-a-new-luw/m-p/7420803#M1549274</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-12T07:34:53Z</dc:date>
    </item>
  </channel>
</rss>

