Lock Object. Want to see if it's locked.

Hello to everyone.
I have got a question about lock objects.
There is a Z-table in abap dictionary. During the processing of my report some strings from this Z-table are selected. To select strings i use the SELECT statement. But there can appear the situation when two users ( or more)  run my transaction, so the same strings can be selected and then processed. To avoid this situation i've created the lock object with cumulative lock mode ( 'X' ) for this Z-table and put the calling of ENQUEUE function into the code. To test the locking i' ve run my report under two different accounts in the debugging mode. And found that when the  enqueue function is finished , and the current string should be locked in theory, this string can be easily selected with help of select-statement under another account. (Even when the transactions start with delay.)
How can i lock the string in the Z-table so that it could be selected only once during the earlier  launched transaction?
Regards,
alex karpo.

Ho alex,
SAP locking is a cooperative locking model. That means that you have to care for what is possible and what is not possible. You may use enqeue module to set lock for key of every object selected.
If there is already a foreign lock, you should delete the entry from the list or table of selected objects (in memory, not in database).
Or do it as SAP does: If there is a foreign lock, the user is informed and the data can be displayed, not changed.
You can always check the lock by trying to set a lock.
Regards,
Clemens

Similar Messages

  • I want to see PP stock in dry and wet scenarios in parallel.

    I am using PP in a coke plant. The stock is uploaded as wet i.e. ( x tons of coke + y tons of moisture) through 561 movement. This entire stock is then taken up through a stock transfer order process in SD and a goods issue posted. However, my management would also like to see in parallel, the x ton (dry stock) separately also without affecting the MM reports like MMBE. They would also want to see this dry qty diminished when PGI of the wet stock also happens in the same proportion in which they have been PGIed.
    Is there any way in PP to achieve this objective?

    Hi Partha,
    As I perceive, at the moment, you are using only one part number that represents the FG/SFG (mixture of coke & moisture). You create a STO and book a GI against the STO.
    In terms of the PP modul my suggestion would be as following:
    - you should maintain stock for all ingredients (components) >> this would mean the maintanance of separate part number of each component
    - you should maintain BOM for your SFG/FG
    - and you should maintain other suitable master data (work center, routing)
    In this case the process would be to issue a PrdOrd for your FG/SFG. During the confirmation (booking against PrdOrd) you would get your FG/SFG by mvt 101 and consume your components via mvt 261.
    After that you could deliver your SFG/FG to its destination (e.g. via delivery, STO).
    Please make your question clear it is very difficult to understand the process described by you and it's not toatally clear what you want exactly.
    Thanks,
    Csaba

  • Want to see report

    Dear All,
    I can't post in fiscal year 2010. So, I posted data in fiscal year 2008. But when I run reports, system have error message :"Message no. MQ593: Current fiscal year 2008 in company code 1000 does not match present year"
    How do I do? if I want to see reports.Help me.
    Thanks
    Tora
    SEARCH

    Its funny how you can keep asking basic questions, even after your previous threads are locked.
    Please read and respect forum rules.

  • HT201209 i have a bunch of gift cards and want to see if any of them have money on them still, how do i get the balance?

    I have a bunch of gift cards and want to see if any of them have money on them still, how do i get the balance?

    There is no auto-fill, you have to Copy and Paste, or Find & Replace, or if each Card is a free floating Object/s then you can click on them and option shift drag copy them into place.
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&mforum=iworktips ntrick
    Peter

  • After migrating data from Time Machine, some of my photos are not showing up in iPhoto. I get a 'dashed rectangle." When I click on it I get ' ! in a Triangle" When I click on that, I actually can see the photo. I want to see my photos

    After migrating data from Time Machine, some of my photos are not showing up in iPhoto LIbrary view. I get a 'dashed rectangle." When I click on it I get ' ! in a Triangle" When I click on that, I actually can see the photo. I want to see all  my photos in 'Library' view, and I can't figure out how these photos seem to be arbitrarily hidden. Help, please.

    Try these for the first attempt:
    First be sure to have a backup copy of the library if you already don't have one.
    OT

  • User wants to see textual data for smartlist in the reports

    Hi,
    We have a smartlist for employee status-Single,Married. But these are stored as numbers in essbase as 1 and 2. The user wants to see the status as married or single in financial reports. Connection to planning details will do or using any function in the report will do?
    please suggest

    Please close this thread.

  • HT1766 # is not working in my iphone 4s, when i want to see how much credit i have in iphone, i need to put # on that, than it calls and end, it is not working and not showing anything..

    # is not working in my iphone 4s, when i want to see how much credit i have in iphone, i need to put # on that, than it calls and end, it is not working and not showing anything..

    http://support.apple.com/kb/HT1848  Did you transfer your purchased item, take a look at the link

  • HT1351 Only want to see sync songs/artists/albums on iPod touch (not the whole library in iTunes). How to do it?

    I only want to see on iPod touch songs/artists/albums manually selected for sync (not the whole library in iTunes). How to do it? Not sync titles appear in grey colour...

    So if I understand you correctly, you want to be able to sync only certain songs, artists, and albums correct? If so you can configure this set up from under the iPod's Music configuration tab in iTunes as described in the Syncing Automatically section in the Apple support document you linked in at the top of the page.  Note that you cannot select only certain songs, but you can set it up to sync selected Artists, Genres, and Albums.
    If the tab and its configurations are grayed out, it is likely because your iPod is set up for manual management, meaning the manually manage music and videos option is enabled from under the iPod's Summary tab.
    B-rock

  • How can I display the front panel of the dinamically loaded VI on the cliente computer, the VI dinamically loaded contains files, I want to see the files that the server machine has, in the client machine

    I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
    Attachments:
    micliente.llb ‏183 KB
    miservidor.llb ‏186 KB
    rdsubvis.llb ‏214 KB

    I down loaded your files but could use some instructions on what needs run.
    It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
    Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
    hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I have 3 contact books in my address book but i only want to see ONE of them on my iPhone. How?

    I have 3 contact books in my computers address book but i only want to see ONE of them on my iPhone. How?
    I have my Phone book on iPhone GREAT
    my wifes phone book on my iPhone NOT GREAT
    and my sons phone book on my iPhone NOT GREAT
    Previously with iTunes i could choose to synch only one of them leaving the other phone books for my wife and sons phones respectivly
    Now with iCloud i can not find a way to get my wife and sons phone book OFF my iPhone.
    when i set up their telephones i do not want them to have my phone book either.
    whats the trick someone apart from buying a seperate computer for them
    and NO i do not want to create seperate user accounts on my Mac.
    I want to be able to do what i did before
    HOW?
    Book Pro 2.6GHz Intel Core 2 Duo, Mac OS X (10.7.2), No fancy track pad.
    iPhone 3GS, iOS 5, My Sons 11
    iPhone 3GS, iOS 5, My wifes
    iPhone 4, iOS 5, Mine

    Addition to above...
    I need this on iCloud. anyone know where to find it?

  • I rented a movie. I want to see it using different user on same mac for security reason. How can I do this? Home Sharing fails to do this, so far.

    I rented a movie. I want to see it using different user on same mac for security reason. How can I do this? Home Sharing fails to do this, so far.

    Copy the movie from the current library to the correct library.
    iDevices can only sync to one library at a time.

  • I just installed Firefox 5. How can I remove the Bing search from the address bar? I don't want to see Bing at all.

    I just installed Firefox 5. How can I remove the Bing search from the address bar. I don't want to see Bing at all. I tired the Firefox options, right-clicking on the search field and the toolbar selection drop-down but could not find a way to get rid of that unwanted search window.

    *'''at the bottom of firefox''' there is a weird looking greenish circle with a lightning bolt in it*
    1. click it and hover over to '''PREFERENCES'''.
    2. click the second circle that say's '''BING.'''
    3. '''Un-check''' both boxes.
    4. you're done :)
    Note: it's not going to show the google symbol encrypt when you open a new tab it's just going to automatically use google as a search engine.

  • HT1382 how can I restore my back up files from my laptop? i want to see the dates and time that I backed up  my files. is it posssible?

    how can I restore my back up files from my laptop? i want to see the dates and time that I backed up  my files. is it posssible?

    What backed up files?
    Available backups for an iOS device can be found in Edit > Preferences > Devices.

  • I want to see movies in my HBO app, but when I try, I am told that I have to shut down my HTTP in my wi-fi settings. I do not know how to do this. I am a novice at this.

    I want to see movies in my HBO app. I cannot do so because the message keeps coming up that I must take the HTTP off in my wi-fi settings. I do not know how to find this in those settings. I am a novice at this whole thing, so be patient with my ignorance with techie things.

    There is no HTTP in WiFi settings. Are you talking about an HTTP Proxy server? If so, this may mean that the HBO App does not work correctly if you are using a Proxy server for your internet connection. To see if you are using a proxy go to Settings > Wifi and touch the blue ">" to the right of your network name. This will bring up the network connection details. At the bottom will be information about any Proxy server that you are using.
    What exactly is the error message?

  • I want to see both the ssid in same time

    help in aironet 1200
    i hope to help me,
    i have created two ssid with two vlan's but the broadcast is for one ssid only, i want the broadcasting for all my ssid in same time. where that the one ssid be appeared and other one be a hiden.
    so how can i do that?
    I want to see both the ssid in same time
    EXD-AP#
    EXD-AP#sh run
    Building configuration...
    Current configuration : 4617 bytes
    version 12.3
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    service password-encryption
    hostname EXD-AP
    ip subnet-zero
    ip domain name Schoch-home.com
    ip name-server 172.16.0.3
    aaa new-model
    aaa group server radius rad_eap
    aaa group server radius rad_mac
    aaa group server radius rad_acct
    aaa group server radius rad_admin
    aaa group server tacacs+ tac_admin
    aaa group server radius rad_pmip
    aaa group server radius dummy
    aaa authentication login default local
    aaa authentication login eap_methods group rad_eap
    aaa authentication login mac_methods local
    aaa authorization exec default local
    aaa accounting network acct_methods start-stop group rad_acct
    aaa session-id common
    dot11 vlan-name test vlan 1
    dot11 ssid EXDINT
       vlan 30
       authentication open
       authentication key-management wpa
       guest-mode
       infrastructure-ssid
       wpa-psk ascii 7 14120A0F410D243F04796166
    dot11 ssid GUEST
       vlan 20
       authentication open
       authentication key-management wpa
       wpa-psk ascii 7 13000F1646050A3E0B777A62
    username 78e400ed9588 password 7 06515724181E591C014E475354
    username 78e400ed9588 autocommand exit
    username 001e65ee5c38 password 7 135547430E5A512F2E712B606D
    username 001e65ee5c38 autocommand exit
    username 002668ec5b49 password 7 144742595A52722E277D31617B
    username 002668ec5b49 autocommand exit
    username 0022fc5b437b password 7 15425B5E562C28712A67667511
    username 0022fc5b437b autocommand exit
    username 00234d9fa256 password 7 075F711E1D5D1D5C1113595952
    username 00234d9fa256 autocommand exit
    username iqbal privilege 15 password 7 00010B02240A5955
    username c417fea872a3 password 7 04585F575827494F514E571641
    username c417fea872a3 autocommand exit
    username 0016cf264d57 password 7 040B5B5759224A1C5F4D014245
    username 0016cf264d57 autocommand exit
    username exd-hq privilege 15 password 7 00010B02240A5955
    username 00268202706b password 7 15425B5E527279747A64657411
    username 00268202706b autocommand exit
    username 002314054ea0 password 7 091C1E5B4A5443425E58012B7B
    username 002314054ea0 autocommand exit
    username 002436e8f6ca password 7 1249554546585A01722D722B32
    username 002436e8f6ca autocommand exit
    bridge irb
    interface Dot11Radio0
    no ip address
    no ip route-cache
    encryption mode ciphers tkip
    encryption vlan 30 mode ciphers tkip
    encryption vlan 20 mode ciphers tkip
    ssid EXDINT
    ssid GUEST
    speed basic-1.0 basic-2.0 basic-5.5 basic-11.0
    station-role root
    interface Dot11Radio0.20
    encapsulation dot1Q 20
    no ip route-cache
    bridge-group 20
    bridge-group 20 subscriber-loop-control
    bridge-group 20 block-unknown-source
    no bridge-group 20 source-learning
    no bridge-group 20 unicast-flooding
    bridge-group 20 spanning-disabled
    interface Dot11Radio0.30
    encapsulation dot1Q 30 native
    no ip route-cache
    bridge-group 1
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface Dot11Radio1
    no ip address
    no ip route-cache
    encryption mode ciphers tkip
    speed basic-6.0 9.0 12.0 18.0 24.0 36.0 48.0 54.0
    station-role root
    interface Dot11Radio1.20
    encapsulation dot1Q 20
    no ip route-cache
    bridge-group 20
    bridge-group 20 subscriber-loop-control
    bridge-group 20 block-unknown-source
    no bridge-group 20 source-learning
    no bridge-group 20 unicast-flooding
    bridge-group 20 spanning-disabled
    interface Dot11Radio1.30
    encapsulation dot1Q 30 native
    no ip route-cache
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface FastEthernet0
    ip address 192.168.30.10 255.255.255.0
    no ip route-cache
    duplex auto
    speed auto
    hold-queue 160 in
    interface FastEthernet0.20
    encapsulation dot1Q 20
    no ip route-cache
    bridge-group 20
    no bridge-group 20 source-learning
    bridge-group 20 spanning-disabled
    interface FastEthernet0.30
    encapsulation dot1Q 30 native
    no ip route-cache
    bridge-group 1
    no bridge-group 1 source-learning
    bridge-group 1 spanning-disabled
    interface BVI1
    ip address 192.168.30.10 255.255.255.0
    no ip route-cache
    ip default-gateway 192.168.30.1
    ip http server
    ip http authentication aaa
    no ip http secure-server
    ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
    ip radius source-interface BVI1
    radius-server attribute 32 include-in-access-req format %h
    radius-server vsa send accounting
    control-plane
    bridge 1 route ip
    line con 0
    line vty 0 4
    end
    EXD-AP#
    EXD-AP#
    EXD-AP#

    I think that my AP not support the MBSSID doue to it's very old , can  update it ? if i can that how i do that?
    System Software Version: Cisco IOS Software
    Product/Model Number:
    AIR-AP1210
    Top Assembly Serial Number:
    FHK0712J02R
    System Software Filename:
    c1200-k9w7-tar.123-8.JEA3
    System Software Version:
    12.3(8)JEA3
    Bootloader Version:
    12.2(8)JA
    System Uptime:
    3 days, 32 minutes

  • Is there a way to only show some music from itunes match?  my wife doesnt want to see every song we have, only the ones she likes

    Is there a way to hide songs/albumbs in itunes match only on certain devices?  
    for example, I have a huge collection of songs, and my wife only wants to see 'her stuff' on her iphone.
    or am i going to have to create another account just for her, and either rebuy or manualy store the songs on her phone?

    Hi
    You can only use one Apple id for your iTunes match.
    At present there is no way to hide selected songs.
    Whilst all the music will show on you wife's iphone, she could create playlist(s) on your computer to include only her songs.
    Jim

Maybe you are looking for

  • Logitech H800 Wireless Headphones Not Working with Yosemite

    I have an iMac 27" late 2012, 2.9 HGz i5. After installing Yosemite, I no longer get sound via my Logitech H800 headphones. The system recognizes that the USB mini wireless connecter is attached. It also pairs with the headset. However, no sound. I h

  • EDI outbound

    I am doing a EDI outbound for purchase order using message type as ORDERS Idoc type    as ORDERS05 My scenario is as such, a flat file will be having text information and IDOC number and I need to add the outbound idoc with this text information prov

  • Can we have some old stuff back ? (Wishlist & Support)

    I know wishlist wasn't quite working well but we could at least see others opinions and things happening. I've been with BC about 4 years so far and now it feels like the communication between BC and partners has been cut off a lot. There's no wishli

  • Zstrings in Custom Metadata Panels

    I'm trying to create a popup widget in a custom panel that will return a value with an ampersand (&) in it. I do something like this in the item variable "...;Folks{Mom & Pop};..." What gets stored is "Mom Pop" with no ampersand. So I looked at the Z

  • How to Drag a image from a folder and drop it into Photoshop, InDesign using keyboard?

    Hi! Others may think silly about this question but the reality is I have to drag and drop several images into InDesign from a folder each one by one. Is it possible to drag and drop images from desktop (folder) to Adobe InDesign, Photoshop, etc? Than