<?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: Separate LUW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153318#M749903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zafar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find a solution using separate LUW's?&lt;/P&gt;&lt;P&gt;If yes, it would be nice to share it with us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2008 14:41:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-06T14:41:46Z</dc:date>
    <item>
      <title>Separate LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153312#M749897</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;Can any one tell me weather it is possible to create a separate LUW inside another LUW, wherein if i write commit statement, only the nested LUW should be commited. Please find below explanation of problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to use a code which updates a 'Z' table inside a user exit. After updation i have to utilise this 'Z' table entries in my code. But if i write commit in the updation code then the whole transaction will be commited, and if i don't write commit, records will not be updated in the table for furthur utilisation. So i thought of writing this updation code in a seperate LUW, where in if i write commit statement only the 'Z' table updation will be commited, rather than the hole transaction. Although i have written to save the updated records in a internal table, and utilise this table for furthur use, but i wan't to know weather it is possible to write a set of code as a seperate LUW inside another LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Zafar Ali&lt;/P&gt;&lt;P&gt;E-mail: zali@essar.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 11:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153312#M749897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T11:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Separate LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153313#M749898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zafar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One approach is (can be) to create a new LUW by using two approaches:&lt;/P&gt;&lt;P&gt;1. SUBMIT PROGRAM AND RETURN and within the program you code and use COMMIT and then RETURN&lt;/P&gt;&lt;P&gt;2. CALL FUNCTION &amp;lt;function&amp;gt; DESTINATION 'NONE' -this simulates the same function as SUBMIT, but here the module needs to be RFC enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, having said this, I think your current approach of using a internal table is the best way to go. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 11:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153313#M749898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T11:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Separate LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153314#M749899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanku for the kind response. I have test tried RFC Function Module and also SUBMIT a program, by writing an update statement for updating a 'z' table, and then calling an RFC/SUBMIT in which another Update statement is written with commit. when the update of first program is executed( in Debug mode), the changes are not reflected at DDIC, but when statement commit is executed (in Debug mode) in another program/RFC FM, both the changes (In 1st and 2nd updations) reflected in DDIC (Not as expected that only 2nd updation will be reflected) even before exiting from the second program in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Zafar Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 06:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153314#M749899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T06:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Separate LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153315#M749900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi zafar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Nested Luw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I tried the same thing now, but could not succeed.&lt;/P&gt;&lt;P&gt;3. Whether we use submit, rfc with NONE, or&lt;/P&gt;&lt;P&gt;   anything else,&lt;/P&gt;&lt;P&gt;   it creates another internal session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (inside this session, if we use commit,&lt;/P&gt;&lt;P&gt;   it will commit the main session also).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. I was just wondering why u need to commit &lt;/P&gt;&lt;P&gt;    the nested luw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. As u said, this Z table u are updating,&lt;/P&gt;&lt;P&gt;    inside the user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Main Program--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&amp;gt;UserExit--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt;backto main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. So, if u update the Z table inside the userexit,&lt;/P&gt;&lt;P&gt;    its records will still be available in the code of main program,  after the user exit is completed, even without commit work.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(bcos the session is same for main program and the user exit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (even though they may not be physically updated,&lt;/P&gt;&lt;P&gt;  if we seen in another window/session)&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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 08:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153315#M749900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T08:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Separate LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153316#M749901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have said, i had already solved it by storing the updating records in a table and ulitised it later, but i thought that there should be some way to commit a set of code, in some rare situations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou for the response,&lt;/P&gt;&lt;P&gt;Zafar Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 06:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153316#M749901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T06:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Separate LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153317#M749902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 06:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153317#M749902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T06:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Separate LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153318#M749903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zafar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find a solution using separate LUW's?&lt;/P&gt;&lt;P&gt;If yes, it would be nice to share it with us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 14:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153318#M749903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T14:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Separate LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153319#M749904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philippe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved the issue by storing the records (to be updated in 'Z' table) in an internal table and utilised the same for furthur processing. I have written code to first search the internal table, and if not found then only i have written select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, i have found a way to start a new LUW by calling a RFC FM with addition 'STARTING NEW TASK '&amp;lt;TASK_NAME&amp;gt;'. Here with in Function Module, even if we write commit work statement, only the new LUW (FM Code) will be commited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Zafar Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/separate-luw/m-p/3153319#M749904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:45:41Z</dc:date>
    </item>
  </channel>
</rss>

