<?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: luw in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307432#M504938</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;go thru this link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2007 07:16:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-28T07:16:37Z</dc:date>
    <item>
      <title>luw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307428#M504934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the diff b/w sap luw and db luw?&lt;/P&gt;&lt;P&gt;plz explain me in simple terms instead of sending me the links&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 07:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307428#M504934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T07:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: luw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307429#M504935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The R/3 system is multi user system and many users access the same information at the same time, which is mainly DATA. Consider the case where one user is modifying a record, and second user is trying to delete the same record. If the second user is successful in deleting the record then the first user will face problem for modifying the record that is already deleted. The avoid such situation, R/3 system has provided Logical Unit of Work, which is defined as a locking mechanism to protect transaction integrity. Of course, there are other measures, which ensures data integrity like check table i.e. foreign key relationship. Within SAP system there are three types of transaction and may be distinguished as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; Database transaction known as LUW. It can be defined as a period in which operation requested must be performed as a unit, i.e. all or nothing operation. At the end of LUW, either of the database changes are committed or rolled back.&lt;/P&gt;&lt;P&gt;&amp;#149; Update transaction or SAP LUW. One SAP LUW can have several databases LUW. So a set of a database is either committed or rolled back. The special ABAP/4 command COMMIT WORK, marks the end of a SAP LUW.&lt;/P&gt;&lt;P&gt;&amp;#149; ABAP/4 transaction. Is made up of a set of related task combined under one transaction code. ABAP/4 transactions are for programming environment, in which ABAP/4 transaction functions like one complete object containing screens, menus and transaction codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R/3 system has provided in built locking mechanism, which defines the Logical Unit of Work. Also user can set his own locking mechanism. The LUW starts when a lock entry in the system table is created, and it ends when the lock is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To provide the user the facility to communicate with the table in order to modify or delete or insert data, R/3 has provided tool called SCREEN PAINTER. This tool allows you to design screen, process screen through program and update the database table. SAP has provided one and only one way to update the database table, i.e. transaction. Though you can update database table by using open SQL statement through program, SAP usually doesn&amp;#146;t recommend this kind of updating. Many standard transactions are available to update standard table but if the need arises, the developer should be able to develop new transaction, which allows the updating of database tables. This can be achieved by using various components of screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 07:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307429#M504935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T07:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: luw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307430#M504936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Database (LUW)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;A database LUW is the mechanism used by the database to ensure that its data is always consistent.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SAP (LUW)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;An SAP LUW is a logical unit consisting of dialog steps, whose changes are written to the database in a single database LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 07:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307430#M504936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T07:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: luw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307431#M504937</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;1.SAP LUW----COMMIT AT THE END OF TRANSACTION&lt;/P&gt;&lt;P&gt;2.DB LUW------COMMIT AFTER EVERY SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database LUW vs. SAP LUW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of the database, an LUW is a sequence of data operations that cannot be divided up . The operations are either carried out in full or not at all. Database LUWs are modules which go to make up the database procedures for consistent data processing. An R/3 transaction can include several database LUWs (see example above), each of which can be terminated with a database COMMIT, which is generated automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By way of contrast, an LUW for the R/3 System is a business process, which cannot be divided up. The process is either executed in full or not at all. The SAP LUW of an R/3 transaction usually has to contain several database LUWs. Under normal circumstances, it contains a dialog transaction (which maps a business process), and the command for writing the data to the database (update).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In each database LUW, data is written to the database to special update tables (and not to the application tables). Once the dialog area has been completed, all of the data in a database LUW is copied to the application tables: the update request is then performed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LUW AND ITS TYPES CAN BE OBTAINED FROM THE LINKS GIVEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bca79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bca79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 07:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307431#M504937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T07:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: luw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307432#M504938</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;go thru this link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 07:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307432#M504938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T07:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: luw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307433#M504939</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;Database LUW is a series or sequence of inseperable  database operations which ends with a database commit.as mentioned these database perations cannot be seperated into individula steps or tasks.The database LUW is either fully executed by the database system or not at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP LUW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A logical unit consisting of dialog steps, whose changes are written to the database in a single database LUW is called an SAP LUW. Unlike a database LUW, an SAP LUW can span several dialog steps, and be executed using a series of different work processes. If an SAP LUW contains database changes, you should either write all of them or none at all to the database. To ensure that this happens, you must include a database commit when your transaction has ended successfully, and a database rollback in case the program detects an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u are clear with the reply.&lt;/P&gt;&lt;P&gt;reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 07:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307433#M504939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T07:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: luw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307434#M504940</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 clear with the above explanation? Have you read any documentation on the LUW concept?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try to simplify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Dialog step: End of PAI(current screen) and Begining of PBO(next screen)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB LUW: Is control by system where &amp;lt;b&amp;gt;implicit&amp;lt;/b&amp;gt; commit work or rollback work will be automatically trigger by system at end of every dialog step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP LUW: Where we can control the commit work/rollback work at the end of a transaction(could be the last screen of a transaction. this is base on your design).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg, 1st screen is to key in the Header info, and 2nd screen is to key in the Item Info. By using SAP LUW, we &amp;lt;b&amp;gt;bundle&amp;lt;/b&amp;gt; the DB updating when reach the COMMIT WORK command at the 2nd screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose for SAP LUW is to avoid inconsistency of DB updating. Let take the above eg, if we don't use SAP LUW - bundling concept of update we will face the inconsistency bet. Header and Item data if the DB updating fail at the Item update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning this is the DB LUW type, because end of 1st screen system will update the header data to table implicitly(automatically without our notice), when it comes to 2nd screen eventhough the item data has failed but there is no way for us to perform the rollback for the Header data that we have updated at 1st screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when we use bundling, we place those DB updating code in a FM. Where we call the FM in program as CALL FM xxx IN UPDATE TASK. We place the FM xxA into 1st screen, and FM xxB into 2nd screen. Bear in mind, FM xxA and xxB will only be executed when it reaches the explicit COMMIT WORK command in 2nd screen. And please put message type A in the FMs if the DB updating fails. Once the updating fails, system will auto rollback all the updating included 1st and 2nd screen. For this we can ensure the consistency if 2nd screen fail, 1st screen's update will never carry out as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please code a sample dialog program for this, and debug into it. You will get better understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 08:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/luw/m-p/2307434#M504940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T08:53:54Z</dc:date>
    </item>
  </channel>
</rss>

