FM for position lock check

Hi All
Is there any function module to check whether perticular postion id is locked.
Thanks,
Shrinivas

Check this FM:- HR_ENQUEUE_OBJECT
Pass Object type as 'S'.
~ BiSu

Similar Messages

  • Performance tuneup for a special DB (disable locking, check-pointing,...)

    Hi,
    I have simple database contains key/value records. The program is a multi-thread application that iterate over records. Each worker thread read a record and after some calculations, replace it. The records are completely independent from each other. The following is my DBController class that share between all threads. Is there any considerations to achieve best performance?, For example I don't want any locking, check-pointing, caching,...overheads. I just want to achieve THE BEST PERFORMANCE to store and retrieve each record independently.
    import gnu.trove.*;
    import java.io.*;
    import com.sleepycat.bind.tuple.*;
    import com.sleepycat.je.*;
    public class DBController {
         private class WikiSimTupleBinding extends TupleBinding<TIntObjectHashMap<TIntDoubleHashMap>> {
              // Write an appropriate object to a TupleOutput (a DatabaseEntry)
              public void objectToEntry(TIntObjectHashMap<TIntDoubleHashMap> object, TupleOutput to) {
                   try {
                        ByteArrayOutputStream bout = new ByteArrayOutputStream();
                        ObjectOutputStream oout = new ObjectOutputStream(bout);
                        oout.writeObject(object);
                        oout.flush();
                        oout.close();
                        bout.close();
                        byte[] data = bout.toByteArray();
                        to.write(data);
                   } catch (IOException e) {
                        e.printStackTrace();
              // Convert a TupleInput(a DatabaseEntry) to an appropriate object
              public TIntObjectHashMap<TIntDoubleHashMap> entryToObject(TupleInput ti) {
                   TIntObjectHashMap<TIntDoubleHashMap> object = null;
                   try {
                        byte[] data = ti.getBufferBytes();
                        object = (TIntObjectHashMap<TIntDoubleHashMap>) new java.io.ObjectInputStream(
                                  new java.io.ByteArrayInputStream(data)).readObject();
                   } catch (Exception e) {
                        e.printStackTrace();
                   return object;
         private Environment myDbEnvironment = null;
         private Database db_R = null;
         private WikiSimTupleBinding myBinding;
         public DBController(File dbEnv) {
              try {
                   // Open the environment. Create it if it does not already exist.
                   EnvironmentConfig envConfig = new EnvironmentConfig();
                   envConfig.setAllowCreate(true);
                   myDbEnvironment = new Environment(dbEnv, envConfig);
                   // Open the databases. Create them if they don't already exist.
                   DatabaseConfig dbConfig = new DatabaseConfig();
                   dbConfig.setAllowCreate(true);
                   db_R = myDbEnvironment.openDatabase(null, "R", dbConfig);
                   // initialize Binding API
                   myBinding = new WikiSimTupleBinding();
              } catch (DatabaseException dbe) {
                   // Exception handling goes here
                   dbe.printStackTrace();
         private final byte[] intToByteArray(int value) {
              return new byte[] { (byte) (value >>> 24), (byte) (value >>> 16), (byte) (value >>> 8), (byte) value };
         public void put(int id, TIntObjectHashMap<TIntDoubleHashMap> repository) {
              try {
                   DatabaseEntry theKey = new DatabaseEntry(intToByteArray(id));
                   DatabaseEntry theData = new DatabaseEntry();
                   myBinding.objectToEntry(repository, theData);
                   db_R.put(null, theKey, theData);
              } catch (Exception dbe) {
                   // Exception handling goes here
                   dbe.printStackTrace();
         public TIntObjectHashMap<TIntDoubleHashMap> get(int id) {
              TIntObjectHashMap<TIntDoubleHashMap> repository = null;
              try {
                   // Create a pair of DatabaseEntry objects. theKey is used to perform the search. theData is used to store the
                   // data returned by the get() operation.
                   DatabaseEntry theKey = new DatabaseEntry(intToByteArray(id));
                   DatabaseEntry theData = new DatabaseEntry();
                   // Perform the get.
                   if (db_R.get(null, theKey, theData, LockMode.DEFAULT) == OperationStatus.SUCCESS) {
                        // Recreate the data repository
                        repository = myBinding.entryToObject(theData);
                   } else {
                        System.out.println("No record found for key '" + id + "'.");
              } catch (Exception e) {
                   // Exception handling goes here
                   e.printStackTrace();
              return repository;
         public void close() {
              // closing the DB
              try {
                   if (db_R != null)
                        db_R.close();
                   if (myDbEnvironment != null)
                        myDbEnvironment.close();
              } catch (DatabaseException dbe) {
                   // Exception handling goes here
                   dbe.printStackTrace();
    }

    If you are writing and you need to recover in a reasonable amount of time after a crash, you need checkpointing.
    If multiple threads may access a record concurrently, you need locking.
    If you need good read performance, you need as large a JE cache as possible.
    If you want to tune performance, the first step is to print the EnvironmentStats (Environment.getStats) periodically, and read the FAQ performance section. Try to find out if your app's performance is limited by CPU or I/O.
    If you are reading records in key order, then you'll get better performance if you also write them in key order.
    I'm not sure why you're using a TupleBinding to do Java object serialization If you want Java serialization, try using a SerialBinding.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Checking for kernel lock contention in OEL 5.5

    Is there a lockstat utility for Enterprise Linux 5? Or how could I check for kernel lock contention?
    I found a lockstat rpm for RHEL and Centos 4 at http://packages.sw.be/lockstat/, but I could not find it in the distribution of version 5?
    The rpm package installs, but the command "lockstat on" shows /proc/lockmeter: No such file or directory
    I found an interesting document named "Linux Kernel Lock Profiling with LockStat" at:
    http://dolavim.us/blog/2007/11/06/linux-kernel-lock-profiling-with-lockstat/
    The document outlines the use of /proc/lock_stat, which is a text file - not using a "lockstat" utility.
    From what I understand, I have to rebuild the kernel with "CONFIG_LOCK_STAT=y", or wait for kernel 2.6.24 to be released?
    Do I have to build a custom kernel to check for lock contention, or are there perhaps other options?
    Thanks!
    Edited by: Markus Waldorf on Aug 28, 2010 8:55 PM

    SQL> SELECT INDEX_NAME,INDEX_TYPE,UNIQUENESS FROM DBA_INDEXES WHERE TABLE_NAME='DATA_DATA';
    INDEX_NAME INDEX_TYPE UNIQUENES
    CIDX BITMAP NONUNIQUE
    VIDX BITMAP NONUNIQUEYou have bitmap indexes here on a table being inserted into. Bitmap Indexes are another source of lock(and deadlock) in OLTP application. You said that the SQLloader was the unique active program but may be you are also triggering another procedure after the load. Procedure in which you might be using also automomous transactions and so on...
    Check first if your table is subject to DML operation in a a multi-user concurrent accesss and in which case you have to get rid of those bitmap indexes
    http://hourim.wordpress.com/2011/03/14/deadlock-%e2%80%93-part-1-bitmap-index/
    Best regards
    Mohamed Houri
    www.hourim.wordpress.com

  • Background job for auto lock user

    Dear Friends,
    Which background job i have to be schedule for auto locking user after every 30 days if then are not logged for last 30 days.
    Thanks,
    Regards,
    Sachin

    Hi, Sachin.
    Please check this thread.
    Locking users if they did not login for 15 days
    Best Regards.
    Sejoon

  • Nokia E6 Searching for position / Waiting for GPS ...

    I have a new nokia E6-00 with Symbian Anna (1 month old). I am very frustrated with the in-built GPS (Ovi Maps). It is working fine when it is connected to a Wi-Fi network, but when in OFFLINE mode it can not locate any satellites. It keeps displaying "searching for position" and "waiting for GPS". What should I do?
    Note: I have only checked Assisted GPS and Integrated GPS as positioning methods because I do NOT want any internet traffic caused by Ovi Maps.

    Hello there,
    I am writing because I am also having similar GPS difficulty with my E6-00.
    Here are the proper problem description and some background info:
    - for the past year, I had been using the C6-00. Its then Ovi Map was awesome, worked great in Asia, US, EU.
    - and before that, I also had the E71 for 2yrs. Again, Ovi Map served well.
    - Both phones only required their built-in GPS to navigate either walking or driving (with "offline" and "mobile data off")
    Now the problem with E6:
    - When "offline" or "mobile data" is off, the GPS simply wont function AT ALL. Like OP said, it gets disconnected soon afterwards. My question is, this is intended for E6? In comparison, the result in E6 seemed like a huge flaw.
    - Navigation / Positioning also seem "messed up". I am in Taiwan, Map version v0.2.43.11. I did a test: I launched both Nokia Map and Google Map on E6. Google map was accurate, showing exactly where I am, but Nokia Map was offset for 500 meters!! This made navigation IMPOSSIBLE!
    Map versions:
    - C6: 0.2.46.103
    - E6: 0.2.43.11 (cannot be further updated)
    Any advice is appreciated. Thank you.

  • Problem in  maintain attributes for position in maintain user attributes

    Hi All ,
    I am facing a problem in Maintain User Attributes
    I should get only 5 values for any user in attributes dropdown of attributes for position
    But for some users I am getting as 10 values
    and for some users I am getting it as 20 values ..
    What my doubt is
    will it be based on role dependency or anyother one ..
    Pls let me know if u have any idea ..
    Thanks
    Kumar

    Hello,
    The ability of changing attributes via User settings depends on the role
    assigned to the user and whether this role has the appropriate rights to
    change the attributes.
    In this regard, check the customizing below:
    SRM -> SRM Server -> Cross Application Basic Settings -> Roles ->
    Maintain Attribute Access Rights by Role.
    Here you define which parameter can be changed depending on the role
    assigned to user in question.
    Regards,
    Ricardo

  • Audit for who locked or unlocked data

    Does anyone know if there is a way to see who and when data was locked or unlocked in HFM?

    Hi,
    This is a Bug 6567181: 8-519382895 - REQUEST FOR DATA LOCK & UNLOCK BE INCLUDED IN TASK OR DATA AUDIT. It seems it is rectified in 9.5.1.0.00 version. Please check the metalink for further details.
    Regards,
    Mugdha

  • 713060: Tunnel Rejected: User (user) not member of group (group_name), group-lock check failed.

    Hi,
    I just configure VPN for end users in PIX515e with IOS 8 and get stuck with "Tunnel Rejected: User (msveden) not member of group (VPN-shared), group-lock check failed.". Can someone please help me and tell me how I add user to my VPN group?
    Regards
    Mikael

    May be you are looking for this-
    ASA1(config)# username msveden attributes
    ASA1(config-username)# group-lock value mygroup
    Thanks
    Ajay

  • Treasury Management , SPRO for position management

    Hi Gurus
    can you plese guide me how to set up position management for FX deals.
    Thanks
    Hiren Mazumdar
    Edited by: Hiren Mazumdar on Mar 31, 2009 10:15 AM

    Hi,
    I will expain in brief the postion management procedure.
    First you need to create a positon management procedure under settings for position management - Define position mgmt procedure.
    Before this you need to decide whether it is to be done based on key date or not.  If it is based on key date, then procedure has to be assigned under Keydate Valaution tree in settings for postion mgmt.
    Then you have to define the procedure where you assign the category of procedure and also the type of step based on your requirement like forex valuation, security valuation or amortization.  You also assign the procedure for it. Then if required to be done using key date then check that box.
    Then the procedure has to be assgined based on various factors like acct assign ref., val area and others.
    Then we have to assign update types for the procedure defined now.  This is just a brief explanation
    Regards
    Ravi

  • Regex - Pattern for positive numbers

    Hi,
    I wanna check for positive numbers.
    My code so far:
    Pattern p = Pattern.compile("\\d+");
    Matcher m = p.matcher(str);
    boolean b = m.matches(); But I don't know how to check for positive numbers (including 0).
    Thanks
    Jonny

    Just to make your life easier:
    package samples;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    * @author notivago
    public class Positive {
        public static void main(String[] args) {
            String input = "- 12 +10 10 -12 15 -12,000 10,000 5,000.42";
            Pattern p = Pattern.compile( "\\b(?<!-\\s?|\\.|,)([0-9]+(?:,?[0-9]{3})*(?:\\.[0-9]*)?)" );
            Matcher matcher = p.matcher( input );
            while( matcher.find() ) {
                System.out.println( "Match: " + matcher.group(1) );
    }

  • How to maintain two different number ranges in OM for positions?

    I have a requirement where i want to create two different number ranges for Positions in OM. Please also explain me the process ?
    Edited by: priyeshosi on Feb 22, 2010 3:46 PM

    yes the enhancement for this transaction code is RHIV0001 & the user exits are as follows :
    1. EXIT_SAPLRHIN_001              Customer exit: Check number ranges for integration.
    2. EXIT_SAPLRHIV_001              Customer exit: Internal number assignment
    3. EXIT_SAPLRHIV_002              Customer exit: Check external numbers
    4. EXIT_SAPLRHIV_003              Customer exit: Check whether internal number assignment
    which one to use from the above four & in what order

  • Timeout for IP locks

    Hi,
    Probably an easy one: Where do you set the timeout period for IP locks?
    Regards
    Øyvind Reinsberg

    Hi Øyvind,
    the answer depends on the 'type' of sessions. The exist a lot of timeout profile parameters,cf transaction RZ11, enter timeout and press F4. There you can also find documentation about these parameters.
    If e.g. locks are not removed when you close the browser this usually indicates a session handling problem, then you should check the OSS for notes, e.g. for the component BW-BEX-ET-WJR (BI Planning Web Applications).
    Regards,
    Gregor

  • Create BDC recording for position,job,role

    hi all,
    i want to create BDC recording for position,job,role . what is the transaction for creating postion,job, role?/??
    and i have to check wheather for one job , role is there or not? if not i have to create that role.. similiarly i have to check for position that there is corresponding job is there or not.. if not i have to create the job???
    how would i do that??
    thanks
    SAchin

    Hi Sachin,
    1) Creating BDC is an ABAP-ers job and being functional its not ur responsibility. If u really want to do that then u can do it through T.Code - SHDB.
             While creating BDC for Position u have to go through T.Cdoe - SHDB and in that give PP01 in the TRANSACTION CODE feild. Then go on for recording.  After that ask the help of an ABAP-er.
    2) To Check if a POSITION or a JOB is there, then Go to T.Code - PP01, under Obj Abbr. feild put S for POSITION and C for JOB and press enter after entering the POSITION and JOB id. U'll get the result. OK
    3) To check for ROLE, u have go to T.Code - PFCG and there check for the particular ROLE u r looking for. Here in this T.Code u can actually create, change and delete the ROLES.OK
    Hope this helps,
    ARNAV...

  • Error " Data missing for the entry check while creating a new waste code

    Hi all, While setting a new Waste code I get the error " Data missing for the entry check, correction:". while filling the NAM- WASTECOCAT - LER item.
    This sould look for the catalog's name included in the phrase set but for some reason it doesn't find it giving me this error.
    I am changing original Characteristics, phrase set, classes, and value assignment type. Just to have my own estructure with Znames for all of them.
    I have also change the enviroment parameter "WAM_PHRSET_WACATLG" with the name of my phrase set.
    I have checked everything several times watching for typos or looking for a missing step.
    I have even tried including my new Z's characteristics in the classe and living the original SAP_EHS_1024_001_WASTE_CATALOG. (changing the enviroment parameter WAM_PHRSET_WACATLG to SAP_EHS_1024_001_WASTE_CATALOG) and it works.
    I will like to change this characteristic by Z_EHS_WA_WASTE_CATALOG
    Phrase set to Z_EHS_WA_WASTE_CATALOG.
    enviroment parameter WAM_PHRSET_WACATLG= Z_EHS_WA_WASTE_CATALOG
    After matching up the master data It should work fine but I might be missing something to get it running ok.
    ¿Any idea?
    Regards,
    Alvaro

    Hello Juan Carlos, the value and class that I want to duplicate and doesn't work is for Waste Code, I have also duplicated the one you have displayed (waste pproperties) without any problem.
    1.I have duplicated and changed class SAP_EHS_1024_001. to Z_EHS_WA
    2. Create a copy of the 5 characteristics included in this class.
    SAP_EHS_1024_001_WASTE_CATALOG
    SAP_EHS_1024_001_WASTE_CODE
    SAP_EHS_1024_001_WA_SUBCATEG
    SAP_EHS_1024_001_WA_CATEGORY
    SAP_EHS_1024_001_REMARK
    change the name by
    Z_EHS_WA_WASTE_CATALOG
    Z_EHS_WA_WASTE_CODE
    Z_EHS_WA_SUBCATEG
    Z_EHS_WA_CATEGORY
    Z_EHS_WA_REMARK.
    I checked the funcion C14K_WASTECATLG_CHECK is in the value of the Z_EHS_WA_WASTE_CODE characteristic
    I checked the funcion C14K_WASTECODE_CHECK is in the value of the Z_EHS_WA_WASTE_CATALOG characteristic
    3. Create phrase sets for each new category. with same name.
    4. Match up the master data.
    5. Change the enviroment parameter.to Z_EHS_WA_WASTE_CATALOG
    I think I have followed all the steps, but for some reason it doesn't find the catalog
    The phrase for the catalog is EWC in english and LER in spanish.
    Regards
    Alvaro.

  • Longer time for Material Availability check while creation of prd order.

    Hi guys,
    I am facing a weird problem while creating production orders thru CO01.
    I enter the component and plant and I am also using the forward scheduling option.
    for some reason, SAP is taking a long time for material availability check when I hit the release button.
    Sometimes its taking more than an hour. Its happening with few specific BOM's, and I have checked the master data but I could hardly find a problem in master data.
    Can someone suggest me some tips ??
    Thanks & Regards,
    Sashivardhan

    Hi,
    Please check the Availability check control maintained for Components it should be 01 or 02. Also check the issue storage location maintained or not. You can maintain issue storage location in BOM in Status/lng text tab in Production Storage Location.
    Hope this will help.
    Regards,
    Navin

Maybe you are looking for

  • I add songs to itunes, but ipod will not update!

    I imported songs onto my itunes library. But when I plug it in the usb to update, it will automatically disconnect after 5 minutes, and the ipod will not update. I've tried adding all music, and just checked songs; both do not not work. I have versio

  • Inserting a character in an array

    i already have this piece of code: int length1=name1.length();           int length2=name2.length();           for(int g=0; g<length1; g++){                for(int k=0; k<length2; k++){                if(name2.charAt(k)==name1.charAt(g)){            

  • Probably a Stupid Newbie Question, but....

    Picked up a 8300 series Curve a couple of weeks ago.  Had it synched with my Outlook on my pc.  About a week ago the synch stopped working and I noticed that when the phone was plugged into the USB cord the little charger symbol would only stay lit u

  • FF 4 sucks!!! I hate it!! How do I get back to the previous FF?

    I do not care for the newest version of Firefox. I want to revert my laptop to the previous version. Please advise on how this is done ASAP.

  • Automatic Append Message Output for PO

    hello all, My scenario is after creating PO completely then go to message output through Messages button on icon row. On message output screen, there's no output item available. Then I must add NEU output type manually. Normally there's output type i