Release Locks - SM12 - DEQUEUE

I would like to programmatically be able to release locks from SM12. I will potentially have locks set on lock object ERSPLS_LOCK (table RSPLS_S_LOCK). I know majority of you will say this is bad practice, but I really have a business need for this, and would like to avoid the lengthy explanation.
I found the function module DEQUEUE_ERSPLS_LOCK which seems to be created for this purpose, but I cannot figure it out. Can anyone please explain the settings, or supply another FM or program that can release locks based on a certain InfoProvider?
Here are the Function Module selection options with their defaults:
MODE_RSPLS_S_LOCK    Default to 'E'
MANDT                Default to '10' (client)
INFOPROV            
GUID                
SEQNO             Default to '000' (unsure about this)  
LINE                
X_INFOPROV          
X_GUID              
X_SEQNO             
X_LINE              
_SCOPE         Default to '3' (allows function and program to release lock)     
_SYNCHRON           
_COLLECT            
I have locks in SM12 with the following similar criteria:
Table: RSPLS_S_LOCK
Lock Argument: 010GLPFCST                      4989B89EB53D0057...... (about 128 characters long, only the first 10 are similar with the rest)
Lock Object Name: ERSPLS_LOCK
InfoProvider: GLPFCST
Any insight on what settings to use to release these locks from this function module?
Thanks!

Hi,
Ccheck the below link:
http://help.sap.com/saphelp_nw04/helpdata/en/7e/c025bbf011d140bdb22b196208817e/frameset.htm
Reg
Pra

