How to compare current to that of immediate record

Dear Freinds,
              I have a scenario where i have to compare current  record to that of the previous record by checking any payroll area or employee group or position has been changed .
could any please give me some peace of code for the above scenario.
Regds
syamala

Hi Symala,
As per my understanding, suppose if there is any position change for an employee we can get the details history from the table HRP1001-> and the object id AS P for person and the Object number as Personal number.
Where we can get the list of records with start and end dates. In programe we can take the latest position with start date and end date of previous record and compare.
Finally, tell me why you are using this comparission, is this for any report to check master data changes with in a period or for any other reason.
Let me know ur requirement exactly.
Reward me if helps,
Thanks,
Vasu.

Similar Messages

  • How to create a VI that detects and records responses from user

    Does anyone has experience in creating a VI that allows the user to e.g., watch a video or series of images, pause or rewind video etc. and the VI records the duration of all pauses or user responses.

    avenue wrote:
    How to create a VI that detects and records responses from user
    You definitely need to check what 'EVENT STRUCTURE' is and how to use it... because thats needed to write such code.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • How to compare, current value in :block.text_item with the database value

    Hi
    Could you please tell me
    How to compare the current value in :block.text_item with the corresponding database column value.
    I am using forms 10g
    There is block and there is an text Item in that block.
    When I run the form and query the block (tabular), the :block.text_item shows me, whatever value there in the database.
    Now I add some value in the :block.text_item to the existing value.
    now
    the :block.text_item contains old+ new added value
    whereas
    the database table contains 'old' value
    Now on a button click , I want to find out what is the value that I have added
    Could you please tell me, is it possible without writing a select query?

    Hello,
    Now on a button click , I want to find out what is the value that I have addedSo you mean always user will add value in the existing value. Because this way will fail in one case. Let say
    Value in Database is = ABCD
    User opened the form and he removed the D and write E and now value is ABCE and length is still same 4. So, there is no addition.
    Anyway you can know the database value at runtime there is one property for item called DATABASE_VALUE. It gives the value which is in database while you are running the form before save. and you can use like this..
    Trigger = WHEN-MOUSE-DOUBLE-CLICK on item level
    DECLARE
      vItemValue DATATYPE; -- Set the data type according to your desired field.
      vValueAdded DATATYPE; -- Set the data type according to your desired field.
    BEGIN
      vItemValue:=GET_ITEM_PROPERTY('ITEM_NAME',DATABASE_VALUE);  -- It will return you the database value in vItemValue variable.
      IF LENGTH(vItemValue)>LENGTH(:FORM_ITEM_NAME) THEN  -- It mean something change or added
        vValueAdded:=SUBSTR(:FORM_ITEM_NAME,LENGTH(vItemValue)+1);
        MESSAGE('Added value is : '||vValueAdded);  -- It will show you the added value.
      END IF;
      -- now suppose you want to show the old and new value in message not the added one
      -- Then no need of IF condition. You can just use message like this
      -- And i would prefer to use like this way
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
    END;Hope it is clear.
    -Ammad

  • How to compare current date with past date

    Sample code for comparing current date with past date
    i dont want to Calender.set method to compare it.
    How can i do it?

    PLEASE stay with ONE thread:
    http://forum.java.sun.com/thread.jspa?threadID=5143991&tstart=0

  • How to compare two dates that should not exceed morethan 3 years

    hi all,
    can you please tell me how to compare two dates( basically dates are string type)
    that should not exceed more than 3 years? in JAVASCRIPT
    Thanks in Advance.

    This is not a JavaScript forum.
    [*Google* JavaScript Forum|http://www.google.co.uk/search?q=JavaScript+Forum&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a]
    Good luck.

  • How to compare current time with any particular time?

    Hi All,
    Problem:
    I have a form which accept data from user but i want that user can enter data only before 4 in the evening after that no data will be accepted and user get any message. Now the problem is I want to compare the current time with 4 o clock or 16:00:00 but i dont know how to check whether the current time is greater or lesser than 4. Till now my code are like this: if(tt.equals("16:00:00")){}else{}
    where tt is current time. but this is not the feasible solution for my second clause.
    Any kind of help will greatly appreciate.
    Thanks

    One more thing:
    I find timestamp class quite helpful in my case but i
    dont know how to implement the before() method
    of this class.
    Any idea.* You wouldn't implement before(). You'd just use it. It's already implemented for you.
    * before() doesn't just compare the hour of the day. It compare two date & time objects to see which one is greater--that is, it effectively looks at all the fields, not just HOUR.
    * You don't need Timestamp if you're not dealing with a database.

  • How to compare 2 Strings that have different content in them..

    I have 2 Strings:
    String st1 = "1,2,3,4,6,7,9,10,11";
    String st2 = "4,5,10,11";
    I want to compare these 2 Strings where the result should be. Basically, any item from st2 is in st1: String res = "4,10,11";
    How can I do this in an efficient way?
    I was thinking of using StringTokenizer on st2 and compare each item to st1.... any help is appreciated. Thanks.

    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.StringTokenizer;
    * @author BADRINARAYAN
    public class stringTok {
    public static void main(String[] ar)
        String st1 = "1,2,3,4,6,7,9,10,11";
        String st2 = "4,5,10,11";
        TreeSet<String> value=new TreeSet<String>();
        ArrayList<String> set1=new ArrayList<String>();
        ArrayList<String> set2=new ArrayList<String>();
        StringTokenizer s1=new StringTokenizer(st1,",");
        StringTokenizer s2=new StringTokenizer(st2,",");
        while(s1.hasMoreTokens())
            set1.add(s1.nextToken());
        while(s2.hasMoreTokens())
            set2.add(s2.nextToken());
        for(Iterator it1=set1.iterator();it1.hasNext();)
            String temp1=it1.next().toString();
            for(Iterator it2=set2.iterator();it2.hasNext();)
                if(temp1.equals(it2.next().toString()))
                    value.add(temp1);
        System.out.println(value);
    }Edited by: badri.m on Feb 15, 2010 3:25 AM

  • How to make an action that does not record the path in which you save your file

    Hi all, once I set an action like this:
    and with the batch i can always choose the destination folder, time by time.
    But I tried to do a similar action that saves a png file, but I can't leave the "in: " empty, it always fill with a path.
    How can I do?
    Thanks a lot!

    Basically i need to create a new document out of a folder full of images.
    You may have to look into Scripting to achieve something like this.
    You could ask in the Scriptimg Forum
    Photoshop Scripting
    But maybe it would suffice to insert the Menu Item
    File – Scripts – Load Files into Stack
    into the Action and then iterate through the Layers with [ or ] and reset the opacities and Blend Modes – but as Actions would not be able to change the number of repetitions of the operation conditionally a custom Script would still seem preferable. 

  • How do I get videos that I have recorded from my iPad to dvd?

    I have multiple home videos that I would like to move from my iPad to DVD.   I do have a laptop but it is not an apple product.  Does anyone have any suggestions?

    Using Pages (for word files) and Numbers (for excel files), you can buy both from the Mac App Store

  • How to update a table that has  Million Records

    Hi,
    Lets consider the basic EMP table and lets assume that it has around 20 Million Records . we need to have an update statement.Normal UPdate statement may hang the system or it may take a lot of time.
    The basic or Normal update statement goes like this and hope it may not work.
    update emp set hiredate = sysdate where comm is null and hiredate is null;Basic statement may not work. sugestions Needed.
    Regards,
    Vinesh

    sri wrote:
    I heard Bulk collect will resolve these type of issues and i am really poor at Bulk Collect concepts.Exactly what type of issue are you concerned with? The business requirements here are pretty important-- what problem is the UPDATE causing, specifically, that you are trying to work around.
    so looking for a solution to the problem using Bulk Collect .Without knowing the problem, it's very tough to suggest a solution. If you process data in batches using BULK COLLECT, your UPDATE statement will take longer to run and will consume more resources on the database. If the problem you are trying to solve is that your UPDATE is not fast enough, this is a poor approach.
    On the other hand, if you process data in batches, and do interim commits, you can probably hold locks on individual rows for a shorter amount of time. That would only be a concern, though, if you have some other process that is trying to update the same rows that you are updating at the same time that you're updating them, which is pretty rare. And breaking your update into multiple transactions introduces a whole bunch of complexity. You now have to write a bunch of code to ensure that your process is restartable should the update fail mid-way through leaving some number of updates committed and some number rolled back. You have to have a very detailed understanding of the data and data consistency to ensure that breaking up the transaction isn't going to negatively impact any process, report, etc. To do it correctly is a pile of work and then it's something that is constantly at risk of creating problems in the future when requirements change.
    In the vast majority of cases, you're better off issuing a simple SQL statement during a time when the system isn't particularly busy.
    Justin

  • How can I monitor audio that I am recording from external source?

    I am recording music from LP records (vinyl) and need to be able to listen to it while recording. It is impossible to know when a track is finished if you can't hear the music from either internal speakers or headset. Is there any way I can passthrough the sound from line in to internal speakers or headset?

    Look at LineIn for audio playthru.

  • How to compare user entered date with current date

    Hi all
    my requirement is, user allowed select one date, in code i have compare this date with current day date. it should be 15days gap other wise display error message.
    I am worried about how to get current date in code. Is there any code to get current date. please reply me with code or mail me at [email protected]
    Thanx
    keerthi

    Keerthi,
    Use the method <b>getDifference()</b> of the DateHelper.java available here.<a href="http://www.koders.com/java/fid14A61FEB1B45A64E42E1DCAD7070B46AE46340BA.aspx">DateHelper</a>
    1. Create a new folder, say Util under your src folder. (com.xyz.util)
    2. Put this DateHelper.java file in that folder,(com.xyz.util) .
    3. Now, write an import statement for this java class in the required view.
    4. Use the getDifference() method of this class to the difference in days between two days.
    Or
    Simply use this code.
    // Get msec from each, and subtract.
    long diff = currDate.getTime() - selectedDate.getTime();
    int noOfDays = diff / (1000 * 60 * 60 * 24);
    where currDate is today's Date and selectedDate is the Date selected by the User.
    Bala

  • Ive Had  32gb IPOD Touch n now just got an 8gb IPHONE 4S. My question is how am I supposed to sync my iphone without it syncing my current library that is well over 32gb of info? In other words, can i pick and choose what I want to put on just iphone?

    Ive Had  32gb IPOD Touch n now just got an 8gb IPHONE 4S. My question is how am I supposed to sync my iphone without it syncing my current library that is well over 32gb of info? In other words, can i pick and choose what I want to put on just iphone?

    thanks but if Im using iCloud For my Iphone and backing my ipod touch to my computer is that ok or would I have to back both up to ICloud. As u can telll, I want to kep the 2 devices seperate as much as possible, only putting on my phone what i choose to download, buy, or take from my current itunes library most importantly.

  • How do I delete my old iMessage email and change to my current one, that Im using when I buy apps and so on. The old one wont go away when I turn iMessage on and of again. pls help

    How do I delete my old iMessage email and change to my current one, that Im using when I buy apps and so on. The old one wont go away when I turn iMessage on and of again. pls help
    Anyone had the same?

    How do I delete my old iMessage email and change to my current one, that Im using when I buy apps and so on. The old one wont go away when I turn iMessage on and of again. pls help
    Anyone had the same?

  • I have an old version of itunes on my computer.  My current iPhone will only support OS 10.6.8, how can I upgrade to that system instead of the latest version?

    I have an old version of itunes on my computer.  My current iPhone will only support OS 10.6.8, how can I upgrade to that system instead of the latest version?

    In teh middle of this page...
    -> http://support.apple.com/kb/DL1576
    Download iTunes 10.7 for Windows here: iTunes 10.7 for Windows

Maybe you are looking for

  • TS3212 cant download itunes on sony vaio windows 8

    I need help please I purchased a sony vaio a few weeks ago with windows 8 now i cant seem to get my itunes to either download or to work I initially installed itunes before i activated my norton internet security and i was able to get itunes to downl

  • How to automate the process of loadind data from XML to BI.

    Hi, We have configured all settings that is required for web service portal(web application server). But, the problem is that when we go to the T-Code WSADMIN----> XMLA -->Test After entering the data manually i.e material,plant etc. it will be avail

  • Apple Service Toolkit 1.2.3 doesn't show any triage tools

    I just installed the AST 1.2.3 with OS3,OS4, and OS5 on a 10.6 server with an existing netboot image.  When I netboot, AST and my casper image both show.  When I choose AST, it boots and shows me the casper netboot image but not any of the triage too

  • SB Live External Problems finding & using a good acoustic Piano soundf

    I recently acquired a 24-bit SB Li've! external soundcard which I use with my laptop computer and midi keyboard for playing piano-type music. I'm a newbie, so bear with me here. I'm trying to find a decent, full, rich-sounding, sampled acoustic grand

  • Columns repeating in delimited output in reports6i

    I am using oracle reports 6i this is the query used select ' roleclass id,role id,role nm,object nm,action nm,HasPermission' Columns from dual union all select role.roleclass_id||','|| role.role_id||','|| role.role_nm||','|| PERM.object_nm ||','|| PE