Dequeue not working in one call

Hi
I am selecting some records based on some selection criteria and acquiring a lock on them by ENQUEUE. After processing the records, I call DEQUEUE. My problem is when I call DEQUEUE, some locks are being released and some are not. For those whose lock is not released, I have to call the DEQUEUE function again.
I have tried debugging but am not able to figure out anything.
Any help would be appreciated. I would be glad to furnish more information as and when required.
Thanks,
Varun

Hi Suhas
The locking is being done by the following code:
LOOP AT lit_tsw_subnode_asgns  ASSIGNING <lwa_tsw_subnode_asgns>.
CALL FUNCTION 'ENQUEUE_/CASTP/EVALASGN'
                  EXPORTING
                    mode_/castp/t_valasgn = /castp/if_cas_constants=>gc_lock_exclusive
                    mandt                 = sy-mandt
                    tsw_guid              = <lwa_tsw_subnode_asgns>-tsw_guid
                    tsw_location          = <lwa_tsw_subnode_asgns>-tsw_location
                    transport_mode        = <lwa_tsw_subnode_asgns>-transport_mode
                    x_tsw_guid            = ' '
                    x_tsw_location        = ' '
                    x_transport_mode      = ' '
                    _scope                = '2'
                    _wait                 = ' '
                    _collect              = ' '
                  EXCEPTIONS
                    foreign_lock          = 1
                    system_failure        = 2
                    OTHERS                = 3.
ENDLOOP.
Each record is being identified uniquely by the parameters passed to ENQUEUE and DEQUEUE
The unlocking is done as follows:
LOOP AT lit_tsw_subnode_asgns_all
          INTO lwa_tsw_subnode_asgns.
          CALL FUNCTION 'DEQUEUE_/CASTP/EVALASGN'
            EXPORTING
              mode_/castp/t_valasgn = /castp/if_cas_constants=>gc_lock_exclusive
              mandt                 = sy-mandt
              tsw_guid              = lwa_tsw_subnode_asgns-tsw_guid
              tsw_location          = lwa_tsw_subnode_asgns-tsw_location
              transport_mode        = lwa_tsw_subnode_asgns-transport_mode
              x_tsw_guid            = ' '
              x_tsw_location        = ' '
              x_transport_mode      = ' '
              _scope                = '2'
              _synchron             = ' '
              _collect              = ' '.
        ENDLOOP.
The entries in the sm12 transaction:
After ENQUEUE:
03.02.2012                                             Dynamic List Display                                                    1
Client     User name     Time......     Lock mode     Table name     Lock Argument     Use Count.     Use Count.
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     3006E09844C8ED8BD5AE10000000A4287F7CBOT      01             0             2
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DDFA4999AB0209A8BECC RIVER RD01             0             2
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DDFA4999AB020F98CD3CIN KELLOG01             0             2
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DDFAB84BC7575B9CF1FBL BURG   01             0             2
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DDFAB88D2EA0BC589CBBL BURG   05             0             1
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DDFAB88D2EA0C875581CIN KELLOG05             0             1
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DDFAB88D2EA0D648F45CBOT      05             0             1
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DDFACFEF944EB8E15E8GR OHIO   01             0             1
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DDFAD81C846AA718D73GR OHIO   01             0             1
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DEFA4999AB020368259BL BURG   01             0             2
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DEFA4999AB02154C96BCIR VILLE 01             0             2
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DEFA4999AB021C04745LIMA      01             0             4
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DEFAB88D2EA0B2D0F03GR OHIO   05             0             1
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DEFAB88D2EA0C298A4AC RIVER RD05             0             1
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     30080215ADEE5481DEFAB88D2EA0D01C9AFCIR VILLE 05             0             1
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     300E8AF874CD31F4727E10000000A4287F7CBOT      01             0             2
300     SARAVAGI     06:04:05     E     /CASTP/T_VALASGN     300################################LIMA      05             0             2
Selected Lock Entries:            17
BR
Varun
Edited by: Varun Saravagi on Feb 3, 2012 6:21 AM

