Explanation required about LUW(Logical unit Work) and V1 nad V2 updatations

Hi,
Could you please explain about LUW(Logical unit Work) and V1 nad V2 updatations with examples.
Thanks,
Madhu

Hi madhusudhanarao,
1.   LUW(Logical unit Work)
  Its nothing but a technique of
  ALL OR NOTHING  concept.
(Either all the corresponding database tables
are updated in BUNCH, or
none of them is updated)
2.   V1 nad V2 updatations
They come into picture only when
UPDATE Module (thru Update FM) is used.
v1 = updates which are very urgent and MUST (TIME CRITICAL)
v2 = updates which are necessary but can be done
     after a little time.
regards,
amit m.

Similar Messages

  • What is luw (logical unit of work)

    pls tell me what is luw (logical unit of work)
    what r the types of luw .
    2 what ispurpose of code inspector and extended program check
    pls expalin the diffrence b/w those two
    3what are the candidate keys in db tables
    4 what is the difference b/w  occurs 1 and occurs 2 clauses
    data : begin of itab occurs 0 .
    data : itab type standard table of structure type initial size 1 with header line
    pls tell diffrence between theese two statements
    5can u pls tell what is the client in sap
    pls tell answers to questions
    pls dont give any websites addresses to see answers
    6 what is the transaction from database point of view
    7 what is the variant in alv reports
    how do we use reuse_alv_grid_variant_get fun module in alvs

    hi,
      this gives complete idea
      SAP LUW
    Since, as a rule, an application program is processed by several work processes in succession, and every change of the work process is linked with an implicit database commit , an application program is not automatically linked with a single database LUW. This applies in particular to dialog-oriented applications, in which one database LUW is assigned to one dialog step.
    To ensure the data consistency of application programs that are executed across different work processes, the application statements are not directly executed in an SAP LUW, rather, are first registered and then executed by a single work process, that is, in a single database LUW.
    Two techniques are available for bundling the change statements in a database LUW:
    Bundling via function modules (update)
    Through the statement CALL FUNCTION...IN UPDATE TASK, an update function module is registered for subsequent execution in an update work process.
    Bundling via function modules (transactional RFC)
    Through the statement CALL FUNCTION... IN BACKGROUND TASK DESTINATION, a remote- compatible function module is registered for subsequent asynchronous execution via the RFC interface (transactional RFC ).
    Bundling via subprograms
    Through the statement PERFORM ... ON COMMIT, a subprogram is registered for subsequent execution in a different work process.
    Statements for SAP LUWs
    A SAP LUW is controlled via the Open SQL statements COMMIT WORK, ROLLBACK WORK and SET UPDATE TASK LOCAL.
    Note
    A function module can be classified either as an update function module or remote-compatible, but not both at the same time. The update helps realize SAP LUWs within an SAP System, while the transactional RFC creates LUWs in distributed systems.
    COMMIT WORK
    Variants:
    1. COMMIT WORK [AND WAIT].
    2. COMMIT CONNECTION con.
    Effect
    Terminates an SAP LUW and stores the changes.
    Variant 1
    COMMIT WORK [AND WAIT].
    Effect
    The statement COMMIT WORK completes the current SAP LUW and opens a new one, storing all change requests for the currenta SAP LUW in the process. In this case, COMMIT WORK performs the following actions:
    It executes all subroutines registered using PERFORM ON COMMIT.
    It triggers an internal event in Object Services that ensures the registration of changes in persistent objects as the last update function module, as well as the subsequent initialization of persistent object attributes.
    It initiates the processing of all registered update function modules in the update work process.
    This executes all high-priority update function modules registered using CALL FUNCTION ... IN UPDATE TASK in the order of their registration and in a common database LUW. If you do not specify the addition AND WAIT, the program does not wait until the update work process has executed it (asynchronous updating). If you specify the addition AND WAIT, however, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating).
    If all high-priority update function modules are completed successfully, the statement executes the low-priority update function modules together in a common database LUW.
    In parallel, it also executes the individual function modules registered using CALL FUNCTION ... IN BACKGROUND TASK DESTINATION in a separate database LUW for each destination.
    It handles all SAP locks set in the current program according to the value of the formal parameter _SCOPE of the corresponding lock function modules.
    It triggers a database commit that also terminates the current database LUW.
    The completion of statement COMMIT WORK triggers the event TRANSACTION_FINISHED of the system class CL_SYSTEM_TRANSACTION_STATE, where the parameter KIND has the value of the constant CL_SYSTEM_TRANSACTION_STATE=>COMMIT_WORK.
    If the statement COMMIT WORK is executed by calling special programs, be aware of the following:
    In a program executed using batch input, or if you have called the program using the USING addition of the statement CALL TRANSACTION, COMMIT WORK terminates the batch input processing when using the corresponding settings.
    In a program called using CALL DIALOG, COMMIT WORK initiates the processing of subroutines or updated function modules registered using PERFORM ... ON COMMIT and CALL FUNCTION ... IN UPDATE TASK. Therefore, it does not complete the current SAP LUW. The SAP LUW cannot be completed until you execute the COMMIT WORK statement in the calling program.
    You cannot execute the COMMIT WORK statement during the updating procedure or during the execution of subroutines registered using PERFORM ... ON {COMMIT|ROLLBACK}.
    System fields
    sy-subrc Meaning
    0 You have specified the AND WAIT addition, and the updating of the update function modules was successful.
    4 You have specified the AND WAIT addition, and the updating of the update function modules was not successful.
    The COMMIT WORK statement always sets sy-subrc to 0 if the AND WAIT addition is not specified.
    Note
    The COMMIT WORK statement closes all database cursors . Open SQL statements that access a database cursor later ( SELECT loop and FETCH) raise an exception that cannot be handled.
    Variant 2
    COMMIT CONNECTION con.
    Note
    This statement is for internal use only.
    It cannot be used in application programs.
    Effect
    The COMMIT command is not executed on the standard database, but only on the secondary database connection specified by con. con is the name of the database connection as it was specified in the table DBCON in the column CON_NAME. The database connection con can also be specified dynamically in the form (source_text) - the source_text field contains the name of the database connection. The source_text field must be of the type C or STRING.
    On the specified secondary database connection, the database commit:
    Closes all open database cursors (OPEN CURSOR)
    Releases all database locks
    Note
    Note that the COMMIT CONNECTION DEFAULT statement unlike COMMIT WORK executes a pure database commit on the DEFAULT connection.
    Exceptions
    Non-Catchable Exceptions
    Cause: COMMIT WORK is not possible in a FORM that was called using PERFORM ... ON COMMIT.
    Runtime Error: COMMIT_IN_PERFORM_ON_COMMIT
    Cause: COMMIT WORK is not allowed in the update.
    Runtime Error: COMMIT_IN_POSTING
    ROLLBACK WORK
    Variants:
    1. ROLLBACK WORK.
    2. ROLLBACK CONNECTION con.
    Effect
    Terminates a SAP-LUW without storing the changes.
    Variant 1
    ROLLBACK WORK.
    Effect
    The statement ROLLBACK WORK closes the current SAP-LUW and opens a new one. In doing so, all change requests of the current SAP-LUW are canceled. To do this, ROLLBACK WORK carries out the following actions:
    Executes all subprograms registered with PERFORM ON ROLLBACK.
    Deletes all subprograms registered with PERFORM ON COMMIT.
    Raises an internal exception in the Object Services that makes sure that the attributes of persistent objects are initialised.
    Deletes all update function modules registered with CALL FUNCTION ...IN UPDATE TASK from the VBLOG and deletes all transactional remote Function Calls registered with CALL FUNCTION ... IN BACKGROUND TASK from ARFCSSTATE and from ARFCSDATA.
    Removal of all SAP locks set in the current program in which the formal parameter _SCOPE of the lock function module was set to the value 2.
    Triggers a database rollback, which also ends the current database-LUW.
    After completion of the statement COMMIT WORK, the event TRANSACTION_FINISHED of the system class CL_SYSTEM_TRANSACTION_STATE is raised, in which the parameter KIND has the value of the constant CL_SYSTEM_TRANSACTION_STATE=>ROLLBACK_WORK.
    Variant 2
    ROLLBACK CONNECTION con.
    Note
    This statement is for internal use only.
    It cannot be used in application programs.
    Effect
    The ROLLBACK-statement is not executed on the standard database but only on the secondary database connection, specified through con. con is the name of the database connection as it was specified in table DBCON in column CON_NAME. The database connection con can also be specified dynamically in the form (source_text), in which the field source_text contains the name of the database connection. The field source_text must be of the type C or STRING.
    Notes
    As all opened database cursors on the respective database connections are closed at ROLLBACK, the attempt to continue a SELECT-loop after a ROLLBACK, leads to a runtime error. Due to the same reason, a FETCH after a ROLLBACK to the then closed cursor, leads to a runtime error. You have to make sure that cursors that are still open, are no longer used after ROLLBACK.
    After execution of the statement ROLLBACK, SY-SUBRC is always equal to 0. It is not necessary to check if SY-SUBRC is unequal to 0 after ROLLBACK.
    ROLLBACK must not be used during update (CALL FUNCTION ... IN UPDATE TASK) or during the execution of FORMs, which were registered with PERFORM ... ON COMMIT resp. PERFORM ...ON ROLLBACK.
    The statement ROLLBACK WORK is implicitly executed if a message of the type A is treated with the addition ERROR_MESSAGE when calling a function module with CALL FUNCTION.
    Exceptions
    Non-Catchable Exceptions
    Cause: ROLLBACK WORK is not allowed within a FORM that is called with PERFORM ... ON COMMIT or PERFORM ... ON ROLLBACK.
    Runtime Error: ROLLBACK_IN_PERFORM_ON_COMMIT
    Cause: ROLLBACK WORK is not allowed within an update.
    Runtime Error: ROLLBACK_IN_POSTING
    SET UPDATE TASK LOCAL
    Syntax
    SET UPDATE TASK LOCAL.
    Effect
    This statement specifies that the high-priority update function modules - registered during the current SAP LUW using CALL FUNCTION ... IN UPDATE TASK - are registered in the ABAP memory instead of the VBLOG database table. In addition, it specifies that the current work process and not the update work process run these modules during the current database LUW, when the COMMIT WORK statement is executed. This statement has no effect on low-priority update function modules.
    At the beginning of every SAP LUW, the local update function is deactivated. If you wish to use it, you must reactivate it again before the first update function module is registered.
    System fields
    sy-subrc Meaning
    0 The local update function is activated.
    1 The local update function has not been activated, because the program has already registered at least one update function module for the normal updating procedure in the current SAP-LUW.
    Notes
    The local update function performs a synchronous update according to the COMMIT WORK statement, independent of the addition AND WAIT.
    The occurrence of a database rollback during the local update affects all previous change requests.

  • Related to LUW(logical unit of work)

    Hi Experts,
          Based on an inbound idoc i need to change some data in delivery. SD_DELIVERY_UPDATE_PICKING is used to update delivery(PGI details). And also i need to change some other data(which is not possible with the above function module), so i used WS_DELIVERY_UPDATE.
           But the problem is these 2 function modules are calling the standard SAP routines which are used in the program(SAPLV50L)  which used for VL02N.
         Now i changed my code, instead of FM <b>WS_DELIVERY_UPDATE</b>  i used BDC, now it is giving error like 'This delivery(number) is currently processed by another user (my user id) which means i am trying to change it in same program. 
       How can i use these above 2 Function modules in my program. Even i am using COMMIT WORK it  creates problem.
        Is there any Function module or any command(other than COMMIT WORK) to ends a LUW(Logical Unit of Work).
       I need your inputs.
    cheers,
    Bujji

    Hi,
           You can do one thing to over come this problem.....
    After calling the 1st function module .....using do --while loop check if the update has taken place by checking the tables.......Once its done you can call the second function module......
    I think we can also check for locked objects ....let me think over it
    regards,
    vijay

  • I had to change my Apple ID and password in itunes. Now my icloud doesn't work and I can't update my apps on my iPhone. I have looked at suggestions on the community pages and apple suggestions but none of them are relevant to iOS 8.1.2  icloud just

    I had to change my Apple ID and password in itunes. Now my icloud doesn't work and I can't update my apps on my iPhone. I have looked at suggestions on the community pages and apple suggestions but none of them are relevant to iOS 8.1.2
    icloud just keeps bringing up my old email address & asking for my old password which doesn't exist anymore and when I try to sign out of icloud it wants my old password, when I tried to change my primary email back to the old one it wants me to verify it through an email address that doesn't exist. Please can you help me sort out this nightmare.

    Hi skippy2012trev,
    Welcome to the Apple Support Communities!
    I understand that you updated your Apple Id and password but now you are being prompted for the old information in iCloud. You are on the right track by changing the Apple ID back to the previous email address temporarily so that you can sign out. You should not need to verify the email address. After you edit the Apple ID back to the old email address and then sign out of iCloud on your iPhone, edit the Apple ID back to the address you would currently like to use. There is no need to change the password again, only the email address, unless you prefer to update the password again.
    If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support
    Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't help, try these steps:
    Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    Tap Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
    Scroll down and tap Sign Out, then tap Sign Out to confirm. If you're using iOS 7 or earlier, tap Delete Account, then tap Delete to confirm.
    Tap Keep on My [Device] or Delete from My [Device]. In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
    Enter the password for your previous Apple ID.
    Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    Return to Settings > iCloud and sign in with your new Apple ID.
    Cheers,
    Joe

  • HT1338 java doesn't work and there is no update (via apple) available.

    Now running mountain lion. Unfortunately java doesn't work and there is no update (via apple) available. What do I do?

    Open Terminal (Applications/Utilities/Terminal.app) and type
    java -version
    press 'return' on the keyboard.
    Either
    1. You get a version number for Java, in which case enable Java in
    Applications/Utilities/Java Preferences.app
    Or
    2. You get an installer window pop up. After clicking through and installing that, enable Java as in 1. above.

  • HP Ceement not working and continuous failure to update windows

    I had a troouble with the screen and had it replaced to LED, and after that, it came into my notice that whenever I startup my system, the dialog box showing HP Ceement not working pops up. Also, there are options with check online for troubleshooting, but it did not work out when I tried it.
    The another thing related with the issue (my guess only) is that, the original windows 7 home basic installed on the system is failing to get updated. the updates are identified and downloading also occurs. But, while installing, it always shows installation failed. This also seems to match approximately with the date in which I changed the display. So, is there any connection between the service done, and these two issues? and is there any way for me to rectify this?
    I also should inform you guys, there is absolutely no other issue with the pc.
    Thanks in advance,
    Dileep

    Hello @Dileep008,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that HP CEEment is not working and continuously fails to update Windows on your notebook computer, and I would be happy to assist you in this matter!
    To rectify this situation, I recommend performing a backup and recovery of your operating system. This can be done by following the steps in this document on Backing Up Your Files (Windows 7), as well as Performing an HP system recovery (Windows 7). This should help return your system back to factory defaults.
    If the issue persists, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    I hope this helps!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • HT1918 I'm trying to find the none option to cancel my CC information as it's not working and i want to update my App .  please help

    I'm trying to find the none option to cancel my CC information as it's not working and i want to update my App . 
    please help

    Unfortunately, AT&T does not allow installation of non-Market apps on any of its Android phones.
    You can find instructions online for using the "adb" developer tool to install non-Market apps, or you can wait for an upcoming beta release of Firefox which will be distributed through the Android Market, probably within the next month.

  • RE:  LUW ( LOGICAL UNIT OF WORK

    HI EXPERTS
           WHAT DO YOU MEAN BY " LUW  "
       CHEERS
       NAREN

    Hi,
    Logical Unit of Work
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/7af4b9a79e11d1950f0000e82de14a/frameset.htm
    regards
    Happy Tony

  • My ipod touch is telling me that the skype and twitter apps need updating. When I try to run them they fail. I have tried deleting the apps via itunes but it doesn't work and I have tried updating the apps via itunes and it says they are updated.

    My ipod touch is telling me that the Skype and Twitter apps need updating.  When I try to update them they both fail. I have tried numerous times.  I have tried connecting the ipod to itunes and removing the apps, to reload them but that does not work either.  If I try and update the apps through itunes the system tells me they are updated.  Can anyone assist please?

    - Try a reset. It cures amny ills
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Have you tried deleting them from the iPod and then redownloading them dorectly to the iPod?
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Why does my new Air getting a "hang up" on the Internet in about 10 minutes of work and I have to close it and open it and go on...?

    Why does my new Air getting av "hang up" on the Internet in about 10 minutes and I have to lock it and then start again????

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.
    If you bought the product in the U.S. directly from Apple (not from a reseller), you also have 14 days from the date of delivery in which to exchange or return it for a refund. In other countries, the return policy may be different. If you bought from a reseller, its return policy applies.

  • Lightroom 4.2 adjustment brushes aren't working (and weren't before update either)

    When I go to use my adjustment brushes, I would select the one I wanted to use and then go try to use it.  As soon as I first let go of my mouse, the brush would change to custom.  Since updating to 4.2, that has stopped switching, but my brushes still don't work. I have tried multiple brushes and it's all of them, not just one particular one.  I have tried restoring my presets, that didn't work. I have tried deleting all of the presets from the folder, restarting Lightroom and re-importing them, that didn't work. I updated Lightroom, that didn't work.  I have restarted my computer and that didn't work.  The thing is, is that they HAVE worked before.  I was switching between some catalogs and once I was done with that, they stopped working.  So I'm not sure if I did something while switching between catalogs or not.  I use these brushes all the time and they are a significant part of my workflow!!! Any ideas?

    Hi Maggie, do you mean the preset name changes to custom?  Does that sound like this bug: http://feedback.photoshop.com/photoshop_family/topics/lr4_1_self_created_preset_brush_prob lem ?
    When you say they don't work, have you checked the Flow slider value?
    And if you go to preferences, is 'store presets with catalog' checked?  That could explain it working in one catalog but not others.

  • Hi, I have the iPhone 4, 32GB, version 4.3.5 (8L1) and for some reason when I connect it to the laptop, it starts synchronising but never goes beyond step 1. I have tried evrything, but it does not work and now I cannot update the iPhone s/w. any clue?

    Hi, I have the iPhone 4, 32GB, version 4.3.5 (8L1) and for some reason when I connect it to the laptop, it starts synchronising but never goes beyond step 1. It goes on syncing forever, without actually doing anything. I have tried everything, wiped the phone numerous times, deleted all files from the laptop but still no resolution. As a result, the phone does not really synchronise.
    This started somewhere in May 2011 when I upgraded what proved to be a problematic s/w version and the phone has not recovered since.
    Now I cannot update the iPhone s/w any longer.
    Any clue?

    You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.

  • I can't get facetime or imessage to work and i have just updated my ipod to get them

    This is my first post. I have just updated my ipod and it has given me things like, Imessage, reminders and newsstand. I tryed to start up imessages and it said:
    "An error occured during activation. Try again." so i do and it comes up with the same message. It does the same for facetime. I've had my ipod for over a year  so im not new to facetime just imessage.
    It might just be me but has anyone else had this problem or have any ideas how to sort it?

    Have you looked at this previous discussion:
    Can't Activate FaceTime

  • Flash player is not working and have downloaded most updated version

    Downloaded and restarted my phone and I have the Motorola Electrify

    Sorry but we are unable to support Flash on phones with the Tegra 2 chipset. https://bugzilla.mozilla.org/show_bug.cgi?id=703056

  • HT6147 I keep trying to download iOS 7.0.6 for my wife's iPhone 4 and tried twice for about 26 min each time and them it says update didn't install correctly? Who do I call for help with this?

    Why does this update not install? My wife's phone currently has version 5.1.1

    Do the Update using iTunes on your Computer.
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch
    Make sure you have the Latest Version of iTunes (v11) Installed on your computer
    iTunes free download from www.itunes.com/download

