A list of all staff currently employed by one org

User want list of all staff currently employed by XXXX organization.
I ran this query
  SELECT papf.employee_number, papf.first_name, papf.last_name
    FROM per_all_people_f papf,
         per_all_assignments_f paaf,
         hr_all_organization_units haou
   WHERE     1 = 1
         AND paaf.organization_id = haou.organization_id
         AND papf.person_id = paaf.person_id
         AND TRUNC (SYSDATE) BETWEEN papf.effective_start_date
                                 AND papf.effective_end_date
         AND TRUNC (SYSDATE) BETWEEN paaf.effective_start_date
                                 AND paaf.effective_end_date
         AND haou.name = 'XXXXX'
--and papf.employee_number is not null
-- and papf.current_employee_flag= 'Y'
GROUP BY papf.employee_number, papf.first_name, papf.last_name
The user said this is wrong data, some eployee number is not and the number of employees are more than my extract.
Please help me with query.

HI,
you aren't necessarily looking at current employees, i.e ones where the per_periods_of_service actual_termination_date is null or in the future for the assignments,
additionally you could be pulling in Applicatnt , Benefit , contingent worker assignments too.
try
    SELECT papf.employee_number, papf.first_name, papf.last_name
        FROM per_all_people_f papf,
             per_all_assignments_f paaf,
              per_periods_of_service pps,
             hr_all_organization_units haou
       WHERE     1 = 1
             AND paaf.organization_id = haou.organization_id
             AND papf.person_id = paaf.person_id
             AND papf.person_id = pps.person_id
            AND pps.period_of_service_id = pps.period_of_service_id
            AND paaf.assignment_type in ('E','C')
            AND trunc(sysdate) <= nvl(pps.actual_termination_date, trunc(sysdate))
      AND TRUNC (SYSDATE) BETWEEN papf.effective_start_date
                                   AND papf.effective_end_date
           AND TRUNC (SYSDATE) BETWEEN paaf.effective_start_date
                                   AND paaf.effective_end_date
           AND haou.name = 'XXXXX'
GROUP BY papf.employee_number, papf.first_name, papf.last_name