Similar Messages

  • Lock Object - Release only by Dequeue

    Hi ,
    I am using a Lock object but the Locks are getting released as soon as i come out of the program.
    Is there a way to hold the locks till i call Dequeue FM?

    Hello,
    If you don't explicitly release the locks using DEQUEUE* functions they are released implicitly(e.g., DEQUEUE_ALL).
    Details regd. when the locks are released read this online documentation: [http://help.sap.com/saphelp_nw04/helpdata/en/c2/2d7037ecc92a7ee10000009b38f8cf/frameset.htm]
    BR,
    Suhas

  • How to release lock for TP?

    Hi,
    can any one pls tell me how to release lock for TP

    Hey Raja
    Can you be more specific of what is TP?
    Btw, there is a transaction called SM12 where we can lock unlock entries of table or transactions. Check if that can help.
    Kind Regards
    Eswar

  • Function module to hold and release lock on MARD table entry

    Hi Gurus,
    Can you please tell me Function module to HOLD lock on MARD table and the Function Module to release lock on MARD table entry.
    Thanks and Regards,
    Sudipto

    Look via SE11 lock objects, use F4 for tables MAR*, the best for your request is on MARC table with object EMMARCS, so use FM ENQUEUE_EMMARCS and DEQUEUE_EMMARCS.
    Regards,
    Raymond

  • Cannot Release Lock error while Importing mdl file?

    Hi,
    I am trying to import an mdl file in the test enviroment from the development environment.
    No users are working on test environment.
    I start importing the mdl file.
    Then I got the error as "Cannot Release lock:.
    I checked that, no sessions are active and no one is using parallely the owb for testenviroment.
    Could anyone explain, why this error came?
    Thank you,
    Regards,
    Gowtham Sen.

    Did the instance go down whilst doing this?
    Is there more to the log before where you started it?
    Cheers
    David

  • Query on sap locks(ENQUEUE/DEQUEUE)

    Hi All,
    should the sap locks ENQUEUE/DEQUEUE need to be used  for all the updation/insertion  of records ino the table?
    Please confirm.Should this locking technique be used even for insertion of records into the table?
    Regards,
    Pra.

    Hi,
    Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.
    SAP Provide three type of Lock objects. 
    - Read Lock(Shared Locked)
       protects read access to an object. The read lock allows other  transactions read access but not write access to 
       the locked area of  the table
    - Write Lock(exclusive lock)
       protects write access to an object. The write lock allows other  transactions neither read nor write access to 
        the locked area of the  table.
    - Enhanced write lock (exclusive lock without cumulating)
      works like a write lock except that the enhanced write lock also  protects from further accesses from the 
      same transaction.
    You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
    Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
    Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
    Technicaly:
    When you create a lock object System automatically creat two function module.
    1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
    2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
    You have to use these function module in your program.
    Hope this will give a basic idea.

  • Releasing lock on closing NWBC

    Hi..
    I am locking a object when it is edited, when i close the browser i am able to release lock on the object.
    But the same lock is not released when i close the NWBC without saving.
    How to handle this in webdynpro whenthe application is exited abnormally in case of NWBC.
    Please give  your valuable inputs.
    thanks
    Vimal.

    Same problem here with he.net, my ISP. Apple's iPhone Mail.app has a clear bug here. I am unable to check my mail from my desktop for near 5 minutes or so after accessing it on the iPhone. Very annoying.

  • RE: Close cursor to release lock?

    Hi,
    I don't think you will need to release the cursor before the update,
    otherwise the cursor will be rendered useless.
    Regards,
    Peter Sham.
    -----Original Message-----
    From: Phong Tran [SMTP:[email protected]]
    Sent: Monday, March 22, 1999 12:49 PM
    To: [email protected]
    Subject:
    Dear fellow users,
    Following is a simple code showing the use of cursor "cCursor"
    which
    contains clause "for update of col_name". The RDBMS used is SQL
    SERVER 6.5.
    The "sql open cursor cCursor ..." supposes to lock the row for
    update.
    Since ODBC does not support positioned update with clause "where
    current
    of cCursor", I am not sure if you have to close the cursor to
    release the
    lock before updating with the "sql update ..." statement within the
    same
    transaction, or no need to close it before issue the satement.
    Any helps 'd be appreciated.
    Regards
    Phong
    cursor definition for CustCursor:
    select c_balance,c_ytd_payment, c_delivery_cnt ,
    from customer
    where c_id = :cId and c_d_id = :cDId and c_w_id = :cWId
    for update of c_balance, c_delivery_cnt
    begin transaction
    cCursor: CustCursor;
    sql open cursor cCursor(custObj.c_id, dId, wID) on session
    DBConnect;
    sql fetch cursor cCursor into :custObj;
    // update c_balance, c_delivery_cnt in customer using
    custObj.
    // can update while the cursor lock is on this curtomer.
    // ODBC does not support positioned update.
    // close cursor first then update.
    sql close cursor cCursor;
    sql update customer set c_balance = :custObj.c_balance,
    where c_id = :custObj.c_id AND c_d_id = :dId AND c_w_id =
    :wId
    on session DBCOnnect;
    end transaction;
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Mohit,
    check this thread if you want to release lock in web ui by coding..
    Transaction in Edit mode - Unlock transaction
    Hope this helps..
    Cheers,
    Sumit Mittal

  • URGENT : Releasing locks aquired after the session ubruptly terminated

    Hi everybody,
    When a record is edited the record gets locked.
    If the session is ubruptly terminated (PC switched off, Network down or something like that) before the edited record is commited or rolled back and if the same record is accessed after loging on once agian "Cannot reserve record " message is displayed.
    When will such locks get released?
    Is there any way to make the record editable (releasing locks programatically)?
    Thanks
    Brijesh

    The old session should clean up given time - How, depends of course if this is a Client Server Form or a Web Deployed Form.
    If it is a web deployed form then the FORMS60_TIMEOUT (or FORMS90_TIMEOUT) will be used to determine how long to wait before cleaning up the process and releasing the locks.
    If this is client server then it's a database configuration thing.
    There is no way to manually release the locks of an orphaned session in code. The DBMS_LOCK package does have a way of releasing a lock, but I think this is only locks that have been taken out by dbms_lock itself, not a "normal" lock.

  • Pr& po -new release strategy? released/locked/incomplete

    Dear MM experts,
    I would like to understand what it is meaning of
    released
    locked
    incomplete
    while doing assignment of object class thru cl24n for new release strategies,
    I am clear on released & locked, I would like to understand what is "incomplete" means as per SAP.
    kindly clarify
    thanks in advance
    srihari

    Incomplete means - When you go to CL02 or CT04
    you are entering the statu for calss or char as locked or released
    but when you are creating and that time if you have keep the status is in preparation  and without changing the status you start maintainig the data in CL24N than you will see the statu as incomplete.

  • Oracle select for update: not releasing lock

    My JDBC code uses "select for update" to modify record in Oracle database. I tried to simulate network connection down situation.
    After my JDBC code locked on a record using "select for update", I unplugged the network cable. I then tried to run the same code on another computer, but it could not accquire the lock, because the previous lock was not released. I tried sqlplus to lock the record, but failed also. The lock has been there for at least an hour now. I guess it may finally be released, but is there a way for oracle to release the lock as soon as the connection is down? Not know if it is a JDBC setting or oracle setting.

    Dear Friend,
    What you are trying to do is not correct way of checking the concurrency and transaction.
    The reason is as listed below.
    01.Always remember http is a stateless protocol and removing the connection or just closing the browser will never be informed to the database or to the application server thus the transaction monitor (TM)or processor will never release the lock as it will deem that the actor is manipulating the data.
    02.As per locking goes every database is having a �TM� and the default isolation level setting is different like oracle uses serializable DB2udb 7.0 or db2/As400 uses repeatable read. You can change this setting by editing the default setting in the database but be very sure before touching it.
    03.     You can also transpose this with your Application server setting for that piece of code or Globally but again be very sure about it as it will change the entire gamete.
    04.     For releasing lock you have to manually do it or you can change the settings of App server or the Database to release the connection after some wait time.
    Regards,
    Ruchir

  • COMMIT Without Releasing Lock

    Is it possible to keep on locking tables after COMMIT is
    executed?
    I am now writing a batch program to TRUNCATE and INSERT records
    into a working table, which is locked exclusively at the
    beginning. A COMMIT is executed after a fixed number of records
    is inserted (and the last INSERT, of course). However, I
    remember COMMIT will also release lock on the working table.
    The problem is that I wish to keep the exclusive lock on the
    working table until the end of the program. This is because I
    need to further process the working table's contents, which are
    supposed to be "freezed" until the end.
    How can I do that?

    you can try using the dbms_lock package to create your own lock,
    this way you can choose to not automatically release the lock
    when you commit.
    I never used it, but in the oracle documentation you should find
    more information about how to use this package.

  • Release lock record

    hi everybody,
    i want to know how can i release lock record? is there any setting in application server to do this?
    thanks a lot

    Hi
    Please give some more information as your question does not seem to be complete.
    Are you talking about Operating system lock or database lock .
    Please provide the correct release you are currently using .
    Regards
    Sadiq

  • Releasing locks when using "Navigate Pushbutton" in Web Interface Builder

    Hi
    I am creating a basic BPS application in Web Interface Builder for manual data entry into a Cube.
    I have a requirement for a user to navigate away from the data entry screen to a "Start Screen".  To do this, I am using the "Navigate Pushbutton" component.
    When the user navigates away from the data entry screen, I want the locks to be released.  I have attempted to do this using the "End Command" attribute of the Navigate Pushbutton to "True".  According to the Help for this attribute, the following should happen:
    " When this property has the value TRUE, the page context will be lost when you press the pushbutton (and all locks are deleted)."
    However, when I look at the locks in SM12, I can see that the locks remain, even after the user has clicked on the Navigate Button.
    Therefore, it would appear that the "End Command" attribute does not release the locks when it is set to True.
    (By the way, I have also tried setting it to false, but the same issue occurs).
    Has anyone got any advice on how I can solve this?
    (We are running BW 3.1).
    Thanks in advance for any thoughts.

    Hi,
    You are correct this is standard functionality that should work. Please post the solution proposed by SAP.
    As a stop gap you can look at this topic
    User Lock BPS Web interface
    thanks

  • Best way to handle pessimistic locking after dequeueing

    Dear all,
    we have a simple single-consumer scenario where multiple worker
    processes listen to one task queue. Every task is specific to exactly one business
    object that is pessimistically locked (SELECT FOR UPDATE) as soon as
    the AQ message has been fully parsed by a worker.
    Obviously, this may lead to unnecessary waiting. For example, when
    there are 5 successive messages belonging to the same business object,
    having them dequeued by 5 worker processes in parallel will result
    in 1 worker processing its task and 4 workers waiting.
    To me, this seems to be a common use case. How is it "usually"
    handled?
    Best regards,
    Michael

    Hi Paul!
    Thanks a lot for your answers that would completely solve
    my problem if I had another setting :-) . I try to clarify
    things by answering your questions (slightly reordered).
    I have to apologize in advance that I take my description to the
    next level of detail and hope not to deter you too much.
    3. Why is this a single consumer Q when you have multiple business
    areas hanging off it? It would seem an ideal candidate for having
    a subscriber per business area and then subsequently a worker per subscriber.Instead of a multi-subscriber setting, we employ multiple
    queues for different business areas and do some "queue routing"
    in our middle-ware. We wanted the different areas to become as
    detangled as possible (maybe that was unnecessary)
    2. Why lock the database object before processing the message?
    Cant you just rely on oracle's internal row locking mechanisms?
    Do you lock the whole table? If so why? First of all, we only lock one row that designates the "coarse-grained lock".
    I think you will understand this with the description below.
    We have one component that orchestrates our workflows and updates the
    states of our business objects. Let's assume, our basic "business object container"
    was called 'stream'. Different streams are guaranteed to be independent (and hence may be
    concurrently processed). So, a SELECT FOR UPDATE on a stream is enough
    to pessimistically lock the whole business object.
    Such a stream contains a complex graph of sub-objects. When the response
    of, e.g. a 'youtube syncer' component, comes in, the state of many
    objects in this graph may change (which we obviously want to do within a transaction).
    E.g. when all children of a node become READY,
    this node becomes READY which, in turn, may yield its
    parent READY.
    The problem with ordinary row-locking is now: responses for one stream tend to cluster,
    i.e. sometimes there are 100 responses in the queue for one stream, and as state
    updates often have large consequences for the whole state graph, blocking
    (or NOWAIT exceptions) are the rule not the exception, resulting in performance that
    is even worse than coarse-grained locking.
    1. Why have multiple processes DQ'ing from this Q?
    Is the message volume too great for one worker?Some tasks are long-running like transferring large files to remote hosts.
    With workers running on different hosts and networks we have nice
    load balancing.
    Even the short-running jobs take often >1s CPU time and batch
    jobs may generate several millions of AQ messages that we process
    in a cluster.
    Ok, if you reach this line, you certainly deserve my thankfulness :-)
    Best regards,
    Michael

