Salary of employees of respective manager

i have manager_id,last_name,salary from employees table i need to print the managers name and the lowest salry of the respective employee working under the manager

think about it. You want the lowest salary of an employee with this manager. Do we have a function that returns the lowest value? Why yes, it's MIN.
So we want our where clause to include
and a.salary = (SELECT min(salary) from employees c from this manager (a))
I leave you to do the simple join from c to a.

Similar Messages

  • Report that  display salary for employee from this year and prvious year

    Hi
    How to do a report that display salary for employee from this year an previous year, my table has from period and two perid?
    Thanks

    You could try something like this but you MUST learn how to post questions! Very few members will help you if you word your question poorly or forget to mention vital imformation!
    select distinct ty.id, ty.emp, ty.sal, ly.sal
    from (select distinct id, userid, sal
    from salary_table
    where id = 123456
    and from_period = '01-JAN-2010'
    and to_period = '31-DEC-2010') LY,
    salary_table TY
    where ty.id = 123456
    and ty.from_period = '01-JAN-2011'
    and ty.to_period = '31-DEC-2011'

  • Web Dynpro Abap Application for list employees of one manager?

    Hi experts!
    I'm trying to find a Web Dynpro Abap application that could show the list of employees of some manager, like the Web Dynpro Java application for MSS - Training Management.
    In my search's i don't find any, and i want to take sure if there wasn't any Dynpro Abap before to create a new application.
    Thanks & Best Regards,
    Luís Bento

    Hi Gayathri,
    I just have that scenario in my mind, and certainly it's the purpose that i need to implement. However i'm tried to use only standard applications, but maybe this case  it's a exceptional case
    Best Regards,
    Luís Bento
    PS: I give you some points for your answer

  • Find the Employees for whom Manager is not available

    Hi
    I wish to find all the Find the Employees for whom Manager is not available?
    Can anyone Pls throw some light how I can?
    Regards,
    Sreeram

    Hi
    Get all the Positions without "A002 - Reports" Relationship from table HRP1001 (excluding A002 from input screen).
    After finding the positions, get ee no.s for those positions from table PA0001.
    Hope this helps.
    Best Regards
    Reddy

  • Direct Employees of a Manager

    Hi all,
    I have a requirement where I need to fetch all the direct employees under a manager. These direct employees would mean all the employees directly assigned in the manager's org unit and also the manager/chief of the sub org units. I would not need the employees within the sub org unit.
    Example: Org_Unit1 has 3 positions & 3 persons and 3 other org units assigned to it.The 3 sub org units would have other positions/persons & managers of its own. I need to capture the 3 persons in the Org_Unit1 and also the managers of the 3 sub org units.I don't need the employees in the 3 sub org units.
    Is there are a function module or an evaluation path for this case.
    I actually tried looking up in SDN and found the following thread which has a very similar requirement, but was not complete......
    Re: How to find manager's direct employees
    Any thoughts and suggestions would be highly appreciated.
    Thanks

    Did you try these.
    [employees under manager|https://forums.sdn.sap.com/click.jspa?searchID=20985606&messageID=5881649]
    [employees in org unit|https://forums.sdn.sap.com/click.jspa?searchID=20985545&messageID=6513228]

  • How to get second maximum salary from employee table(sql query)

    how to get second maximum salary from employee table(sql query)

    dude there is no matter of structure .........that user already said its from employee table ...............its basic table in sql and there is no need to specify the table structure
    .........i think u got my point I think you are the one who didn't understand Sarma's point.
    Give a man a fish and you feed him once. Teach a man how to fish and you feed him a life long.
    >
    and the query is
    select max(sal) from emp where sal<(select max(sal)
    from emp);
    this will give the 2nd max salary from the emp tableBtw: You solution is bad, because it needs to scan and sort the table emp twice. And a better solution has been given already.
    Message was edited by:
    Sven W. - reordered statements

  • How to find 'n' th maximum salary in employees table

    how to find 'n' th maximum salary in employees table using stored procedure............

    Depends on your unmentioned database version.
    In general you're asking for a Top-N query.
    See this article:
    http://www.oracle.com/technetwork/issue-archive/2007/07-jan/o17asktom-093877.html
    In 11g you have http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions114.htm#CJAFEJBE
    an analytic function
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions004.htm#SQLRF06174

  • Issue for Form 16 and tax Computation on Salary to Employees

    Dear All
    Can Anybody suggest a way out for the following -
    We have to issue form 16 as per Indian income tax laws to employees. is there any method for computation of tax on salary or any development is required for the same. As per the Indian income Tax law a computation sheet is to be issued to an emmployee wherein his actaul salary earned ( say for two months) plus his estimated salary for remaining 10 months is to be given and employee in turn returns back the form duly signed in. how this computation sheet works in SAP ?
    Pl guide.
    Regards
    Rakesh Choudhary

    Hi Rakesh,
    this computation happens inside INTAX payroll function for India Payroll. ya its true that there is no standard SAP report to do this. But u can all the annual computation wage type in the RT (/4** wage types).
    If u want a seperate report to this then u can go for some Z development. But u dnt need to write the whole computation logic inside that. Instead of this u can use /4** wage types for the same.
    Regards,
    Praveen
    Edited by: Praveen Kr Tiwari on Apr 11, 2009 3:30 PM

  • To find 2nd highest salary in employee table

    Hi,
    I want to know how to calculate the 2nd highest salaried employee details.
    rownum "=" sign cannot be used i suppose and
    with and without using orderby clause.
    both the methods needed.
    cheers,

    With order by
    select * from
       ( select q.*, rownum as rn from
          ( select * from emp order by sal desc ) q
    where rn=2
    /With analytics:
    select empno , sal
    from ( select empno , sal
                  , dense_rank () over (order by sal desc) as sal_rank
           from emp )
    where sal_rank = 2Notice that DENSE_RANK() might give us a different result compared to RANK() and both give us a different result from the first example.
    Cheers, APC

  • Pls help me in finding highest salary of employee.

    can anybody give me...
    the general query...for finding out nth highest salary of the employee in a particular department.....
    for example, if i want to find out 2nd highest salary or some 5th highest salary of the employee.....
    i want query with a littlebit explanation also...

    i
    cannot do the sumation of those value then the
    negative value that being re-enter become 0. how can
    i make the value to become another positive value?Are you doing the `sumation' during the data entry (loop)? If so, make sure you only include valid value in the count (i.e. positive integers).

  • Org Assignment of global employees in Compensation Management

    I have a problem with Compensation Management but it also relates the Org Assignment of global employees
    In Comp when I try to submit an employee using transaction HRCMP001, I have an error saying no org assignment exist on 01. 01 .2008.
    The business scenario is as follows. EE is hired on 01012008 in UK for e.g. he gets terminated on 31.05.2008 and then gets re-hired in another country using the Global Employee Personnel actions on 01.06.2008. In this county, he becomes eligible to receive the increase but when I try to submit, the error comes up that no org assignment exist for 01.01.2008. I have changed the settings in T582A to u2018copy infotypeu2019, it tries to reference the previous org assign infotype from 01.01.2008(which is correct but the system rejects it and will only accept the new date of the new hire 01.06.2008) thereby not referencing the old org assignment in the new personnel number.? I tried the propose infotype option but it did not do anything. Does any one have any suggestions? Thanks ever so much for your anticipated help.

    You create the compensation packages using info type 0706. This info type has
    Two subtypes; one for home country and one for host country
    Check this link
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/32/79c73c0c52085be10000000a114084/content.htm

  • Calculate salary of employee from April to December ??

    Hi all,
    I want to find the salary of the employee from April to December month for that particular year entered on the selection screen, and then from January to March as well.
    How is it possible?
    I tried looking into various infotypes, but I couldn't find how to resolve this.
    Any help would be apperciated and rewarded.
    Regards
    Tarun

    Hi all,
    I am using the below code for my problem.
      data: l_pernr like pa0000-pernr.
    deviding the date and month
    month = date+4(2).
    *date = date+6(2).
    curr_year = date+0(4).
    IF month GT 3.
    next_year = curr_year + 1.
    ELSE.
    next_year = curr_year.
    curr_year = curr_year - 1.
    ENDIF.
    *CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    EXPORTING
    i_date = mydate
    I_MONMIT = 00
    i_periv = 'XX'
    IMPORTING
    E_BUPER =
    E_GJAHR = curr_year
    EXCEPTIONS
    INPUT_FALSE = 1
    T009_NOTFOUND = 2
    T009B_NOTFOUND = 3
    OTHERS = 4
    CONCATENATE curr_year '04' '01' INTO p_begda.
    CONCATENATE curr_year '12' '31' INTO p_endda.
      call function 'CU_READ_RGDIR'
        exporting
          persnr          = ls_tds_1-pernr
        importing
          molga           = w_molga
        tables
          in_rgdir        = it_rgdir1
        exceptions
          no_record_found = 1
          others          = 2.
      if not w_molga is initial.
        call function 'CD_READ_LAST'
          exporting
            begin_date      = p_begda
            end_date        = p_endda
          importing
            out_seqnr       = w_seqnr
          tables
            rgdir           = it_rgdir
          exceptions
            no_record_found = 1
            others          = 2.
      endif.
      sort it_rgdir by fpend descending.
      loop at it_rgdir into wa_itrgdir. "where fpbeg le p_endda and fpend = p_endda.
        w_seqnr = wa_itrgdir-seqnr.
      endloop.
      select single relid from t500l into w_relid where molga  =  'W_MOLGA'.
      l_pernr = ls_tds_1-pernr .
      call function 'PYXX_READ_PAYROLL_RESULT'
        exporting
          clusterid                    = w_relid
          employeenumber               = l_pernr
          sequencenumber               = w_seqnr                "'00003'
          read_only_international      = 'X'
        changing
          payroll_result               = it_result
        exceptions
          illegal_isocode_or_clusterid = 1
          error_generating_import      = 2
          import_mismatch_error        = 3
          subpool_dir_full             = 4
          no_read_authority            = 5
          no_record_found              = 6
          versions_do_not_match        = 7
          error_reading_archive        = 8
          error_reading_relid          = 9
          others                       = 10.
      loop at it_result-inter-rt into wa_rt.    " MAIN DATA THAT CAME FROM RT TABLE   FROM FN MODULE... LIKE FINAL PAYMENT I.E IN AMNT 19
        wagetype = wa_rt-lgart.
        case wagetype.
          when '1000'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg.
          when '1010'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1020'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1030'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1100'. " HRA REPAYMENT
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1040'. " HRA BALANCE
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1050'. " STAFF ADVANCE REPAYMENT
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1060'. " STAFF ADVANCE BALANCE
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1080'. " STAFF LOAN REPAYMENT
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1090'. " STAFF LOAN REPAYMENT
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1120'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1130'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1140'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '3010'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1160'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '/3E1'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '/3E2'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '/460'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '/3P1'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '9000'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg . " BONUS
          when '4000'.
            ls_tds-up_to_april = ls_tds-up_to_april + ( -1 * wa_rt-betrg ). " ADVANCE
          when '4020'.
            ls_tds-up_to_april = ls_tds-up_to_april + ( -1 * wa_rt-betrg ).
          when '4080'.
            ls_tds-up_to_april = ls_tds-up_to_april + ( -1 * wa_rt-betrg ).
          when '4030'.
            ls_tds-up_to_april = ls_tds-up_to_april + ( -1 * wa_rt-betrg ).
          when '4045'.
            ls_tds-up_to_april = ls_tds-up_to_april + ( -1 * wa_rt-betrg ).
          when '4070'.
            ls_tds-up_to_april = ls_tds-up_to_april + ( -1 * wa_rt-betrg ).
          when '4010'.
            ls_tds-up_to_april = ls_tds-up_to_april + ( -1 * wa_rt-betrg ).
          when '/3W1'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
          when '1170'.
            ls_tds-up_to_april = ls_tds-up_to_april + wa_rt-betrg .
        endcase.
      endloop.
    The first fm is giving me all the date periods which are there in pc_payresult, but the second fm is not giving me anything in it_rgdir. What is the reason for that.
    Further, i am using all this code in a form, and calling this form inside a loop for all the pernrs.
    And now seqnr will be different for different date periods. so suppose for 1.4.2011 to 31.12.2011, will have 9 different seqnr's, so i will have to call the last fm(3rd fm) 9 times to get complete sum, or any other solution is available??

  • Evaluation path - accessing of the direct employees by the manager.

    Hello Experts,
    I need to configure the evaluation path , using which the managers can access all the direct employees.
    Can u all please help me with this.
    It would be really helpful if u could suggest some documents to refer.
    Your answers will definitely be awarded.
    Thanks and Regards,
    Pooja Dev

    Hi...
    you can creat the evalution path in IMG -> PM -> PA  -> OM -> Basing setting -> evalution paths..
    1. select the evaluation path and make the relationship between the objects..
    2. test this in easy access under geneeral structures..
    but if u want to assing that evaluation path to spcefic user, then  u need to user structureal authorisation..
    which is different from general authorisation management..
    Best Regards
    Samson

  • To automate assigning employee to respective position.

    Hi All,
    Anyone knows about how to assign Employee(Business Partner) to the respective position for the organizational unit programmatically.
    three tasks:-
    To Automate the following programatically:-
    1. assign employee to the position.
    2. update employee positions.
    3. remove employee.( change the status of employee)
    Thanks!

    Hi
      Once you create org.unit you can assign positions,update and remove employee from their positions automatically.Make your customizing settings for automatic organisational data determination using the wizards.When you create a transaction,the system determines the org.data according to your customising settings.You can change or enhance the or.units manually.
    I hope this helps!!
    Cheers

  • How to find given employee number is manager or not

    Dear ABAPers,
    Could you please tell me the logic for finding
    whether given employee is manager or not
    regards,
    kishore.

    Hi Gautham,
                       your logic is not working here.I tried but no data
    avialble if i given EE Group = 1 EE Subgroup = 4.
    Any way thanks for given information
    Regards,
    kishore.

Maybe you are looking for

  • HDMI to Thunderbolt

    I am decieding wether or not to get a Thunderbolt Display. I want to know if I could play Xbox on it. Is there a HDMI to Thunderbolt so that I can play Xbox on my display? PS: I want a Thunderbolt Display not a Apple HDMI Display.

  • RME Syslog Automated Actions with exclude Filter

    Dear all, It's possible to realise a Filter with "exclude string"? I search how to for Create action for all Severity 2 without "FAN-FAULT" mnemonic... Best regards

  • Actionscript and Action panel?

    From what I understand, ActionScript (.as files) and Action Panel (F9 embedded in Flash) are completely different. If so, which one is better used for game programming and which one is more powerful? Can ActionScript do everything that the Actions Pa

  • I need to WAP to count the number of occurences of an alphabet in a string.

    I need to WAP to count the number of occurences of an alphabet in a string.I tried a lot and have surfed a lot regarding this problem. I m not the most proficient with java.but this is all i could come up with,and would appreciate some help here.I ho

  • SCC4 Lock

    Hi all, My Client is locked in Production (SCC4). Now i need to change date parameter in Infopackage, but the system is not allowing me to change anything. Same is the problem with process chain, i am not able to trigger it manually. Regards, Ramana.