Lock object is not working automatically

Hi experts,
i have a problem , A table is updated by a program which is used by multiple user . I have used lock function module 'ENQUEUE_E_TABLE ' and 'DEQUEUE_E_TABLE' for that . when updation section occurs first user which come first go through it and for rest users amessage cones 'table is locked by XYZ user' . When first completes the updation resr users is not updating automatically they stand at that position where message comes. How to solve this issue?
Avadhesh Chandra

Hi,
We can lock the table before updating the entries. Two types of locks are there.
1. To lock the entire table. Here when the table is locked by one program, another program will not be able to modify it.
2. To lock the particular record only. Here when the record is locked by one program, the other program can modify records other than the one locked.
For option 1
Use the FM ENQUEUE_E_TABLEE to lock the table and FM DEQUEUE_E_TABLEE to unlock table.
For option 2
Go to SE11. There enter the name of your lock object and create it. Next screen you have to mention which field you want to lock.
For more info. on LOCK OBJECTS go to
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
If you want to lock the entire table, then use the FM said in option 1 in DO-ENDDO loop. 
Run the loop till it gets successful (sy-subrc = 0)
DO.
*Call the FM.
IF sy-subrc = 0.
    EXIT.
ENDIF.
ENDDO.
If you want to just try some number of times rather than keep on looping then can use for eg: DO 100 TIMES.

Similar Messages

  • Authorization Object is not working when report is modified.

    Hi BW Guru's
    We have Company Code as Authorization Object .and we have 3 company Codes (xxxx,yyyy,zzzz).where the users under Company code xxxx are not supposed to view company code yyyy,zzzz data etc.
    I modified an existing Report and transported to production.But the Authorization Object is not working for that report.The Report is defaultly displaying all the company codes data(xxxx,yyyy) for all the users.But for the other reports its(company code ) is working fine.
    What could be the problem?Is theproblem in transporting the objects.But i transported all the objects inluding auhorization object.
    Please send me the solution as it is very much urgent.
    The solution will be def. awarded with full points.
    Regards
    Sanjay

    hi Sanjay,
    please don't post the same question again, check and response back from your previous thread
    Re: Authorization Object is not working when report is Modified.
    hope this helps.
    would be nice if you reward for helpful answers to all of your previous postings, e.g
    docs related to RRI

  • I updated to iOS 5.1 but my camera buttone form the lock screen is not working what should i do

    i updated to iOS 5.1 but my camera buttone form the lock screen is not working what should i do. i tryed restoring but it didnt work .
    When i try the camera loncher  but  it's not working

    i feel stupid now because i didnt know to swipe it up lol
    thanks

  • I purchased my iphone 4s from US, my lock button is not working, I need to get it repaired in India. Please suggest

    I purchased my iphone 4s from US, my lock button is not working, I need to get it repaired in India. Please suggest

    There is nothing you can do except take it back to the US. The warranty is not international and no authorized service center will touch your US phone in India.

  • HT1430 How can you restart your iphone if your lock button does not work?

    How can you restart or turn off your iPhone if the lock button does not work?

    The best way is to let the battery die. Or you can reset the phone settings which restarts everything.

  • I have an hardware issue with my iphone 5 64gb. its lock button in not working. for a fact i know that it can be replaced but my question is this that do they require the bill or anything to replace or they only require the phone in usa

    i have an hardware issue with my iphone 5 64gb. its lock button in not working. for a fact i know that it can be replaced but my question is this that do they require the bill or anything to replace or they only require the phone in usa

    Warranty and support is only valid in the country of origin.  The only exception being the EU where a device bought in any EU country can get warranty or service in any EU country.
    Warranty is determined by device (serial number), no documentation required.
    Apple does not repair devices, they replace them.  For that reason, ensure the device is backed up and any pictures take with the device are copied off the device prior to going in for service.

  • After I updated to iOS 7.0.2 my lock button is not working properly

    After I updated to iOS 7.0.2 my lock button is not working properly I push the button many times and after many failed attempts it locks and sometimes not. I had to use the accesibility tool to lock it manually from the screen, this is really annoying.

    I guess it is.
    Do you have a question, or are you just sharing your experience with us?

  • The auto lock function is not working on the iphone 3gs running ios 6...what should i do?

    the auto lock function is not working on the iphone 3gs running ios 6...what should i do?

    Temporary fix - turn off assistive touch if you happen to have it on.

  • I have the iphone 5 and my lock button does not work. Can apple fix it or give me a new one. Can they still give me a new one even if I didn't buy my iphone 5 from them I bought it from verizon

    I have the iphone 5 and my lock button does not work. Can apple fix it or give me a new one. Can they still give me a new one even if I didn't buy my iphone 5 from them I bought it from verizon

    Alread asked and answered in your previous post - please do not post the same thing multiple times in multiple forums.
    https://discussions.apple.com/thread/5164919

  • Messages not working (automatically quits on opening)

    Messages (7.0.1) is not working (automatically quits on opening) on my desktop 2 x 3.2 GHz Quad-Core Intel Xeon Mac running OSX 10.8.5. I get notifications of new messages (via Notifications app I assume) but every time I try to open Messages, it quits on launch with the Problem Report dialogue window

    Do a backup.
    Quit the application.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.iChat.plist. Move the .plist to your desktop.
    Restart the computer, open the application and test. If it works okay, delete the plist from the desktop.
    If the application is the same, return the .plist to where you got it from, overwriting the newer one.
    Thanks to leonie for some information contained in this.
    If that doesn't work:
    Console post see first post by Linc Davis
    Kernel Panic Log
    If the log won’t post, try posting it here and provide a link in a reply       Pastebin

  • TS3899 Since i have updated my iphone 5s to ios 8 or higher, the push mail does not work automatically, i have to refresh manually !

    Since i have updated my Iphone 5S to IOS8 or higher, the push mail does not work automatically, i have to refresh manually, I haven't this problem with earlier versions !
    I use Microsoft Exchange Mail server.
    Even with Iphone 5 and IOS8, the problem doesn't exist !

    Why would you expect it to work in 8.3, if it didn't work in a previous version? What troubleshooting have you done? Have you tried putting the car system into Pairing mode?

  • My iphone 4 lock button does not work, i turned it off using assesive touch, now it wont turn back on? got any tips for fixing this problem!

    my iphone 4 lock button does not work, i turned it off using assesive touch, now it wont turn back on? got any tips for fixing this problem!

    Hi, braidenwhitesidemate. 
    Thank you for visiting Apple Support Communities. 
    I would recommend going through the steps in the article below.  If the issue persists, see the section labeled Issue not resolved.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Cheers,
    Jason H. 

  • I bought this ipod 4 from a friend the lock button does not work and he doesnt know the password? how do i reset and i cant use my computer????   HELP!!!!!!

    i bought this ipod 4 from a friend the lock button does not work and he doesnt know the password? how do i reset and i cant use my computer????
    HELP!!!!!!

    Place the iOS device in recovery mode usning this program and then then restore via iTunes. The iPod will be erased.
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    For how to restore:
    iTunes: Restoring iOS software

  • My iPhone 5 lock button is not working

    Dear sir,
                  My iPhone 5 lock button is not working please give me an new iPhone I given an compliant on apple store in Bangalore in imagine store in Mastri mall there not responding to my complaint please I suggest you to please replace an iPhone to new one please I suggest you my sleep wake button is not working from few days I love my iPhone please I suggest you to give an new iPhone I thought apple will sought out my problem please I request you I am from Bellary Karnataka India please I request you sir ....please

    Hi Atique ur rehman,
    Thanks for your query.
    If the sleep wake button on your iPhone is unresponsive, first try and reset all setting by going to Settings>General>Reset>Reset All Settings.
    If this does not resolve the problem, I would sound more like a hardware based issue.
    I would recommend that you contact AppleCare so they can run further tests and diagnostics to help you solve your solution better.
    If you can also access an Apple Store Genius Bar or Apple Authorized Service Center, that would be much better.
    Go to https://locate.apple.com/country for further support with your device!
    Thanks,
    KL

  • Power /screen lock  button does not work

    Hello
    I've bought an İphone 5 on january 2013 from NY,USA.But it's power/ screen lock butto does not work since last week. Now I'm in Turkey. What can I do for service support?Is it possible to get guarantee benefit in Turkey?I'm so desperate about this issue battery runs out so quickly, unwilling calls...please guide me to solve this problem...

    Hi aslsfr,
    If you are looking for more information on the service options for your iPhone in Turkey, you may find the following page helpful:
    Service Answer Center - iPhone
    http://support.apple.com/kb/index?page=servicefaq&geo=Turkey&product=iphone
    Regards,
    - Brenden

