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

Similar Messages

  • 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

  • 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"

  • Apart from the lock button problem in iphone 5 the display brightness suddenly goes blank and becomes normal after locking and unlocking the iphone. The Apple service centre in India is denying to service the iphone as it was purchase in USA even thoug it

    Apart from the lock button problem in iphone 5 the display brightness suddenly goes blank and becomes normal after locking and unlocking the iphone. The Apple service centre in India is denying to service the iphone as it was purchase in USA even though the iphone is in warranty.

    iPhones do not have an international warranty.  Warranty is valid only for the country of purchase.  This is most likely because different countries require different iPhone models.  Not reasonable to expect all countries to maintain stock for all models.

  • TS3274 How do I lock and unlock the vertical/horizontal screen positions?

    How do I lock and unlock the vertical/horizontal screen positions?

    Use the Side Switch or Rotation Lock in Control Center.

  • Can I use my fingerprint to lock and unlock the iPhone?

    Will it be possiable for iphone users to use their fingerprint to either lock and unlock thier devises?

    No

  • Terminal command to lock and unlock the dock?

    Hello,
    I manage hundreds of iMacs running Yosemite at a school site.  I use parental controls with the lock dock feature turned on.  I would like to periodically unlock the dock to customize it with new icons, but have not found a terminal command that works, or a streamlined process that is time efficient.
    So far I have been individually unlocking the dock in parent controls on each machine, restarting, editing the dock, then re-locking it parental controls, then restarting.  This takes 5-10 minutes per machine). 
    I also tried this command but it didn't work.
    defaults write com.apple.dock contents-immutable -bool true; killall Dock;
    I also tried cloning the parental controls with an exported plist file to all the machines using ARD, which works for all the parental control settings EXCEPT for the lock dock feature.
    Any ideas?
    Cheers,
    Crystal

    Sorry this is probably too late for you, but it may help others seeking this answer, I just had this problem [Mac OS x Yosemite 10.10.2] and found that the following worked for me:
    1. Use Terminal to LOCK the Dock by C&P or typing in:
    defaults write com.apple.dock contents-immutable -bool true
    Then use your preferred method to Log-Out [e.g. Key Combo ⇧⌘Q or  [Top Left Menu] then select Log Out “name”]
    and then Log-In again.
    2. Use Terminal to UNLOCK the Dock by C&P or typing in:
    defaults write com.apple.dock contents-immutable -bool false
    Then use your preferred method to Log-Out [e.g. Key Combo ⇧⌘Q or  [Top Left Menu] then select Log Out “name”]
    and then Log-In again.
    NB. You will be solely responsible for your actions making changes to the Operating System.

  • 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.

  • 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

  • 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.

  • 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 Time Stamp

    Hi,
    Is there a way to get the time stamp when we lock and unlock the entities. And also the User name who performed the lock and unlock task?
    Rgds
    Abhi

    Hi Lye and Elvira,
    I am not logged on, but fairly certain that calling FM BAPI_USER_GET_DETAIL will also deliver the lock status / reason and user existence check etc, which means that the program can react appropriately to the UFLAG lock and the reason for it (if coded to do so). It would also spare the select on USR02 which might change or even be blocked.
    A bigger problem I see with preventing a user from doing something from a certain point in time onwards using this lock-approach, is that the user might already be logged on!
    @ Elvira Knight and ELVIRA KNIGHT regarding points: You have 2 SDN ID's now. You need to logon as the ID which created the thread (Elvira Knight originally asked the question) either by using the P- or S-number from the registration or the email address (you might need to temporarily change ELVIRA KNIGHT's email address to do that). Then you will be able to assign points for the thread which you started as Elvira Knight.
    Theoretically I could add the points for you, but I prefer not to interfer in the decisions and points of SDN members (it is a free world  - unless there is points collaboration...). The future of the points-system is indeed also hanging in a bit of a balance because of that reason. You can email me via the address in my business card if you need some help.
    Cheers,
    Julius

  • "The drive where windows is installed is locked. Unlock the drive and try again."

    Have an Envy M6-K010DX notebook. Due to an internet problem while upgrading from Win 8 to 8.1, the PC doesn't properly boot and Windows Explorer won't load. Decided to 'Refresh' the OS and went to the F11 restore utilities. When I go to the refresh utility and follow the prompts I reach a message that says, "The drive where windows is installed is locked. Unlock the drive and try again." I've searched support for unlocking instructions and aside from some bootrec commands (that didn't work - probably because I don't have a Win 8 disk) not much is available.
    The only access I have for running commands is via the Task Manager and F11 command prompt. What is this 'locked' drive, anyway? Does anyone have any information on this?
    This question was solved.
    View Solution.

    Its hard to say if it the data is accessable or if the file system is corrupted or not.
    Recuva is a free utility to recover files that are missing due to deleting or reformatting.
    Not all of the data will be recoverable now but perhaps most of it is.
    If Recuva cannot detect anything, I doubt a paid program will do any better.
    You can plug the old drive into a sata port on a desktop PC or you can purchase a usb adapter to use on another laptop.
    If you go with a USB adapter, get one thats usb 3.O if possible.
    Example: for notebook drives...http://www.newegg.com/Product/Product.aspx?Item=N82E16812161005

  • Hii all, I just bought an used iphone 5c from an user and only after a few weeks realised that it got activation locked. He might be unaware of that. Is it possible to get back to him and unlock the device for me as i have not contacts with him presently.

    Hii all, I just bought an used iphone 5c from an user and only after a few weeks realised that it got activation locked. He might be unaware of that. Is it possible to get back to him and unlock the device for me as i have not contacts with him presently.

    Well first you need to sync your iPhone 4 with your Mac/PC so that it will transfer all your music, apps, podcasts, etc. Then sync your iPod Touch and the media you selected during the sync should be there on your iPhone. If you have difficulty in transferring media from iPhone to your computer, try softwares like TransCopy. They will help in transferring data from your iphone to your computer. Dont forget to check that all the transferred data is in the iTunes media folder so that the iTunes can locate the files. Link to Transcopy software :
    http://www.copytrans.net/copytrans.php

Maybe you are looking for

  • Windows Update KB2919355 don't start

    Hi, i'm trying to install the KB2919355 Update since a few days now. I downloaded the installer from the microsoft web page. All other Updates are installed. If I try to start the Update with a double-click, the Update file starts the extracting and

  • Memory Problems with Photoshop CS2 - RAM not being utlized

    I am having memory issues with Photoshop CS2. I have a G5 dual 2.5 with 8 GB of RAM. PS CS2 keeps hanging on me when I'm doing fairly routine tasks with a fairly complex low-res .psd file. It includes several nested layers...etc. I noticed while runn

  • ITunes 10.5 64-bit resetting preferences and library

    I have been reading the discussions here, but have not found anyone with the problem I am experiencing with iTunes 10.5 64-bit.  The problem is as follows:  Each time I start/restart Windows 7, iTunes reverts all settings and the library to the defau

  • Displaying images in ADF Table

    I have a column in table of type blob. I created entity and view against it. In view type of attribute is blobdomain (by default). Now when i drop that view on form to create table, it places control inputText for blob. I want to ask how i can displa

  • TS3694 I tried to uninstall my really old iTune version but it came up the error code: 2324. What can I do?

    I tried to uninstall my really old iTune version but it came up the error code: 2324. I then copy the data of the new version of iTune from my friend's disk C and paste them onto my disk C. However, it seems to work but appear another error code: -42