Scheduling Locking/unlocking of t-codes

Hi all,
I would like to ask - can we schedule locking/unlocking of specific tcode (say "stms")?? if yes, please describe procedure to do so.
waiting for reply.
Thanks and regards,
Meghan

Hi,
Use below program. Create variant and schedule it accordingly.
===============================================
REPORT  ZTCODE_LOCKUNLOCK.
Program to lock and unlock transactions
TABLES: TSTC.
DATA: LOCK_TEXT(30).
selection screen
SELECTION-SCREEN begin of block b1 with frame title text-001.
SELECT-OPTIONS: S_TCODE FOR TSTC-TCODE OBLIGATORY NO INTERVALS.
SELECTION-SCREEN end of block b1.
SELECTION-SCREEN begin of block b2 with frame title text-002.
PARAMETERS: P_LOCK RADIOBUTTON GROUP A,
P_UNLOCK RADIOBUTTON GROUP A DEFAULT 'X'.
SELECTION-SCREEN end of block b2.
check authority
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD' FIELD 'SM01'.
IF SY-SUBRC NE 0.
MESSAGE 'You have not authorization' type 'E'.
STOP.
ENDIF.
IF P_LOCK = 'X'.
PERFORM DATA_LOCK.
ELSEIF P_UNLOCK = 'X'.
  PERFORM DATA_UNLOCK.
ENDIF.
*&      Form  DATA_LOCK
      text
-->  p1        text
<--  p2        text
FORM DATA_LOCK .
LOOP AT S_TCODE.
update tstc set cinfo = 'A4' where tcode = s_tcode-low.
ENDLOOP.
ENDFORM.                    " DATA_LOCK
*&      Form  DATA_UNLOCK
      text
-->  p1        text
<--  p2        text
FORM DATA_UNLOCK .
LOOP AT S_TCODE.
  update tstc set cinfo = '84' where tcode = s_tcode-low.
ENDLOOP.
ENDFORM.                    " DATA_UNLOCK
===============================================
Regards,
Alpesh