Maybe you are looking for

  • Thunderbolt to VGA works find, to HDMI no longer works

    I have a late 2011 model Macbook Pro, running the latest Yosemite update.  I can plug in my Thunderbolt to VGA adapter and everything works just fine.  But when I plug in my Thunderbolt to HDMI adapter, the display will not be detected.  I've tried h

  • Can't get [ ] brackets to work to increase or decrease

    Hi I am new to this forum. I have CS2. My C drive crashed and I had to re-format my hard drive, and re-install all of my programs. Since then, my brackets[ ] with not work to increase or decrease brush sizes. I have to use the drop-down menu to chang

  • Imac audio out to hi-fi amp

    hi, i just got my second iMac a couple of days ago & decided to connect it to my stereo amp . for my previous iMac i made a stereo 3.5mm ''headphone'' jack to two rca plug cable which worked fine even though the 3.5mm mini jack didn't fully seat in t

  • How to get the query execution time

    Hi, I am new to oracle and I am trying to get the execution time of a query.I tried the command set timing on and executed the query.But,the time it gives me is including the display of results.In my case,I ran a query against 50 million records and

  • XSL-process in C XML-parser

    L.S. I get a memory-leak when executing xslprocess in a loop without initiating my input-xml and xsl-contexts.: xctx=xmlinit( ) /* (xml invoer initialiseren) */ xslctx=xmlinit( ) /* (xsl invoer initialiseren) */ for (i=0;i<10;i++) { resctx=xmlinit( )