Similar Messages

  • I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them

    Can any one please help me I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them. I have tried all restoring options but no use. please help me

    The mic on my iPhone4 has just quit also. Similar symptoms to yours in that people I'm talking to hear only static or my voice very faintly. The voice/memo recorder also only really records static.
    It happened suddenly and seemed to get better after a day or two but then went completely after another day.
    I'm returning it to Vodafone New Zealand shortly but will have to wait 5-10 days for a replacement. There are NO Apple accredited means to speed this procedure up in NZ.
    We don't even have a single physical Apple Store where you could walk in and talk to a Genius.

  • ADS does not work.(Service call exception)

    Hi All,
    According to SAP note 937697 "Usage of SAP NetWeaver BI Diagnostics & Support Desk Tools", when running the tool, it gives following error:
    ADS does not work.(Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://sapbwd.ni.ad.newsint:50000/AdobeDocumentServices/Config?style=document")
    I have been looking into system to find out how to solve the issue, but could not, is there anyone who can help me with exact instructions what I do need to do.
    Thanks in advance
    sahmad

    Dear Sahmad,
    I would suggest you to check notes 1004321 and 944221. The first one says that mostly of this kind of issues (and I have already seen several ones) is caused for bad passwords for user ADSUSER or this account expired. The second note is a troubleshoot note you can also do.
    You can also follow this procedure to check that:
    Please open the Visual Administrator and browse to Server -> Services -> Security Provider -> Policy Configurations
    In the Components tab you will see the service.destinations policy. Click on this and then click on the AccessDestinations security Role. Modify this and add the J2EE_ADMIN/Administrator user to this role and save.
    Maybe the password is not set correctly as well. I think it worths to be set it again. First you have to identify where your ADSUSER maintained.
    Go to http(s)://<SERVER>:<PORT>/useradmin search for ADSUSER If Datasource:
    - LDAP -> check psw of ADSUSER in LDAP and enter it in SM59
    - UME data -> check psw of ADSUSER  in Visual Admin and enter it in SM59
    - ABAP -> check psw of ADSUSER the ABAP system in the following client:
    Visual Admin->UME Provider->Properties->ume.r3.connection.master.client
    If you want, also, you can change the ADS by the SAP Export Library, as per SAP Note 1112132. It is very simple to activate and will bypass ADS, doing every function ADS does.
    I hope it helps.
    Kind Regards,
    Marcio

  • Flash player does not work under one user account.

    Flash player does not work under one of my user accounts.
    My system: I work with a mac mini with Mac OS X 10.6.8.
    What I have done:
    I installed the flash player maybe one year ago under my "first" user account. At that time this user account had had administrator authorization. In the meantime I had to change this "first" user account in an account without administrator authorization and created an administrator user with which I installed different programms. Lately, the message came up that it would be necessary to update the flash player. I did it; under the "first" user account, but of course with the administrator's password for installing. The installation had been "successful" - so I was told. But it did not run. I tried it again and again. Each time with "deinstallation" first. No way; it did not work.
    After asking Adobe for the reason of the problem, they suggested to install the programm directly under the administrator user. I did that (of course after deinstalling under the "first" user account) with the result, that flash player runs under my administrator and my "second" user account, but not under the first user account. There I am always told to update my flash player.
    With this result, I talked to Adobe. So they told me to contact the producer of the operating software, since this would be a mistake of the operating software.
    And here I am - full of hope to get help from you.
    Thanks for reading. And thanks in advance for helping me.
    Nanny FS

    Any update to provide at all here guys?  Again, in my situation, it's very much rights-related as a standard user doesn't even report that the flash player exists when testing it on the Adobe Flash Version Detection website (despite it showing up in Control Panel and under Add/Remove Programs).  I've already tried giving the C:\Windows\System32\Macromed and files/subfolders appropriate permissions for the standard user and still nothing.  If I either give the user in question full local admin rights or logon as the domain admin, then the Adobe Flash Version Detection website says Flash is installed and Flash works fine.
    Thoughts???

  • Incoming Email not working for one web app, but IS working for others in same farm.

    I have enabled incoming email in a large multi-web application farm running SharePoint 2013 SP1 and the Feb 2015/March 2015 CUs that were pushed down in Windows Updates.  It works just fine for two web applications, but it will not work for one particular
    web application. I see the email land in the /drop folder. If I remove the email address from the library in http://nonworkingapp web
    application and use it on a library in a http://working web application, then the email is processed successfully. Conversely,
    if I take an address from a library in http://working and move it to a library inhttp://nonworkingapp it
    does not work. I've tried multiple site collections on http://nonworkingapp. This rules out any SMTP issues, etc. and means
    the issue is bound to this web application. Permissions are the same between the "non-working" and "working" locations: domain users are members on the site, and the library inherits permissions from the site.  The App Pool and Timer
    Service accounts have rights to the folder and to the library.
    The error in the ULS log is the typical error processing message, but it gives no additional information even though I have enabled Verbose logging.
    The Incoming E-Mail service has completed a batch. The elapsed time was 00:00: 00.0156294. The service processed 2 message(s) in total. Errors occurred processing 2 message(s): Message ID: Message
    ID:
    Typically, you see "alias not found" or some permissions or quota issue here, but this issue is NOT the same as those. In this case NO additional information is provided in ULS.
    Edit: running stsadm.exe -o refreshdms -url http://one/failing/site fixed some similar issues where "Unknown alias" was
    reported even though the list did have an alias (see here:http://blogs.technet.com/b/vinitt/archive/2009/07/15/e-mail-enabled-list-alias-information-is-not-synchronized-between-configuration-database-and-content-database.aspx).
    This did not fix the issue for the case mentioned above.
    What could possibly be the issue preventing incoming email from working on this one web application?

    Thanks for your reply.  Incoming E-Mail was running on all 3 WFE, however I do not think this was the cause.  As noted, _other_ emails send to http://workingapp are working just fine.  I can send two emails - one to a library on http://workingapp
    and another on http://notworkingapp.  The email to http://notworkingapp will sit in the drop folder, while the one to http://workingapp will be processed correctly.  In addition, the ULS log on WFE1 indicates an attempt to process the file fails.
     So clearly, the timer job on WFE1 is running and attempting to process the file.  For kicks, I disabled the service on WFE2 and WFE3, but with no change in the behavior.
    WRT to #1, I have done this already (as noted in the original post).  I can remove an alias from http://workingapp and place it on http://nonworkingapp and it is not processed.  If I return it to http://workingapp it is processed.  In other
    words, I go into Library Settings -> Incoming Email for a working library, and copy the alias, then disable incoming email for that library.  I then go to Library Settings -> Incoming Email for a non-working library, enable incoming email, and paste
    the alias.  Once done, emails sent to the alias are not processed.  I then do the reverse, and it works again.
    On #2, I have already tried multiple libraries on http://nonworkingapp (also as noted in the original post).
    In my environment, incoming email does not work for any library on http://nonworkingapp, but does work for any library on http://workingapp.  Troubleshooting listed above has ruled out any problem with basic mail server configuration or library settings
    - the problem is bound to http://nonworkingapp
    I'm not sure what you mean by "steps to reproduce the issue".  If I knew that, I would probably be able to solve the issue.  The best I could come up with to describe the situation would be:
    Set up SP 2010 in a three-node configuration with multiple web apps
    Enable incoming email and confirm it works
    Migrate to a SP2013 SP1 farm in a three node configuration.
    Enable a new email alias for a library
    Observe that it doesn't work for one web application.
    Obviously, it's pretty unlikely that attempting that in a lab would actually have the same result.

  • Imessage is not working for one person

    My imessage is not working for one person.
    Its been like this for about 2 days
    I have an iphone 5
    imessage is on
    both phones reset network settings,deleted and remade contact, etc.

    Does the other person have iMessage on, too? Is the specific phone number/address you are trying to reach them at show up for them in Settings > Messages > Send & Receive?

  • HT1409 I have done this but it does not work with one of my albums and I dont know why??

    I have done this but it does not work with one of my albums and I dont know why??

    That would be it. Sometimes you can tweak the album & artist names enough for iTunes to download matching art from the store, or you could add a bonus track featuring 1 second of silence and attach artwork to that, or you could convert the files to Apple Lossless.
    tt2

  • Synaptics touchpad on HP Mini 110 Windows 7 32 Bit - not working for one user - working for another

    Hi,
    I recently have an issue with Synaptics touchpad on HP Mini 110 Windows 7 32 Bit - NOT working for one user - working for another.
    Windows 7 updates recently installed ???
    By checking the device properties on the user that works - "Synaptics PS/2 Port Touchpad 13/10/2011 Version 15.3.29.0"
    When the other user logs on, the touchpad works for a few seconds, then a displays a black square with a red diagonal line through it, then the touchpad won't respond. Trying to use the keypad to navigate to system diagnosics or anything to find further info is useless....

    Hey eagle_no11,
    Thank you for joining the HP Support Community!
    I will do my best in assisting to hopefully get the TouchPad to work on the second user profile.
    What I would like to start off with, is to restore the original Synaptics drivers onto the profile that is not working correctly. I have included the document Using Recovery Manager to Restore Software and Drivers (Windows 7).
    Once you have installed the original drivers, you will need to complete all updates from both HP, as well as Windows. For these updates, if you open the HP Support Assistant, and select Maintain, you should see an option for updating.
    Please let me know how these steps do work out for you.
    Have a great day!
    I worked on behalf of HP

  • MOH not working in Directed call park

    Hello All,
    After upgrading the voice gateway from 15.1(2)T2 to15.1(3)T4 im facing this issue.
    MOH is not working in Directed call park. We have 10 Directed call park numbers 100-109, users are parking the calls by pressing trasfer key (transfer key-->dial 100-->transfer key). The Music is stopped playing after the user presses the transfer key for the 2nd time. MOH is working fine in hold and call  park. I can see the MOH session in Show ccm-manager music-on-hold and the same MOH session is continuing after pressing the transfer for the 2nd time, only the music is stopping. There are some sites in the same cluster which MOH working in all conditons but the router is rnning with
    Using: 2900 series voice gateway with H.323, Centralized cluster.
    Assistace will be musch appricidated
    Thanks,
    Murali

    This issue has been identified as new BUG. Cisco is working on this.
    -M

  • My ipad 4th gen touch screen is not working in one area

    I had a screen replacement and now the Ipad 4th gen touch screen is not working in one area ( a strip across the middle). We tried 3 different touch screens with digitizer...any ideas?

    Since Apple doesn't replace screens, they replace the iPad, I presume you had your screen replaced by an unauthorized service provider or perhaps you replaced it yourself. That voids the warranty and the ability to get assistance from Apple. If someone else replaced your screen take it back to them and demand the correct the problem.

  • Flash Player 9 not working on one computer

    I have two computers. Flash Player 9 is not working on one
    computer but OK on the other. It fails using both IE 7 and Firefox
    2. It fails connecting to:
    http://www.adidas.com/us/heritage/home.asp
    and
    http://imdb.com/title/tt0264262/trailers-screenplay-E15244-10-2
    but seems to work OK to this site:
    http://www.adobe.com/cfusion/showcase/index.cfmevent=casestudydetail&casestudyid=207779&lo c=en_us
    . It's got to be some setting on the computer but I can't figure it
    out for the life of me. Help - Please

    Here is what I suspect is the problem:
    The certificate for the Shockwave plug that is needed for the
    Flash player to play the content is invalid when the browser checks
    for it. Maybe this is because it was originally issued by
    macromedia.com and it is now adobe.com. I don't know and no one
    from Adobe has responded to my e-mail about the problem as of yet.
    Very frustrating as visitors to our web site using IE who
    haven't recently updated their players will part of the movie but
    it will not play properly or display any of the text. This happened
    sometime within the last several days as far as I can tell.

  • Microphone of my iphone is not working when i call anyone nobody can listen but me, its working with headphone but its also working with videocam recording, please help me to solve this probelm.

    microphone of my iphone is not working when i call anyone nobody can listen me its working with headphone. but it is working with videocam recording, please help me to solve this probelm.

    Try this:
    1. Reset the iPhone by pressing and holding the sleep/wake and home buttons and releasing them, when the Apple logo appears on the display. Now test again.
    2. If the issue persists: Restore the iPhone without any of your own content, using this description from Apple: http://support.apple.com/kb/HT4137
    3. If the issue persists, Your iPhone need repair.

  • Microphone not working on a call when cellular data is on...any help..ty..

    microphone not working on a call when cellular data is on...The person at the other end of the call cant hear me and when i turn it off it works fine..

    Hi there ravitejanvr,
    You may find the troubleshooting steps in the article below helpful.
    iPhone: Microphone issues
    http://support.apple.com/kb/ts5183
    -Griff W. 

  • Imessage not working on one of the phones associated with my account although imessage is turned on

    have imessage on but imessage not working on one of the iphones associated with my account

    The following may help http://support.apple.com/kb/ts2755

  • I have a macbook air 13 inch, facetime is not working. i receive calls but its dosent connect. can someone please help?

    i have a macbook air 13 inch, facetime is not working. i receive calls but its dosen't connect.  i have already tried resetting it.i am running on 10.7.5.can someone please help?

    I've checked this page over and over - I'm completely updated and I can answer the call on my ipad and iphone, just not my macbook air - any other suggestions? thanks in advance

Maybe you are looking for

  • VGA adapter splitter? 1 external monitor for desktop and macbook

    I recently bought the Apple VGA adapter and it works great with my macbook and external monitor. However I use that same external monitor with my desktop PC. It's becoming a pain to constantly unscrew and plug out the VGA cable. So I'm trying to find

  • Using hyperlinks in dual display mode

    I have a hyperlink to open a new keynote presentation. When working on my laptop, the hyperlink works fine. However, when I'm using an external display, the hyperlink will not work. Any suggestions?

  • Eepc 901 Archlinux with Kdemon and kdm Login Manager

    Hello, 1.) I have a minimal defect or cosmetic effect on the kdm login system. When I start kdm, I get on left and on the right side of the screen a nasty bar. Nasty Bar means it looks like a piece of the background with nasty colours.....(left side.

  • Please help with driver problem trying to reinstall windows 7

    Hi, product is HP 655 Notebook pc operating system windows 7 however due to my daughters negligence (dont know exactly what, do know she very rarely if ever shut it down properly) the computer would go on but but only to black screen stating after ge

  • Adobe premiere elements for 2 camera wedding videography

    I am currently a user of Pinnacle studio 12. I do wedding videography part time and find it fairly easy to edit a wedding shot with two camcorders. I place video from the main camcorder on the main track and video from the second camcorder on the ove