Lock the workitem

Hi,
couyld any one help me on this
our scenario.
We have developed a WORKFLOW and we are initiating it form our WEBDYNPRO ABAP application.
we have integrated our TASK and WEBDYNPRO ABAP APPLICATION name in SWFVISU transaction.
We are getting the workitems to portal UWL also.
we are sending the workitems to the two users at a time
namely 1) USERA
2) USERB
Our issues
1) The user 'USERA' is accessing the woritem from his portal UWL it is working fine.
2) But at the same time the USERB also accesing the same workitem
How can we lock the workitem to the other users if some one is being accesing the particular workitem.
Thank You,
Swetha Chevuru

Hi,
Please use the following FM to lock/unlock the workitems.
DEQUEUE_E_WORKITEM
ENQUEUE_E_WORKITEM
Sample code :
CALL FUNCTION 'ENQUEUE_E_WORKITEM'
EXPORTING
*   MODE_SWWWIHEAD       = 'E'
*   CLIENT               = SY-MANDT
    WI_ID                = '000000068635'
*   X_WI_ID              = ' '
*   _SCOPE               = '2'
*   _WAIT                = ' '
*   _COLLECT             = ' '
EXCEPTIONS
   FOREIGN_LOCK         = 1
   SYSTEM_FAILURE       = 2
   OTHERS               = 3.
Result : workitem will be locked to process by another user and you can find and entry in SM12.
Thanks and regards,
SNJY