Similar Messages

  • HT1316 what do i do if i cant remember my lock/unlock code to my ipad?

    WHAT DO I DO IF I CANT REMEMBER MY LOCK/UNLOCK CODE TO MY IPAD?

    Hi iPad wont open. No password entered Just openened where "slide to open " becomes framed  and wont move.. also voice responds to each touch
    Message was edited by: Derf Nosliw

  • Window not refreshing after lock/unlock screen.

    I've noticed an issue where if I lock the screen (windows key + L) before the visible property of some component is changed, then unlock the screen, the component visibility is not updated until I mouse over the JavaFX application window.
    I'm including some sample code to demonstrate the problem. To use:
    1. Run.
    2. Click the button.
    3. Lock the screen.
    4. Wait 15 seconds.
    5. Unlock the screen, but do not touch the mouse.
    6. Verify that the progress indicator animation is still visible, but is not animated.
    7. Mouse over the application window.
    8. Verify that the progress indicator disappears.
    In addition, if steps 3-7 are not executed, the behavior is as I would expect... The progress indicator disappears 15 seconds after the button is clicked.
    Does anyone have any ideas on a workaround that would force a UI update when the screen is unlocked?
    I'm using the version of JavaFX packaged with Java 1.7.0_09
    * App javadoc goes here..
    public class App extends Application
         * @param args
        public static void main( String[] args )
            Application.launch(args);
        @Override
        public void start(Stage stage) throws Exception {
            VBox root = new VBox();
            final ProgressIndicator pi = new ProgressIndicator();
            pi.setMaxSize(300d, 300d);
            pi.setStyle("-fx-progress-color: dodgerblue;");
            Button button = new Button("Hide after 15 seconds...");
            button.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent arg0) {
                    pi.setVisible(true);
                    Thread t = new Thread(new Runnable() {
                        @Override
                        public void run() {
                            try {
                                Thread.sleep(15000);
                            } catch (InterruptedException e) {
                                // TODO Auto-generated catch block
                                e.printStackTrace();
                            } finally {
                                Platform.runLater(new Runnable() {
                                    @Override
                                    public void run() {
                                        pi.setVisible(false);
                    t.start();
            root.getChildren().addAll(pi, button);
            Scene scene = new Scene(root);
            stage.setTitle("Lock/Unlock Windows Issue");
            stage.setScene(scene);
            stage.show();
    }

    The Java8 and see if it has been fixed:
    http://jdk8.java.net/download.html
    If not, check the JavaFX issue tracker for a duplicate (it's probably already logged there), if not, then log an issue against the runtime project:
    http://javafx-jira.kenai.com

  • Keypad lock/unlock

    a friend unpgraded and gave me a curve 8520. in pocket the keys get pushed. i cannot find a keypad lock/unlock only a device lock which still allows the keys to be activated. i have not attached yet to my laptop but no doubt the original owner did and so will probably have updated the software. all help gratefully receved.
    amazingly i have found a way to lock/unlock the keypad so please disregard this request.

    Don't press the two keys at the same time, but instead in succession--one after the other.
    What method do you propose to use to unlock the device?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Classic ipod, screen locked by a pass code

    my kid has a classic ipod, screen locked by a pass code, she forgot the code, how could we unlock it?

    Hi there hsvsheng,
    You may find the information in the article below helpful.
    iPod: How to use the Screen Lock
    http://support.apple.com/kb/ht1350
    Unlocking iPod
    You can unlock iPod in one of two ways:
    Enter the combination on iPod using the same controls you used to set the combination. If you do not enter the correct combination, the digits onscreen flash red. When you enter the combination correctly, iPod will unlock and return you to the last viewed screen.
    Connect iPod to the primary computer you use it with (the first one iPod synced with), and open iTunes. When you disconnect iPod from the computer, it will no longer be locked.
    If you can't unlock iPod using either of these methods, you can restore your iPod to factory settings. Please note that this will erase all data on your iPod. Afterwards, you can add your music and data back to iPod.If you want to change the primary computer that your iPod is associated with, do this:
    Restore your iPod. Warning: The restore process cannot be undone. All of your songs and files will be deleted. Always make a backup of your important data.
    Connect your iPod to the computer that you want to be the primary computer.
    Open iTunes and synchronize.
    -Griff W. 

  • Lock/unlock and charging sound.

    Yesterday night at 12:35am my lumia 535 phone lock/ unlock and charging sound was not work. So can. I or you please resolve this issue.

    Press the Volume key. Then tap on the down arrow at the right. Finally increase the volume for Ringer + Notifications by sliding the bar to the right.
    That should be it

  • Auto Lock/Unlock is not working when the iPad cover is closed or opened for iPad 4 with retina display after upgrading to ios7.

    As the title above, is there any solutions for that? I tried restarting my Ipad and i've double checked the auto lock/unlock button is on.

    I have the same problem also.  Restarting isn't helping and the auto lock/unlock button is on.  Plus a couple of time when I turn it on it is asking if I want to power off.  That is when I push the button on the front to wake it up.  Not the power button on top.  I have an IPAd 2. Worked fine before the update. 

  • How to lock keypad using security code in nokia C6...

    Can any help me out to lock keypad using security code for Nokia C6??

    bobby_33353 wrote:
    Can any help me out to lock keypad using security code for Nokia C6??
    Can any help me out to lock keypad using security code for Nokia C6??

  • I have an iPad screen that won't swipe.  I cannot connect it to Itunes because it's locked with a pass code which I can't enter because I can't swipe.  Any suggestions on how to fix this?

    I have a 16GM Mini IPad.  The screen won't swipe.  I tried resetting it but that didn't work.  I attempted to connect to ITunes to try a restore but I can't do that.  This is because the IPad is locked with a pass code which I can't enter because I can't swipe.  Does anyone have any suggestions on how to fix this?

    If Ralph's suggestion doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow the on-screen directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore (or it doesn't help), go into Recovery Mode per the instructions here.  You WILL lose all of your data (game scores, etc,) but, for the most part, you can redownload apps and music without being charged again.  Also, if you have IOS-7, read this.

  • How does lock/unlock/delete on my site host site collection work?

    Hi All,
    I need to lock/unlock/delete my site host site collection programmatically. Does lock/unlock/delete on my site host site collection  lock/unlock/delete my sites of users?
    Thanks,
    Moohak

    Hi All,
    I need to lock/unlock/delete my site host site collection programmatically. Does lock/unlock/delete on my site host site collection  lock/unlock/delete my sites of users?
    Thanks,
    Moohak

  • Enqueue/Dequeue - Locking/Unlocking object

    Hi all,
    Please help me working with this enqueue/dequeue command. What I'm trying to do is to lock a Service Order. My requirement is to do a BDC for the Service Order Settlement Rule. So after hitting SAVE, a secondary process will be kicked off to perform my BDC for the same order. Now what Im doubting is that what if user re-enter the same Service Order again so quick. So my BDC program will not be performed immediately since it will be locked by the usser.
    So my idea is to lock it first while my BDC program is still running. Any help please? Thanks.

    Nope. Just 1 BDC -on my 2nd program only. Or to make it simple, I have modified ZXWOCU07 (IWO10009) to perform/kick off a call function( this is being triggered after hitting on SAVE). And this FM contains my checking if SO is now open for change then do the do the BDC.
    What I'm thinking is to lock first the SO  to block any user from accessing that SO, so it will do the BDC first. But I'm not yet familiar with the locking/unlocking of objects. Please help me on how to use enqueue or locking object.

  • Password file gets changed when an account is locked/unlocked in 9i !!

    Hello All,
    I observed that in 9i (9.2.0.8 and 9.2.0.6 on Solaris 9), the timestamp of the orapw<SID> file changes when a non-sys account is LOCKED/UNLOCKED. There is no change in the size of the file, but timestamp alone gets changed to the time the account is locked/unlocked.
    orapwd<sid> stores the password for administrative accounts, what has it got to do with non-sys accounts( an account with just create session privs ) ?
    Is it the expected behaviour ?
    TIA,
    John

    Hi,
    You can create a user defined metric which will query the table "dba_users" and check for "account_status" and will alert you whenvr usr is locked.
    You can find the link for creating "user defined metric" at "Related Links" section at the bottom of database homepage in OEM.
    Hope this helps...

  • Faulty Lock/unlock button, any service centers other than apple store?

    I bought my iPhone 5 in Malaysia and now I am in Moscow, my phone's lock/unlock button isnt sensitive since last week. Since it is still under warranty, can i send it for repairs here in Moscow? But we dont have any apple stores here. What should i do? Can I still get it repaired in Moscow for free? How long does it take to repair this?

    You need to return to Malaysia for warranty service.

  • How to change the lock/unlock sound on a iPhone

    How do you can the sound of the lock/unlock in an IPhone 4 that hasn't been jail broken and also do not need a computer?

    Sorry, the unlock sound can't be changed.

  • C3-01 Touch and Type Keypad Lock/Unlock Issue,,

    I just bought this C3-01 touch and type phone and it got big issue of locking/unlocking key pad..
    phone gets locked and even if I click on keylock button and then click unlock (on touch screen) then it never gets unlocked.. (I checked guide it says same thing)
    how to resolve this issue? anyone had same issue?
    Solved!
    Go to Solution.

    1st Of All, If u just got oyur Nokia C3-01 Device, then You must be having the old version of SOftware in it, maybe v05.68. So In that SW, You have to press the unlock, there is no swipe to unlock,
    So, You can clearly see, there is a Button at the Right of your mobile below the Volume Buttons (Right If you Have your Device Screen Facing you, Left If you ahve the Back Battery Cover Facing You)
    So Press that Button, you will see your display glow showing " UNLOCK " option in the middle, Press It.
    It will get Unlock.
    Also, after Unlocking, Before adding anything to Phone Memory (like contacts, messages,etc) make sure to update your Mobile FW/SW to the latest version out there (which is v06.05)
    So, If you have a PC with internet connection, connect your Device with USB, and Use Nokia Software Updater (Or Nokia Ovi Suite, whatever you have got Installed In your PC) and Start Updating ASAP, Alot Of Bug Fixes have been Taken Place,
    If Still Not Unlocked, RETURN YOUR DEVICE NOW, because your Device is Faulty.
    If I Helped Press The Star Against My Name At the Left SiDe  
    If I've helped in any way, a click upon the White star to the left would always be appreciated.
    If however my answer also solves your problem clicking below " ACCEPT AS SOLUTION " it will benefit other users!

Maybe you are looking for