Similar Messages

  • Can you tell me how to copy all staff assignments(structure) in one to anot

    Dear Experts,
        can you tell me how to copy all staff assignments(structure) in one organization unit to another organization unit ?
    Looking forward to your reply.
    Thanks in advance.
    Best Regards,
    Merry

    RHCOPY00
    use this report to copy the objects
    even though if u are maintaint he staff assingments the same will be displayed in other types of the OM Module like expertmode simple maintainence etc the only thing is  the method woudl be changeing

  • Retrieve list of all subject currently logged in?

    How can get a list of all subjects that have a session in WL
    on the fly?

    hiii
    how can i fetch a list of all the users who are
    currently logged on the network...Easy, nobody logs onto the network so this is always nobody.
    You may be asking, how do I determine all the users who have logged in to all the PCs on the network.
    Write a program which is added to each user's Startup a program which updates the database with their details. If you have network scripts, this can be added to the user' network login batch script.

  • List of all interfaces in the XI landscape

    Hi Experts,
    Currently my company is going through a merge project with a second company, and we want to integrate the SAP systems. This will inevitably mean more interfaces to be built. What we would like to have is a way to generate a list of all the current interfaces in the XI landscape, so we can get a good overview of what can be reused or copied.
    I know we can get a list by opening the ID and looking at the configured scenario's, but we would like to automate this. Are there any tables where the interface scenario names are stored, and where we can see which type of interface it is (IDOC / File / JDBC / ...)?
    If someone knows of a solution for this, it would be greatly appreciated. Otherwise this will remain a manual action, and as such, prone to mistakes or oversights...
    Our current XI landscape is XI 3.0, SP18.
    Thanks in advance,
    Yordy

    Hi,
    Solution is very simple: Use ABAP table SMPPREL3, this table contains all relationships (end-2-end) interface. You can use this table to know all about interface.
    Only caution is that this table also have some wild-card entries so total number of interface count can vary by 1-2%, but this happen on runtime only, this table will perfectly match your manual counting.
    Regards,
    Gourav
    <i>Reward points if it helps you</i>

  • Master list of all content on available for purchase on iTunes?

    I'd like to hand out an extensive website/list/etc to my team convincing them to use iTunes. I'd specifically like a master list of all content currently available to purchase on iTunes...music/artists, movies, tv shows, etc. I realize this is a wacky question, probably not possible or available, but if anyone is aware of such a list, please post! Thanks!

    Kinda like asking for a list of all the words in the dictionary.
    Why not look in the dictionary?
    Just go to iTunes and browse or search for something.

  • Is there a way to LIST OUT all of the active images that are currently being used on a page in Dreamweaver?

    Is there a way to LIST OUT all of the active images that are currently being used on a page in Dreamweaver?  Or do I have to click each one and write down the image name by hand?
    Thanks!
    LJ

    Alternatively use a browser:
    Use the Firefox Web Developer Toolbar
    https://addons.mozilla.org/en-US/firefox/addon/60
    Images > View Image Information
    or the List All Images Add On for Firefox
    https://addons.mozilla.org/en-US/firefox/addon/3688
    or the Web Developer tools in IE8 (or earlier), F12 > Image > View Image Report

  • Is there a way of listing all the current keyboard shortcuts?

    Within a program is there a way of listing all the current keyboard shortcuts , in a sensible order?
    I mean in shortcut order,  giving the name of the menu option (or other function) alongside.
    I often want this when I"m about to define my own keyboard shortcut, to see what's already taken.

    dominic23 wrote:
    https://discussions.apple.com/message/21487716#21487716
    Hope this helps.
    Not sure it does help. In http://support.apple.com/kb/PH10837 it says
    If you assign a keyboard shortcut that already exists for another command or another app, your new shortcut won’t work. Find the menu command that’s using it and reassign the keyboard shortcut for that item.
    I looking for a quick way to "find the menu command" - or even better, to avoid choosing one that's already being used.

  • Current list of all SAP modules and sub-modules

    Can anyone point me to a current and comprehensive list of all available SAP modules and sub-modules?  Currently, the best source I have found for this list is SAPNote 36677, which lists all the structure of components for customer incidents.  However, this SAPNote list is over 23K line items and includes information outside of the modules and sub-modules, in a format that is difficult to normalize.

    Eric,
    a similar question was posted in this link: http://scn.sap.com/thread/3652322
    Assuming you are looking for an overview on the modules for the SAP Business Suite, personally I like the list in the SAP help
    Also a valuable resource is the SAP Release Strategy webpage, which provides link to the Solution Explorer, which shows the available modules by LoB Line of Business or Industry solution, and the official Product List called PAM Product Availability Matrix, which is pretty technical.
    thank you
    erich

  • I want to get List of all active sessions in current system

    Hi experts
    How to get list of all active sessions in current system in any internal table along with details.
    A sample code wud be helpful
    Thanks in advance.

    try this code it might help u.
    Below report execution gets the active Session list to ABAP memory
    submit rsm04000_alv and return exporting list to memory.
    refresh: gt_listobj.
    Below FM get the List output from ABAP memory to gt_listobj in HEX
    call function 'LIST_FROM_MEMORY'
      tables
        listobject = gt_listobj
      exceptions
        not_found  = 1
        others     = 2.
    if sy-subrc <> 0. " Executed successfully ?
      message id sy-msgid type sy-msgty number sy-msgno
      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    This FM converts ITAB gt_listobj from HEX to ASCII
    call function 'LIST_TO_ASCI'
      tables
        listasci           = it_list
        listobject         = gt_listobj
      exceptions
        empty_list         = 1
        list_index_invalid = 2
        others             = 3.
    if sy-subrc <> 0. " Executed successfully ?
      message id sy-msgid type sy-msgty number sy-msgno
      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    This Shows the output in List format on screen
    call function 'REUSE_ALV_LIST_DISPLAY'
    exporting
       i_structure_name                  = 'line'
      tables
        t_outtab                          = it_list
    exceptions
       program_error                     = 1
       others                            = 2.
    if sy-subrc <> 0. " Executed successfully ?
    message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.

  • How to find out the list of all user's whose passwords are expired

    Hi
    i had tried to find out the list of all user's whose passwords are expired.
    i had written some jndi code by finding the max age and then find out the current time and subtracted this current time from max age using the following code
    "Attributes attbts=ctx.getAttributes("cn=pwdpolicy");
    String maxAge=(String)attbts.get("pwdMaxAge").get();
    Date Today = new Date();
    System.out.println("maxAge"+maxAge);
    long curTime=(Today.getTime())-Long.parseLong(maxAge)*1000;"
    and then parse it and create a string time as follows
    String time=year+month+day+hour+minute+second+"Z";
    where "year" "month" etc were parsed from curTime
    now i can get the list by using following code
    "String filterCriteria="(&(objectclass=person)(pwdChangedTime>="+time+")";
    NamingEnumeration results = ctx.search(baseDN,filterCriteria, sc); "
    but the current time which i am getting is the time of my system not the time of ldap server
    so my questions are following;
    1.Can there is any way by which i can get the tivole sever's system time.
    2.If there is no way then can you suggest any other way to find out the list of user's whose passwords are expired.
    please help me.
    Thanks.
    Krishan Rathi.

    Hi,
    Thanx for ur reply..
    I got the list from the table...
    thanks,
    sivagami

  • Can I get a List of all the running processes in the system using java ?

    I want a complete list of all the Running processes currently in the system.
    List of running processes is like, in MS Window environment while we presses ctrl + alt + del and we get a small window containing a list of all the running processes currently in system.
    I hope somebody have done the same and will help me.
    thanx.

    Here is the sample code to get All running process in your system .
    Its in C++.And you have use JNI to use this code.
    For complete project goto
    http://www.mindcracker.com/mindcracker/c_cafe/winapi/protracker.asp
    typedef BOOL (WINAPI * PFNENUMPROCESSES)(
    DWORD * lpidProcess,
    DWORD cb,
    DWORD * cbNeeded
    typedef BOOL (WINAPI * PFNENUMPROCESSMODULES)(
    HANDLE hProcess,
    HMODULE *lphModule,
    DWORD cb,
    LPDWORD lpcbNeeded
    typedef DWORD (WINAPI * PFNGETMODULEFILENAMEEXA)(
    HANDLE hProcess,
    HMODULE hModule,
    LPSTR lpFilename,
    DWORD nSize
    //unsigned int i;
    static HMODULE hModPSAPI = 0;
    static PFNENUMPROCESSES EnumProcesses = 0;
    static PFNENUMPROCESSMODULES EnumProcessModules = 0;
    static PFNGETMODULEFILENAMEEXA GetModuleFileNameExA = 0;
    if ( !hModPSAPI )
    hModPSAPI = LoadLibrary( "PSAPI.DLL" );
    if ( !hModPSAPI )
    return FALSE ;
    EnumProcesses = (PFNENUMPROCESSES)
    GetProcAddress( hModPSAPI,"EnumProcesses" );
    EnumProcessModules = (PFNENUMPROCESSMODULES)
    GetProcAddress( hModPSAPI, "EnumProcessModules" );
    GetModuleFileNameExA = (PFNGETMODULEFILENAMEEXA)
    GetProcAddress( hModPSAPI, "GetModuleFileNameExA" );
    if ( !EnumProcesses
    || !EnumProcessModules
    || !GetModuleFileNameExA )
    return FALSE;
    LV_ITEM lvi;
    CString str, str1;
    if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) )
    return FALSE;
    cProcesses = cbNeeded / sizeof(DWORD);
    char szProcessName[MAX_PATH] = "unknown";
    for ( int i = 0; i < cProcesses; i++ )
    HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION |
    PROCESS_VM_READ, FALSE, aProcesses);
    if ( hProcess )
    HMODULE hMod;
    DWORD cbNeeded;
    if ( EnumProcessModules( hProcess, &hMod, sizeof(hMod), &cbNeeded) )
    GetModuleFileNameExA( hProcess, hMod, szProcessName,
    sizeof(szProcessName) );
    str = szProcessName ;
    str1.Format(": %d ", hProcess );
    str += str1 ;
    m_list.AddString ( str );
    UpdateData(TRUE );
    CloseHandle( hProcess );

  • Feature Request: Consistently Intelligent Font Lists across all CS Program

    Current Problems/Inconsistencies in Font Lists + Suggested Solutions:
    NUMBER OF FONTS SIMULTANEOUSLY DISPLAYED:
    Premiere Pro (PP): 16 (too few!)
    AE: 19 (too few!)
    Photoshop: 40 (adequate)
    Illustrator: auto-maximizing (displays as many fonts as screen supports, 50 on a 1920x1080 monitor)
    *SOLUTION: Make all font lists auto-maximizing like Illustrator!
    FONT PREVIEWS:
    PP: Yes (6 user-defined characters previewed next to font names)
    AE: No previews
    Photoshop: Yes ('Sample' displayed in each font, but too small for comfortable viewing)
    Illustrator: Yes (Each font name is displayed in actual font, but this makes it inconvenient to know the name of 'Dingbat' fonts.)
    *SOLUTION: Make all font lists display font names in left column, with 'Sample' displayed in the actual fonts to the right.  When users select any text, replace 'Sample' with the first 1-30 selected characters for instant previewing in all available fonts (e.g. selecting the '&' character would display '&' in all available fonts for instant comparison). Also make font lists resizable with a horizontal zoom bar at top of list to ensure comfortable viewing for everyone.
    SCROLL BAR:
    PP & AE: Yes
    Photoshop: Yes (perfect size and color scheme for best visibility)
    Illustrator: No (current scrolling method is frustratingly slow!)
    *SOLUTION: Add a Photoshop style scroll bar to each font list for best visibility/usability.
    FONT SELECTING WITH ARROW KEYS:
    PP & AE: Yes, by arrow-keying up/down in both the font fields and font lists
    Photoshop & Illustrator: Only from the font fields. Highlighting fonts with the arrow keys in the font lists doesn't result in font visualizing.
    *SOLUTION: Allow PREVIEWING of fonts by arrow-keying up/down in font fields and font lists in all CS programs.  I emphasize 'previewing' instead of 'selecting', since previewing fonts avoids the problem of unnecessary undos being created for each font visualized with the arrow keys. (Note: Arrow-scrolling through the font field in Photoshop's Options bar works as I suggest, by 'previewing' each font without creating unnecessary undos.  Unfortunately, arrow-scrolling through the font field in Photoshop's Character panel does create useless "Set Character Style" History states for every visualized font.  This kind of inconsistency even within a single program is crazy!)
    CONCLUSION:
    CS programs are all part of the same family, and should therefore behave as such with consistently intelligent tools.  This includes font lists with a consistently intelligent design.
    Please comment and share!  Let's get these glaring font list inconsistencies finally fixed!

    If you want to do this correctly you need to file a request for each feature.
    Ripple Sequence and Chapter Markers is already implemented. Sequence markers are the same as chapter markers, yes? (Ripple Sequence Markers, select Marker > Ripple Sequence Markers.)
    Ability to print the Keyboard Shortcuts, or save all of them as a text file. also available. (hold ctrl+shift while opening. A button with clipboard appears)
    Keyboard shortcuts to scale image zoom in Source and Program tabs. available
    Keyboard shortcuts to increase or decrease playback resolution. available
    Make Export and Title windows return to the previously adjusted size and placement. They do.
    Some feature you posted are great. How about a eyedropper tool for the Color Matte?
    I find the Magnet for Snap quite visible. There is also this feature in the Pref to make the playhead snap.

  • How to get a list of all the clients logged in to the network

    hiii
    how can i fetch a list of all the users who are currently logged on the network...so that the list can then be sent to a database..plz tel me what techniqe can followed to do this....thanx

    hiii
    how can i fetch a list of all the users who are
    currently logged on the network...Easy, nobody logs onto the network so this is always nobody.
    You may be asking, how do I determine all the users who have logged in to all the PCs on the network.
    Write a program which is added to each user's Startup a program which updates the database with their details. If you have network scripts, this can be added to the user' network login batch script.

  • How to populate a sharepoint 2010 list from the active directory. How to populate a sharepoint 2010 list with all sharepoint user profiles

    How to populate a sharepoint 2010 from the active directory.
    I want a list of all the computers in the active directory,
    another one with all users.
    I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
    Thanks
    sz

    While
    the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources.  Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
    information that are already in the system?  Now you can with a little InfoPath customization on the contacts list. 
    Here’s our plan:
    Create the contacts list, and open in InfoPath
    Create a data connection to the User Profile web service
    Customize the form adding some text, a people picker and a button
    Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
    Let’s get going!  Before we begin, make sure you have InfoPath 2010 installed locally on your computer.  I also want to give credit Laura
    Rogers and Darvish Shadravan’s book Using
    Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step.  I know it looks like a lot of steps, but it’s easy once you get the hang of it.
    So obviously we need a contacts list.  If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
    From the list, click the List tab on the ribbon, then click Customize form:
    So now we have our form open in InfoPath 2010.  Let’s add our elements to the form. 
    Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
    Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon.  This will add a column to the contacts list called group.
    Below the people picker, insert a button control from the same section of the ribbon as above.  With the button still highlighted, click the Control Tools|Properties tab on the ribbon. 
    Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
    You can drag the button control a little larger to account for the text.
    We should end up with something like this:
    Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
    Add a data connection to the User Profile Service
    Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
    For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL.  Click Next.
    Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
    For the operation, choose GetUserProfileByName.  Click Next.
    Click Next on the next two screens.
    On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
    Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
    Tell the form to read the user from the people picker control
    Click the Home tab on the ribbon.
    Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
    In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
    Leave the condition to default (none – rule runs when button is clicked).
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Click the Show advanced view on the bottom.  At the top, click the drop down and choose the GetUserProfileByName
    (Secondary) option.  Expand myFields and queryFields to the last option and highlightAccountName.  Click ok. 
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
    connection as Main. Expand dataFields, then mySharePointListItem_RW.  At the bottom you should see a folder called group (the people picker control we just added to the form).  Expand this, then pc:Person,
    and highlightAccountId.  Click Ok twice to get back to the Rules pane.
    If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user.  So we need to tell the form what user to load the data for.  We take the AccountID field from the people
    picker control and inject into the AccountName query field of the User Profile Service data connection. 
    Load the user profile service information for the chosen user
    Click the Add button next to “Run these actions:”, and choose Query for data.
    In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
    We’re closing in on our goal.  Let’s see our progress.  We should see something like this:
    Now that we have the user’s data read into the form, we can populate the fields in the contact form.  The number of steps to complete will depend on how many fields you want to populate.  We need to add an action step for
    each field.  I’ll show you one example and then you will just repeat the steps for the other fields.  Let’s update the Job Title field.
    Populate the contact form fields with existing user’s data
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Highlight the field Job Title.
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button.  Click the Show advanced view on the bottom. At the top, click the
    drop down and choose theGetUserProfileByName (Secondary) option.  Expand the fields all the way down until you see the Value field.  Highlight it but don’t click ok, but click the Filter
    Data button, then Add. 
    For the first dropdown that says Value, choose Select a field or group.   The value field will be highlighted, but click the field Name field
    under PropertyData.  Click Ok. 
    In the blank field after “is equal to”, click in the box and choose Type text.  Then type the text Title. 
    Click ok until you get back to the Manage Rules pane.  The last previous screen will look like this.
    We’re going to update common fields that are in the user’s profile, and likely from Active Directory.  You can update fields like first and last name, company, mobile and work phone number, etc.  For the other fields, the
    steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change.  Here’s what the rules look like when we’re done:
    We’re all done, good work!  You can preview the form and try it now.  Click Ctrl+Shift+B to preview the form.  Once you’re satisfied, you can publish the form back to the library.  Click File –> Quick
    Publish.  Once it’s done, you will get confirmation:
    Now open your form in SharePoint.  From the contact list, click Add new item.  Type in a name, and click the button and watch the magic happen!

  • I got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this?

    i got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this and get my information back?

    Every backup replaces the old one, so, unless you included the backup folder in your computer backup routine, you can't get back your calendar info.
    The only time iTunes will not replace a backup is, when you use it to restore from, this one will stay in the backup list in iTunes.
    More info on backups here: http://support.apple.com/kb/HT1766

Maybe you are looking for

  • Having this block coming up for java ,,TypeError: Components.classes[cid] is undefined what do i do to fix this issue

    while downloading fire fox it requested i update java,, which i did and upon doing so and restarting computer to have commponates installed ,,this error comes up and will not stop.. box heading JAVA SCRIPT APPLICATION WITH THIS MESSAGE....TypeError:

  • Geo MAP in Web dynpro Application

    Hi all,    we are trying to test the GeoMap Functionality in SAP Help we found that some Software Component is required to run the Geo Map Web Dynpro Application as given below "The GeoMap UI element can only be used with a special software component

  • How does the Garbage Collector handle reference-free objects?

    Hi, I am interested to know how the GC handle's objects created without a reference. The reason this has become of interest to me is that I have created a "Title" class. The Title class animates each letter of Title.text to appear in a cloud of smoke

  • Bug In Transform Panel (Long-Standing Issue)

    I wonder when Adobe will ever bother to fix this... the units in the doc setup and ruler are not honored in the Transform Palette when the document is first opened. The easiest workaround is to right-click on the ruler and re-select the unit you want

  • My query still running und running  without end

    Hi Everybody, Mr. Randolf allready advice to provide an explain plan but But i cannot beause my query still running und running. What to do please. select D1.c1 as c1,      D1.c2 as c2,      D1.c3 as c3,      D1.c4 as c4,      D1.c5 as c5,      D1.c6