Similar Messages

  • Is there a way to create a password protected folder for pictures or lock the photos app? For Ipad Air and Iphone 5s.

    Is there a way to create a password protected folder for pictures or lock the photos app? I want to do this for Ipad air and Iphone 5s. I have other family members that use my Ipad and Iphone and do not want some pictures to be able to be viewed.
    Thanks

    Use 3rd party apps like Photo Manager Pro.

  • How do you lock the screen on iphone 4?

    How do you lock the screen on iphone 4 while on a call? I mute calls, activate face time and I have even called someone by accident during a call. I know there has to be a way to fix this. Please HELP!

    It locks automatically when you hold it to your head.
    If it fails to do this, then remove the case and see if it solves it.
    If it does not, then do the basics - restart, reset, restore.
    If that does not solve it, then make an appointment at the genius bar.

  • Is there a way to lock the phone's touch screen during a phone call?

    I just purhased my iPhone and I noticed that during a phone call I may accidentally tap Mute or Speakerphone with my cheak, depending on which hand I hold the phone in. Also when I hand the phone over to someone they may accidentally tap a button, and in the worst scenerios they will accidentally end the call.
    Is there a way to lock the screen or something to prevent any of the above from occuring?

    Their currently isent a way to disable the buttons but what you can do is click the home button during a call after pressing loud speaker and that will separate you from the call options and take you to the home screen and on the top it will have say call active and you can click that to renter the call note the call will still be active but when you hold it next to your face the screen should temporally go dark. Steve jobs was the one who came up with when the top sensor is active the screen will go dark and disable on screen button pressing when it is press against your face

  • Problem with unlocking and locking the Materials in MARA using idocs.

    We are sending a inbound idoc from one cluster to the other to update the materials
    If the material is locked ( MARA-MATFI=x ) before it needs to be unlock it  ,update it and lock again .
    If its not locked ,we just need to update it and lock the material .
    When we are trying to implement this the materials are not getting locked at all times .
    the update inbound idoc is being sent to 5 clusters at a time .
    The same material is getting locked in some clusters and some it is not . (But the data is being updated in all the clusters )
    Can you please suggest me a solution or give me an idea where the problem would be lying.

    The client has a Keystone Server where alll the Master data is kept and there are 5 Production Servers .
    When ever there are any updates to the Materials they are first updated in the Keystone server .
    And with the help of a Batch Job they send inbound idocs to the 5 Production Servers.
    On the Production servers if the material in MARA  that needs to be updated is locked ,it needs to be unlocked updated and locked again .
    Hope i have  given u the clear idea of the scenario

  • When my iPhone 4S (with ios7) experiences a failed call while connected to my Bluetooth hands free in my car(screen locked) the failed call appears on the locked screen, as it should, then when I unlock the phone it automatically redials the failed call,

    When my iPhone 4S (with ios7) experiences a failed call while connected to my Bluetooth hands free in my car(screen locked) the failed call appears on the locked screen, as it should, the problem arises whenever I unlock the phone, it automatically redials the last failed call, it doesn't do this with missed calls that are on the locked screen, if any. It is really annoying as sometimes the phone doesn't respond to attempts to end the call before it connects to the number. I then have to explain that it was my phone and not me, I look like an idiot, which I don't really need any extra help with!! Does anyone have any ideas? I don't want to stop missed call from showing in the locked screen but it might be associated with the failed calls and therefore be the only resolution

    I have had the same issue which was driving me mad but think I have just found a way around it. In iOS 7 if you swipe up on the lock screen to access quick settings and go into timer then click the home button you get into the phone without calling the person back. Not a great 'fix' but hope it works for you. Come on Apple this isn't good enough, fix this bug otherwise you will lose your customers.

  • Help ! To Lock  The Position Of a JFrame ?!!

    hi..
    How can i lock the Position of a JFrme..
    my requirement is to lock the position of a JFrame.. so that it cannot be dragged on a screen.. but must be resizable... is that possible ?
    any suggestions ??
    Thanking You in advance...
    _rG.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    well sorry..
    i guess you are speaking with respect to windows ..
    well i left out to tell ya..
    i'm working on a macintosh..
    so i need the requirement as per the client to lock its position but not the size...
    the desktop on a macintosh can be viewed else with short keys..
    any help ?!!
    _rG.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • To lock the output of a SELECT query

    Hi,
    I want to lock the output of a SELECT query to some transaction.
    I have wriiten it as follows , the output of the query is a single row;
    SELECT empname
    FROM employees
    where empid = 100
    FOR UPDATE;
    Specifying only FOR UPDATE is proper or do i need to specify some more clause ??
    Thanks.

    bscalzo wrote:
    You can also specify the columns to lock if you like:
    select x, y, z from aaa where x = 1 for update of x, y;
    But the locking is still currently only done at the row level - but who knows what the future might offer. May not hurt to have the columns named for thay day when the syntax and engine sync up :)It might be worth to amend that specifying the columns is already particularly relevant if you select from multiple tables/views in order to specify which rows of which table/view to lock.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • I use a French bluetooth keyboard how do i lock the numbers for doing calculations? Does anybody know? i.e. the numbers are above the top row of keys and you have to use the shift key to access them.  You can't use the cap lock key to lock the numbers.

    How do I lock the numbers on a French keyboard if I'm using a small blue tooth keyboard with no number pad?

    How do I lock the numbers on a French keyboard if I'm using a small blue tooth keyboard with no number pad?

  • Is there a way to lock the location of where iTunes is looking for music regardless of the itl file.  I am loading a remote itl file by default ever time but then it's looking for the music on a local drive instead of a network drive.

    So I have a number of PC's in the house that are dumping music into a central PC with a network shared drive.
    The music is dumped into the "automatically added to library" folder on the remote PC.  Itunes is always running in the background.
    When I open iTunes on my local PC a script retrieves the newest ITL file from the remote PC, then the script opens iTunes using the updated ITL file.
    This way I have a fresh copy of the remote library music every time.  The problem is the music location under advanced settings.  I can change it every time but I would like to make this as automatic as possible.  The question I guess is if there is a way to lock the music location or have it change via a script every time iTunes opens.

    You can't change the location of the media folder from a script, neither can you change which library file is opened. I assume your script simply copies the current master library into the normal location for the file on each client machine. Do you not get a file locked error? What about the other library files and the Album Artwork cache?
    Your scheme may work best if you use a common drive letter for your media folder and have it so the media folder is not inside the master library folder. E.g.
    Master library folder at X:\iTunes
    Master media folder at X:\iTunes Media
    Where all the computers see drive X: as the same object, be it the whole of that drive or a shared folder on it.
    If you have the typical arrangement (iTunes Media inside iTunes) then when you copy the library from X:\iTunes into C:\....\iTunes and start iTunes it will attempt to "correct" for the fact that you've apparently moved the library and reset the library folder to C:\....\iTunes\iTunes Media. It should still be able to find the media at the correct location, but if you accidentally load anything up from a client machine it will end up in a local folder.
    If you are not already familiar with it iTunes Folder Watch will be a useful tool for catching up with any additions made on the client computers. You should probably also ensure that each of the clients has the "Keep iTunes Media folder organized" option disabled.
    tt2

  • How can you lock the screen on iPhone in iOS 7 while talking on the phone?

    I am struggling to figure out how to lock the screen of my iPhone 5 during a phone call. In iOS 6, I was able to push the top "on/off" button to lock the screen. In iOS 7, I am able to do this ONLY while using the speakerphone. If I push this button while talking on the phone regularly or using a headphone, it ends the call rather than locking the screen.
    I have found that I am muting calls and disconnecting calls accidentially with my "face" while holding the phone b/c the screen is so sensitive. Does anyone know a way around this?

    I dont know of a way round this, but im having the same issue of puttig people on hold when putting the phone up to my ear.
    This was an issue with the iphone 4 years ago and apple had to do an update to cure it

  • Can you lock the Waveform Zoom to a specific time?

    I edit audiobooks.  Mono voice.  No multi-track, just one channel of voice.  When I select a zoom "width", shall I say, of the waveform - say I'm looking at just :15 seconds of waveform of 25:00 minutes of total audio.  In other words, I'm zoomed in a lot.  Audition frequently re-sizes the zoom, randomly and at will.  (It's will, not mine!) 
    Sometimes it will zoom itself all the way in.  Sometimes it might zoom out to see 3:00 of the 25:00.  It just does it when it wants to.
    Is there a way I can lock the waveform zoom to a specific "width" or time span?
    What is triggering the software to do this? 
    I'm using the Mac version with a bluetooth Mac Mighty Mouse.
    Thank You

    You can prevent the zoom level from changing by setting the "Zoom Sensitivity" to 0% in Audition's Preferences on the General tab. For me that means that the mouse scroll wheel has no effect on the zoom level.
    Some of the buttons and keys (=/-) for zooming in and out will have no effect. What will happen if you try to zoom in is the waveform will be scrolled left/right, but not zoomed in/out, so the CTI is centered in the display.

  • Is it possible to lock the volume buttons on my iPod Touch?

    Something is forcing the volume down button on my iPod down all the time. Because the volume is constantly being turned down the volume square is always up in the middle of my iPod. Rather than having to replace the whole volume down button or the whole iPod, is there a way to simply lock the volume buttons on the side of the iPod?

    There is no way to lock them. I would work through the general troubleshooting outlined here to rule out the possibility of a software, although it sounds more like a hardware one.
    http://www.apple.com/support/ipodtouch/assistant/
    B-rock

  • When duplicating a field, even when the original field is locked, the duplicated fields appear at different positions on pages that are the same size. How do I make them uniform?

    I'm trying to put a hidden time stamp field on the bottom of all pages of a thousand page document, yet when I duplicate the field, the reproduced fields appear at different positions on different pages. Is there a way to make them all appear uniformly on each page. I've tried using the Lock function in the Properties menu before duplicating but to no avail. Please help.

    I go to Tools>Forms> Edit...Do you want to detect...No. Add New Field>Text Field. I lay out my field at the bottom of the page, adjust the Properties (Hidden but printable, read only, font, alignment), Lock the Properties. Then I right-click and hit Duplicate.

  • Looking for an App to Lock the Screen while Playing a Movie

    I've been looking for either an app to lock the screen (not turn the screen off like the button on top of the phone) while playing a movie or a media player that will prohibit you from pressing buttons while a movie is playing. The reason I'm looking for this is my son likes to watch movies on my iPhone while we're in the grocery store, but I spend more time restarting the movie or navigating back to the iPod app and restarting the movie than he spends watching it! He likes to press the "done" button or home button which ends the movie. So an app that would prohibit that would be GREAT, but I haven't been able to find one so far. Any suggestions?

    An app will not be able to do this.
    Sorry.

Maybe you are looking for