Maybe you are looking for

  • External purchase requisition

    Hi, I'm in classic scenario. I'm in SRM 5.5. I've been able to replicate the PR using the report BBP_EXTREQ_TRANSFER. But my problem appears in SRM. I'm not been able to find the PR replicated. I've read in other thread that I've to create an entry c

  • Weblogic Start-up from CIFS share(WINDOWS 2008) is too slow.

    Hi All, We are migrating to a new platform in weblogic 10.3.5. It is running on a WINDOWS 2008 Server and we are planning to use the "Whole Server" migration. As per our new architecture, we have planned to use NAS over CIFS as a storage medium. We h

  • Flash Player only partially opens my ISP's speed test

    I am having trouble with line speed and download speed. My ISP has directed me to their speed test, which has to be done several times and submitted before they will investigate. I have tried to use the test several times on my networked pc and the f

  • Analyzer for MSA??

    Hi, I came to know that there is a tool called UF Analyzer for MSA for viewing the log messages. How can use this? Is it a separate tool to be installed on the MDW? Is this tool used only for MDW or can I use it for Mobile client as well? I'm using M

  • Is anyone having issues with keeping a signal?

    This just started yesterday out of the blue! My phone will say it has a strong signal, then 10 seconds later goto searching..., then No signal.... then it starts all over again! Ive tried rebooting it, and that does not work. I updated to the new sof