Is it possible to lock and unlock a transaction?

Hi SDN,
Is it possible to lock and unlock a standard transaction( for eg VA02 ) through my program?( i am creating a customized version of standard transaction ) I want to lock the transaction for my user-id and then i will update the values in that transaction and finally i will unlock it.
I got the FM for locking at the database level.is there is any FM to lock and unlock the transaction?

Hi,
It may not be the best way, but maybe you could use the functionality behind transaction code SM01. Here you can lock/unlock the transaction code. If you look at the program, all it is really doing is updating table TSTC field CINFO. CINFO = 80 when unlocked, CINFO = A0 when locked. You could just update the field accordingly and then call this function module right after.
* For locking
CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
  EXPORTING
    TCODE = TSTC-TCODE
    LOCK = 'X'.
* For unlocking
CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
  EXPORTING
    TCODE = TSTC-TCODE
    UNLOCK = 'X'.
Regards,
Ferry Lianto

Similar Messages

  • I Am from Brasil and december last year i bought a non contract iphone in usa but it still locked, now apple is sending non contract unlocked iphone, next week i am going to usa and would like to know if it is possible to pay and unlock my iphone in usa

    I Am from Brasil and december last year i bought a non contract iphone in usa but it still locked, now apple is sending non contract unlocked iphone, next week i am going to usa and would like to know if it is possible to pay and unlock my iphone in usa

    A no-contract sales price does not mean unlocked.
    Apple is now selling an officially unlocked iPhone in the U.S. which has nothing whatsoever to do with AT&T unlocking iPhones. It is up to the carrier and the carrier only to officially unlock an iPhone that was sold as carrier locked with the carrier - in this case sold as carrier locked with AT&T. This may change one day, but at the present time AT&T does not unlock an iPhone for any reason or under any circumstances.

  • My phone keep locking and unlocking several times

    Device info
    Your carrier: T-Mobile
    Model info and OS version: Curve 8900 and Blackberry OS v4.6.1.231
    Apps and free space
    Did a battery pull fix your issue? Temporarily
    Apps installed and their version if possible: No apps because I do not have internet on the phone
    When writing your question
    Good description of what is really wrong and how to reproduce if possible. Details of what you did before:
    I didn't do anything to it but before the speaker would fuzz in and out of call and then it started doing that permanently. Afterwards my phone just started to lock and unlock several times before it ultimately locked me out even after I tried to press the unlock button. I tried pulling out the battery several times and it alleviates the symptoms for about 3 minutes and it goes right back to locking and unlocking again. I have no idea what is wrong but I appreciate any responses and Thank You in advance.

    Hello
    Usually I would advise a hard reset of your handset, but it doesn't seem like it's possible if you only have access to your handset for a few minutes before the fault occurs.
    Go to www.blackberry.com and download the blackberry desktop manager, then use this to update your handsets software, I have seen the desktop manager not recognise there is an update from an 8900 on OS 4.6, if this happens you can find the newest 8900 software on the blackberry website - download this and install it to your PC. Once it's downloaded you need to search for updates in the desktop software and when it says none available select 'view previous versions', then select the software you just downloaded.
    Hope this helps
    Adam
    EE Blackberry Specialist

  • How do i use the "Alt+Ctrl+;" keyboard shortcut to Lock and Unlock Guides in Adobe Illustrator?

    Hello,
    I've been trying to lock my guides in Illustrator CS5 with the default keyboard shortcut "Alt+Ctrl+;", but with no result.
    When i edit this shortcut via the 'Edit/Keyboard Shortcuts...' menu, and type in the same keystroke combination for that command - so again "Alt+Ctrl+;" for "Lock Guides' - the shortcut changes from "Alt+Ctrl+;" into "Alt+Ctrl+."
    This new "Alt+Ctrl+." shortcut is usable. Now the same 3 different keystrokes tabbed at the same time do lock and unlock the guides, but i'm left wondering why it is that i can't use the "Alt+Ctrl+;" combination.
    There now also seems to be no way around changing the new combination into the old one again.
    I hope someone can help.
    Thanks in advance,
    Johan

    Thanks Jacob. I can't seem to find a solution to my problem within the site you linked, but i'm still happy with it. Seems to be a great resource for answers.

  • File Lock - How to lock and unlock a file ? Can we do that for an FTP File?

    Hi All,
    I like to retrieve a file from the FTP server using Apache Commons Net libraries.
    for example if the file size is 20MB. When the file is in the progress of copying or transferring from the FTP server i need to lock the local file which is in our local directory so that no other process will use the same local file which is in the process of copying otherwise partially copied files will be used by another process.
    the file should be locked when it was in the progress of copying from the server. I have an automatic process which will access file objects at certain time and try to process the files.
    I like to know the simplest and easiest way to lock and unlock a file object locally which is trying to copy a file from the FTP server which is of huge size.
    And also i like to know how to lock and unlock a file in general?
    Thanks,
    J.Kathir

    we can set it read only only when it complete finishing the writing.
    can we able to make the file as read-only while transferring data to file.
    How to achieve it ? pls give me some sample code

  • Statement for Lock and Unlock an Oracle user (Urgent)

    Hi DBAs.
    I just want to know about the statement used for lock and unlock the Oracle user thru sysdba suer.
    Thanks
    Hassan

    Hey,
    SQL> alter user <USERNAME> account lock;
    and
    SQL> alter user <USERNAME> account unlock;
    Cheers,
    Marcello M.
    Sorry Justin, same answer........
    Message was edited by:
    Marcello M.

  • Why does auto brightness has a bug in iOS 7.1.1 . The brightness switches automatically to higher in bright places but not returns to lower brightness in dark places but when you lock and unlock it becomes normal

    Why does auto brightness has a bug in iOS 7.1.1 . The brightness switches automatically to higher in bright places but not returns to lower brightness in dark places but when you lock and unlock it becomes normal

    Hello,
    Same problem for me. Really a pain in the *** this bug ! Does Apple fixed it. I'm really suprised noone reports this problem  and apple does not adress this.
    Because of that, I cannot give it anymore to children because it hurts the view. Really a shame on the part of apple !
    Regards

  • Hi how to handel the lock and unlock the table

    Hi,
    i am having the one scenario like,for lock and unlock the table i used the function modules ENQUEUE_E_TABLE and  DEQUEUE_E_TABLE but it allowing the edit the first user and suppose to try the editing the second user it is giving the error message it correct but again the second user press any button it is leaving the program it should not happened please help me that.
    regards,
    Hari.

    Hi,
    i assume it's in table JEST
    so select:
      SELECT        * FROM  JEST
               WHERE  OBJNR  =  aufk-OBJNR
                AND   STAT   IN S_STATI
    Andreas

  • Capability or admingroup to lock and unlock views

    Hi all,
    I am trying to lock and unlock users via
    lockObject(com.waveset.object.Type.USER, user, map); on a lighthouse session object and unlockObject((Object) com.waveset.object.Type.USER, user, map); on a session object
    but I get the error:
    WavesetException : com.waveset.util.WSAuthorizationException: View access denied to Subject AGROUPE1 on User: UTEST1.I tried to create an admingroup with this permission
      <Permissions>
        <Permission type='User' rights='View'/>
      </Permissions>But it didn't change the error.
    Any idea so that it could work ?

    You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
    Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • Need to Lock and unlock the fn key freely

    I just today purchased the HP g72-b66us notebook.  An MMO that I play uses the f # keys at the top of the keyboard for integral aspects of the game on a regular basis.  Thus far I have had to hold the fn key down and that hampers gameplay ability drasticly.  I'd like to be able to lock and unlock the fn key the same way one uses the number lock or caps lock.  Please advise.

    You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
    Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • FM to Lock and Unlock the Tcode CJ02

    Hi,
    I want to lock and unlock the Tcode CJ02, my code is as below.When I am executing the Report, I am able to create the Settlement Rule in first Row but I am getting an Error Mesage saying " Subproject 4-0123-02-01-01-10-01 is currently processed by USER" though there is no other session open under the user name when trying to create settlement rule in second row in the loop. Wbs element that ima using for creation of settlement rules is "4-0123-02-01-01-10-01".
    loop at it_src into wa_src.
    Lock the Tcode 'CJ02'.
    Perform BDC Recording to Create Settlement Rule.
    Unlock the Tcode 'CJ02'.
    endloop.
    Regards,
    Deepthi.

    Hi, you can block the Subproject with Lock Object, you can create this under SE11
    after you have created this, use these FM for Enqueue/Dequeue,
      call function 'ENQUEUE_EZ_ODAPROF_PO'
           exporting
                mode_ztma_odaprof_po = 'E'
                mandt                = sy-mandt
                ebeln                = cod_oda
                ebelp                = cod_pos
           exceptions
                foreign_lock         = 1
                system_failure       = 2
                others               = 3.
      call function 'DEQUEUE_EZ_ODAPROF_PO'
       exporting
         mode_ztma_odaprof_po       = 'E'
         mandt                      = sy-mandt
         ebeln                      = cod_oda
         ebelp                      = cod_pos

  • Keyboard lock and unlock for 8330

    I need a way to lock and unlock the keyboard.  I have searched a number of websites for an answer to my dilema and it seems several methods are mentioned but none work for me.  I need to lock the keyboard when phone is in my pocket.  Many thanks to anyone who can help.

    Well, according to your device manual, this is the procedure:
    Lock the keyboard
    If you do not set a BlackBerry® device password, you can lock your keyboard to avoid making calls and pressing keys accidentally.
    On the Home screen or in the application list, click Keyboard Lock.
    To unlock the keyboard, press the asterisk (*) key and the Send key.
    You can look further into your manual here:
    http://www.blackberry.com/btsc/microsites/search.do?cmd=displayKC&docType=kc&externalId=http--docsbl...
    Good luck.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Lock and Unlock a table:AFVU

    Hi Folks.
    I want to modify a standard table (AFVU )  with new user dates from User.For this,First I need to lock and unlock the table.
    When I am trying for the standard table lock object (EAFVU) ,it was not there in the system.
    Is there any way to find out the lock object for a particular table?
    How to proceed for this?
    Any Pointers are much helpful.

    Hi,
    Go to SE11 and display your table - do a where used list and select lock objects.
    I really hope when you say you are modifying a standard table you are only updating custom appends on that table, and not directly updating standard SAP fields...
    Gareth.

  • Lock and unlock sharing DAQ PCI-6036E

    Is there an example for lock and unlock a DAQ resource (PCI-6036e)? I'd like to protect it from different threads.

    Well, I have LabVIEW 6.1 and TestStand 2.01f
    Does NI-DAQmx come with LV7?
    My application has one serial port,one PCI-6036E connecting to one SCXI with 16 thermocouple and 10 force sensors.
    motor controller pc board (MC)
    PC with TestStand and LabVIEW (master)
    | |
    RS485 COM1 PCI-6036E
    | | | | SCXI CHASSIS
    slave MC1 MC2 MC3 MC4 TEMPERATURE SCXI-1102
    | | | | | | | | Strain gauge SCXI-1520
    Stepper 1-3
    Brushless
    The PC is the master,
    MC1 2,3,4 are slave motor controller, they don't initiate communication but they take a command and execute it and they can return mo
    tor status encoder position.
    MC1 can controll four motors, serial command has MC1 address and individual motor sub-address.
    The four motors connect to MC1 are stepper and small.
    The motors connect to MC2 are brushless type
    The two motors connect to MC3 are stepper and medium size. Different manufacturers, but they all have encoder feedback and take about 4 - 15 seconds to move to commanded position.
    Strain gauges for measuring the force of the linear motors. Most motors have one strain gauge, but three motors have two strain gauges. (Fwd 1 inch with 8psi to a cork screw, once finding the corkscrew resistance, punch thru it with 50 psi and 1/2 inch)
    The test is life analysis and motor force.
    The test cycles the motors continuously and collecting data (encoder, temperature, force, cycles)
    What are the ways for doing the test?
    How should the graphical User interface be? this is the thing that the project managers care about. Only three seconds to impress them.

  • User lock and Unlock from CUA

    Hello All,
    I have a scenario where locking and unlocking a user in a specific child system has to be done through CUA. The TCode SCUM allows to do that. However, I'm looking for the underlying BAPIs corresponding to this TCode, so that my external application can directly invoke that.
    Any pointers will be highly appreciated.
    Best regards,
    Bala

    Are you wanting to lock selectively (only in some child systems and not others)?
    What is the reason for not using SCUM?
    The BAPI is like a gun, where you enter only the user ID as the bullet (a silver one with the user's name on it).
    You then aim the gun at a target (in the destination parameter of the FM).
    When you pull the trigger, the user is locked in the target.
    The caliber of the gun depends on the authorizations of the user in the destination server connection.
    Whether or not you hit the user, will depend on how good a marksman you are on the client server.
    Cheers,
    Julius
    Edited by: Julius Bussche on Apr 2, 2009 1:02 PM

Maybe you are looking for