Maybe you are looking for

  • I need a vi converted from LabVIEW 9.0 to 8.6 or 7.1

    I have a few vis that need to be saved to an earlier version. These are in version 9.0 and I need them in 8.6 to open them. It would be better if I could get them in 7.1. Solved! Go to Solution. Attachments: Grab_continuously_new.vi ‏380 KB Mikrotron

  • How do I export a keynote slide to pdf with a transparent background?

    I use Keynote for creating figures for a report I'm currently writing and layouting in Adobe InDesign. Unfortunately I have run in to a quite annoying problem. Because of the page-layout and background graphics in my main report, I need to be able to

  • PR created by MRP only one item each PR

    Hi Gurus, I ran MRP using T-Code MD01. Running succesful. But when I check PR created only had one material each PR, so too many PR Created in the system. The requirement is How can we run MRP then PR created in lot (each PR has many items) ? I've se

  • F4 help for date field on screen painter

    Hi , I created a screen using dialog programming . I have a date field there which is defined as itab-date. The format for this field in Element list is DATS . How do i get a drop down on the date field on the screen . Please advise Thanks !

  • BAPI for Resource Allocation in Process System?

    hi,       In an XI integrated scenario, I have created Project definition,WBS elements, Networks and Network Activities in SAP R/3 Project System by calling BAPI BAPI_PROJECT_MAINTAIN.       Now I want to allocate resources to these network activitie