To get the employee with the largest salary

Is it possible to find the employee with the largest salary without using a subquery???

Well, of course there are many tables with employees in them, but from the
phrasing of the question (find highest salary, but can't use subquery!) I think we can
conclude it's the emp table in question here :-)... and I have no sample schemas in any of my databases. And now? ;)
I guess it's absolutely ok to ask for actual data. Moreover, it should be provided by OP when posting the question.
I'm not here because I love to make (more or less) educated guesses.

Similar Messages

  • How can i get the maximum salary first in the order of ascending

    Hi,
    How can i get the maximum salary first in the order of ascending.
    I need the sql query.
    my output should like:
    Emp_Name Salary
    A 5000
    SS 100
    AA 300
    DD 700
    WW 2000
    Thanks,
    MuthyaM.

    Here is an example :
    SQL> with mytable as
      2  ( select 'aa' as col1,  300 col2 from dual union all
      3    select 'ss' as col1,  100 col2 from dual union all
      4    select 'a'  as col1, 5000 col2 from dual union all
      5    select 'dd' as col1,  700 col2 from dual union all
      6    select 'ww' as col1, 2000 col2 from dual )
      7  select col1, col2
      8  from   mytable
      9  order by decode(row_number() over (order by col2 desc),1,0,1),col2;
    CO       COL2
    a        5000
    ss        100
    aa        300
    dd        700
    ww       2000
    SQL>Nicolas.

  • Get the largest file in directory

    Hi All,
    how do i get the largest  file in directory.?
    using labview 7.1
    regard's
    eyal.

    I don't have 7.1, but here's one way in LabVIEW 8.2 (looking for largest VI in this case). Not sure if "List Folder" and "Get File Size" are in 7.1:
    This is a sample only, has no error handling, and looks in the given folder only (doesn't recurse sub-folders).
    Message Edited by Bill@NGC on 07-22-2007 01:23 AM
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx
    Attachments:
    largest file size.png ‏277 KB

  • Trying to get a employee with DI SERVER

    Hi experts,
    I'm using the DI Server and I need update a employee, for that, I need to get a specific employee and then modify him, but when I use the GetByKey method, it always returns "no record found". My code is the next one:
    SBODI_Server.Node DISnode = new SBODI_Server.Node();
    string sSOAPans = null;
    XmlDocument xmlDoc = new XmlDocument();
    string sCmd = <?xml version=""1.0"" encoding=""UTF-16""?><env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">
    + "<env:Header><SessionID>" + SessionID + "</SessionID></env:Header>"
    + @"<env:Body><dis:GetByKey xmlns:dis=""http://www.sap.com/SBO/DIS"">"
    + "<Object>oEmployeesInfo</Object><EmployeeID>" + empID + "</EmployeeID></dis:GetByKey></env:Body></env:Envelope>";
    sSOAPans = DISnode.Interact(sCmd);
    xmlDoc.LoadXml(sSOAPans);
    I just have one employee in the data base, with empID = 1. I tried to view all employees with the next code:
    string sCmd = <?xml version=""1.0"" encoding=""UTF-16""?><env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">
    + "<env:Header><SessionID>" + SessionID + "</SessionID></env:Header>"
    + @"<env:Body><dis:GetObjectKeyBySingleValue xmlns:dis=""http://www.sap.com/SBO/DIS"">"
    + "<ObjNum>oEmployeesInfo</ObjNum><PropName>Religion</PropName><Value>--</Value><Condition>bqc_NotEqual</Condition>"
    + "</dis:GetObjectKeyBySingleValue></env:Body></env:Envelope>";
    And the EmployeeID 1 appears.
    What am I doing wrong?
    Regards,
    Pedro

    Hi Maik,
    I tried your code
    <?xml version=""1.0"" encoding=""UTF-16""?><env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">
    <env:Header><SessionID>" + SessionID + "</SessionID></env:Header>
    <env:Body><dis:GetByKey xmlns:dis=""http://www.sap.com/SBO/DIS"">
    <Object>oEmployeesInfo</Object><EmployeeID>1</EmployeeID></dis:GetByKey></env:Body></env:Envelope>
    But  I have the same response:
    <?xml version="1.0" ?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
         <env:Body>
              <env:Fault>
                   <env:Code>
                        <env:Value>env:Receiver</env:Value>
                        <env:Subcode>
                             <env:Value>-2052</env:Value>
                        </env:Subcode>
                   </env:Code>
                   <env:Reason>
                        <env:Text xml:lang="en">No record found</env:Text>
                   </env:Reason>
                   <env:Detail>
                        <EmployeeID>1</EmployeeID>
                        <Object>171</Object>
                        <Command>GetByKey</Command>
                         <SessionID>6B3C6A86-2F4B-4810-99DC-C0CCAAEECAC9</SessionID>
                   </env:Detail>
               </env:Fault>
         </env:Body>
    </env:Envelope>
    The second message of original post returns this list:
    <?xml version="1.0" ?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
         <env:Body>
              <GetObjectKeyBySingleValueResponse xmlns="http://www.sap.com/SBO/DIS">
                   <BOM>
                        <BO>
                             <AdmInfo>
                                  <Object>oRecordset</Object>
                             </AdmInfo>
                             <EmployeesInfo>
                                  <row>
                                       <EmployeeID>1</EmployeeID>
                                  </row>
                             </EmployeesInfo>
                        </BO>
                   </BOM>
              </GetObjectKeyBySingleValueResponse>
         </env:Body>
    </env:Envelope>
    I'm using SAPBO 9 PL10 HF1.
    Regards,
    Pedro

  • Query to get the Cumulative salary from EMP

    SQL query to find out cumulative salary.
    EX:
    EMPNO ENAME SAL CUMSAL
    1 AAAA 1500 1500
    2 BBBB 1000 2500
    3 CCCC 1250 3750

    Hi Madhan,
    If you talking abt query to find the total sal of each employee i.e., SAL + CUMSAL then you can use the below query:
    select a.empno,a.ename,a.sal + b.cumsal totalsal from
    emp a, emp b
    where a.empno = b.empno;
    Regards,
    Murali Mohan

  • Trying to find out how to get the smallest value in a 2-D array

    I figured out how to get the largest and smallest in a 1-D array, but I'm having trouble with the for loop for the 2-D array
    I can't seem to figure out how I can get it to check every element in the 2-D array
    Lets say I have this array
    int[][] aRay = new int[][] {{ 1, 2, 3} , {4, 5, 6 }};and I want to find the smallest value, I think I can figure out what goes in the box of the for loop I just need help with how I can check every element..
    Thanks all

    Ok so here's what i've got so far and my brain is starting to hurt,
    My output right now is "2".. i'm almost there :/ aren't I?
    public class bladddhd
         public static void main( String [] args )
         int[][] aRay = new int[][] {{ 1, 2, 3} , {4, 5, 6 }};
              int length2 = aRay[0].length;
              int temp = 0;
              for(int i = 0; i < aRay.length; ++ i)
                        if(aRay[0] > temp)
                             temp = aRay[0][i];
                        for(int j = 0; j < length2; ++j)
                                  if(aRay[1][j] < temp)
                                       temp = aRay[1][j];
                   System.out.println(temp);

  • Finding the largest value...

    Hi guys,
    I'm creating a method where it finds the largest value in a list of integers, using a loop. When it finds it, it's stored in the "max" and returns the "max".
    Here's the code...
        public Integer findMax()
            List<Integer> list = Arrays.asList(4,8,2,10,24);
            int max = 0;
            for(Integer i = 0 ; i < list.size() ; i++) {
                if(max == list.get(i))
                max = i;
            return max;
        }It complies, but when i run it, it doesn't actually get the largest value (which should be 24). It's still 0 when i Inspect it.
    Does anybody know where i'm going wrong with this?

    Well i went through the method and it seems to be printing 0 five times...
        public Integer findMax()
            List<Integer> list = Arrays.asList(4,8,2,10,24);
            int max = 0;
            for(Integer i = 0 ; i < list.size() ; i++) {
                if(max >= list.get(i))
                max = list.get(i);
                System.out.println(max);
            return max;
        }After looking looking through the API, i used the length, instead of size, but when i compile the program it says it can't find the method. Do you know what else i have to change or add in the code for it to compile?
    DrClap wrote:
    if(max == list.get(i)) Can you explain, in words, what this comparison was meant to do?I've edited that, because that's wrong.

  • Umair: I want to know about the new Apple Trade in program?If any apple employee on the forum,get in contact with me.

    Umair: I want to know about the new Apple Trade in program?If any apple employee on the forum,get in contact with me.

    iUmair wrote:
    I want to know how Apple measure the value of old iPhone?
    Then contact Apple and ask them.  Nobody here woul know.
    How can people from outside US can participate.
    They can't at this time.

  • Finding the employees whose have the max salary

    i am working with a table called employee with the following fields (empno,ename,sal....), i want to find the employee/s which have the max salary i wrote the followinng sql statment
    select * from employee where sal = ( select max(sal) from employee)
    it works well but i am wondering if there is a more effient way to do this
    please note that the table have about i million row, and there is an index on empno field

    if there is a more effient way to do this
    You can see execution plan using different queries:
    SQL> set autotrace trace explain statistics
    SQL> select * from
      2  (select e.*, dense_rank() over(order by sal desc) x
      3  from emp e)  where x=1;
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=5 Card=14 Bytes=1400          )
       1    0   VIEW (Cost=5 Card=14 Bytes=1400)
       2    1     WINDOW (SORT PUSHED RANK) (Cost=5 Card=14 Bytes=448)
       3    2       TABLE ACCESS (FULL) OF 'EMP' (Cost=1 Card=14 Bytes=448          )
    Statistics
              0  recursive calls
              2  db block gets
              1  consistent gets
              0  physical reads
              0  redo size
            864  bytes sent via SQL*Net to client
            503  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
              1  rows processedMessage was edited by:
    Jameel

  • I have invested over 6 hours on the phone and with my Verizon Authorized Rep. trying to get the Bonus 1 Gig of Data for myself on the More Plus Plan.  Cut and dry situation but today was told I have to wait about 7 days until they can get me "an answer" o

    Basic question is why are any of the minimun 8 Verizon reps that I or my Authorized Verizon Rep (at Costco) spoke with unable to resolve a very simple, straightforward issue that should have been resolved in 15 minutes max.  Instead I (a 14 year verizon customer) have been given the runaround and have invested over 6 1/2 hours in trying to get someone to acknowledge that I an owed 1 GB of Bonus Data on my new phone on our new plan.  My wife got hers.  I am just venting now as I intend on returning the phone tomorrow (I got it Thursday) and turning around and getting an identical new phone.  This was suggested to me as an option by both the Rep who sold my wife her phone and the rep who sold me mine as that way I would not have to contiinue dealing with this ridiculous state of affairs (they indicated that my Free gig request was being sent to another department and that it would be about 7 days befor they get an answer).   Just Venting  .  Thanks

    No I was considerate, etc.  The root of the problem stems from the fact that when I went to get my new phone I asked the salesperson if I should sign up for the new plan or if my wife should do it the following day when she buys her new phone (also at a Costco but in a different state).  The salesperson said it made absolutely no difference so I elected to have my wife do it.  When she did the next day she got her free Gig and her salesperson told her that I need to call in to make sure I get the gig that I am entitled to as well.  That's when the runaround started with the first call  consisting of me basically advising Verizon of what the promotion consists of, etc.since they insisted that it was one gig per Plan, that there were no exceptions to this, etc.  As mentioned they wanted to know where I got the information that it was one gig per qualifying phone. (Both the rep and her supervisor obviously were not aware of how Verizons heavily touted More Everything plan works). They told me finally that I needed to go back to the Costco where I got the phone.  I did.  The salesperson apologized numerous times to me for advising me that it made no difference who signs up for the plan or when.  She then spent over two hours on the phone (with me next to her) attempting to explain to Verizon what happened, how it was her fault, and how I was clearly entitled to the Bonus Gig since I also had a qualifying phone.  Finally she was transferred to someone who authorized the Bonus Gig (since I was clearly entitled to it) and who indicated that it might take 24 hours to show up on my new Plan.  72 hours later, no change, and the runaround continues some more.  The only reason I even came to this forum was to let off some steam since no one could give me an answer..  It's clear that I am entitled to the Bonus Gig yet the last supervisor I spoke with told me that he could only pass the request on to another department via e-mail (no direct contact, etc. even though I gave him the name and employee # of the Verizon rep who indicated the Bonus was approved) and that an answer should be forthcoming in about 7 days.  I was very cordial with everyone I spoke with as I understand that they take their direction from the top.  The countless hours I have spent dealing with this situation is something that no-one should have to go through, particularily someone who has been a Verizon Plan customer since about year 2000.  Everyone seems to agree that I am entitled to the free gig but no one seems to be in a position to help this customer.  Its a horrible way to treat someone.  I talked with the original saleslady today and told her I would be in tomorrow to turn in the phone and get a new one along with the gig I was entitled to.  She said that would be fine and wouldn't be a problem but that she would be happy to try calling Verizon once again to try to resolve the issue.  I indicated that I'm done with wasting time taliking with well-meaning and courteous (and I assume underpaid) employees who I assume are pretty much directed from above that any concessions they make, even if the customer is entitled to them, will reflect badly on their employee evaluations .  Good thing I am retired or I would really be worked up.  They only way I would consider even talking to Verizon anymore on this is if they were to waive  the $60 in upgrade fees my wife and I paid for the new phones.  I hope this explains the situation to your satisfaction.  Thanks.

  • How to get the data in one internal table? with 3 different tables..

    Hi,
      i need to get the all the ff data to put in an internal table. I'm using these data to my ALV. Thanks
       vkorg TYPE a005-vkorg,
       vtweg TYPE a005-vtweg,
       kschl TYPE a005-kschl,
       kondm TYPE mvke-kondm,
       matnr TYPE a005-matnr,
       kdgrp TYPE knvv-kdgrp,
       konda TYPE knvv-konda,
       kunnr TYPE a005-kunnr,
       datab TYPE a005-datab,

    hi,
    try this
    *& Report  ZPROGRAM
    REPORT  ZPROGRAM.
    table declaration.
    tables : zemployee, zdepartment,zproject.
    *type-pools declaration
    type-pools : slis , icon.
    type specification
    types : begin of ty_emp,
            empid type zempid,
            empname type zempname,
            empaddress type zempaddress,
            city type zcity,
            ponumber type zponumber,
            detid type zdeptid,
            end of ty_emp.
    types : begin of ty_dept,
            detid type zdeptid,
            deptname type zdeptname,
            designation type zdesignation,
            projectid type zprojectid,
            end of ty_dept.
    types : begin of ty_project,
            projectid type zprojectid,
            technology type ztechnology,
            clientname type zclientname,
            end of ty_project.
    types : begin of ty_final,
            empid type zempid,
            empname type zempname,
            empaddress type zempaddress,
            city type zcity,
            ponumber type zponumber,
            detid type zdeptid,
            deptname type zdeptname,
            designation type zdesignation,
            projectid type zprojectid,
            technology type ztechnology,
            clientname type zclientname,
           average type p decimals 2,
            end of ty_final.
    table type specification.
    types : tt_emp type standard table of ty_emp,
            tt_dept type standard table of ty_dept,
            tt_project type standard table of ty_project,
            tt_final type standard table of ty_final.
    work area creation.
    data : wa_emp type ty_emp,
           wa_dept type ty_dept,
           wa_project type ty_project,
           wa_final type ty_final.
    internal table declaration
    data : itab_emp type tt_emp,
            itab_dept type tt_dept,
            itab_project type tt_project,
            itab_final type tt_final.
    layout declaration
      data : gd_layout type slis_layout_alv.
    assigning current program name.
      data : gd_repid like sy-repid.
             gd_repid = sy-repid.
    fieldcatalog declaration.
      data : d_fieldcat type slis_t_fieldcat_alv,
             d_fieldcat_wa type slis_fieldcat_alv.
    header declaration.
      data : t_header type slis_t_listheader,
             wa_header type slis_listheader,
             linecount(10) type c,
             line(10) type c.
    selection-screen.
    selection-screen : begin of block blk1 with frame title text-001.
    select-options : s_empid for zemployee-empid.
    parameters : p_dname like zdepartment-deptname.
    parameters : p_proid like zproject-projectid.
    selection-screen : begin of line.
    parameters : p_rad1 radiobutton group r1.
    selection-screen comment 3(10) text-002.
    parameters : p_rad2 radiobutton group r1.
    selection-screen comment 16(10) text-003.
    selection-screen : end of line.
    parameters : chk1 as checkbox.
    selection-screen : end of block blk1.
    end of selection screen.
    start of selection.
    select empid empname empaddress city ponumber detid from zemployee into corresponding fields of table itab_emp where empid in s_empid.
    if not itab_emp is initial.
    select detid deptname designation projectid from zdepartment into corresponding fields of table itab_dept for all entries in itab_emp where detid = itab_emp-detid .
    if not itab_dept is initial.
    select projectid technology clientname from zproject into corresponding fields of table itab_project for all entries in itab_dept where projectid = itab_dept-projectid.
    endif.
    endif.
    *end of selection.
    populating data into itab_final from itab_emp.
    loop at itab_emp into wa_emp.
    wa_final-empid = wa_emp-empid.
    wa_final-empname = wa_emp-empname.
    wa_final-empaddress = wa_emp-empaddress.
    wa_final-ponumber = wa_emp-ponumber.
    wa_final-city = wa_emp-city.
    wa_final-detid = wa_emp-detid.
    append wa_final to itab_final.
    clear wa_final.
    endloop.
    *populating data into itab_final from itab_dept and itab_project
    loop at itab_final into wa_final.
    read table itab_dept into wa_dept with key detid = wa_final-detid.
    if sy-subrc = 0.
    wa_final-deptname = wa_dept-deptname.
    wa_final-designation = wa_dept-designation.
    wa_final-projectid = wa_dept-projectid.
    modify itab_final from wa_final transporting deptname designation projectid .
    endif.
    read table itab_project into wa_project with key projectid = wa_final-projectid.
    if sy-subrc = 0.
    wa_final-technology = wa_project-technology.
    wa_final-clientname = wa_project-clientname.
    modify itab_final from wa_final transporting technology clientname.
    endif.
    endloop.
    if p_rad1 = 'X' or chk1 = 'X'.
    d_fieldcat_wa-fieldname = 'EMPID'.
    d_fieldcat_wa-seltext_l = 'Employee Id'.
    d_fieldcat_wa-emphasize = 'X'.
    d_fieldcat_wa-col_pos = 1.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'EMPNAME'.
    d_fieldcat_wa-seltext_l = 'Employee Name'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 2.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'EMPADDRESS'.
    d_fieldcat_wa-seltext_l = 'Employee Address'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 3.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'CITY'.
    d_fieldcat_wa-seltext_l = 'City'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 4.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'PONUMBER'.
    d_fieldcat_wa-seltext_l = 'Postal Number'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 5.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'DETID'.
    d_fieldcat_wa-seltext_l = 'Department Id'.
    d_fieldcat_wa-emphasize = 'X'.
    d_fieldcat_wa-col_pos = 6.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'DEPTNAME'.
    d_fieldcat_wa-seltext_l = 'Department Name'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 7.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'DESIGNATION'.
    d_fieldcat_wa-seltext_l = 'Designation'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 8.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'PROJECTID'.
    d_fieldcat_wa-seltext_l = 'Project Id'.
    d_fieldcat_wa-emphasize = 'X'.
    d_fieldcat_wa-col_pos = 9.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'TECHNOLOGY'.
    d_fieldcat_wa-seltext_l = 'technology'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 10.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'CLIENTNAME'.
    d_fieldcat_wa-seltext_l = 'Client Name'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 11.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    endif.
    if p_rad2 = 'X' or chk1 = 'X'.
    refresh itab_emp.
    d_fieldcat_wa-fieldname = 'DETID'.
    d_fieldcat_wa-seltext_l = 'Department Id'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 6.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'DEPTNAME'.
    d_fieldcat_wa-seltext_l = 'Department Name'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 7.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'DESIGNATION'.
    d_fieldcat_wa-seltext_l = 'Designation'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 8.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'PROJECTID'.
    d_fieldcat_wa-seltext_l = 'Project Id'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 9.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'TECHNOLOGY'.
    d_fieldcat_wa-seltext_l = 'technology'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 10.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    d_fieldcat_wa-fieldname = 'CLIENTNAME'.
    d_fieldcat_wa-seltext_l = 'Client Name'.
    d_fieldcat_wa-emphasize = 'C710'.
    d_fieldcat_wa-col_pos = 11.
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    endif.
    Grid display function module
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
       I_INTERFACE_CHECK                 = ' '
       I_BYPASSING_BUFFER                = ' '
       I_BUFFER_ACTIVE                   = ' '
        I_CALLBACK_PROGRAM                = gd_repid
        I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
       I_CALLBACK_USER_COMMAND           = ' '
        I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE '
       I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
       I_CALLBACK_HTML_END_OF_LIST       = ' '
       I_STRUCTURE_NAME                  =
       I_BACKGROUND_ID                   = ' '
        I_GRID_TITLE                      = 'EMPLOYEE DETAILS'
       I_GRID_SETTINGS                   =
        IS_LAYOUT                         = gd_layout
        IT_FIELDCAT                       = d_fieldcat
       IT_EXCLUDING                      =
       IT_SPECIAL_GROUPS                 =
       IT_SORT                           =
       IT_FILTER                         =
       IS_SEL_HIDE                       =
       I_DEFAULT                         = 'X'
       I_SAVE                            = ' '
       IS_VARIANT                        =
       IT_EVENTS                         =
       IT_EVENT_EXIT                     =
       IS_PRINT                          =
       IS_REPREP_ID                      =
       I_SCREEN_START_COLUMN             = 0
       I_SCREEN_START_LINE               = 0
       I_SCREEN_END_COLUMN               = 0
       I_SCREEN_END_LINE                 = 0
       I_HTML_HEIGHT_TOP                 = 0
       I_HTML_HEIGHT_END                 = 0
       IT_ALV_GRAPHICS                   =
       IT_HYPERLINK                      =
       IT_ADD_FIELDCAT                   =
       IT_EXCEPT_QINFO                   =
       IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
       E_EXIT_CAUSED_BY_CALLER           =
       ES_EXIT_CAUSED_BY_USER            =
       TABLES
         T_OUTTAB                          = itab_final
      EXCEPTIONS
        PROGRAM_ERROR                     = 1
        OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    set pf_status for creating client specified icons.
    form set_pf_status using rt_extab type slis_t_extab.
    set pf-status 'NEWSTATUS'.
    endform.
    populating data into header using top_of_page
    form top_of_page.
    wa_header-typ = 'H'.
    wa_header-info = 'ALV REPORT'.
    append wa_header to t_header.
    clear wa_header.
    wa_header-typ = 'S'.
    wa_header-key = 'Date :'.
    Concatenate sy-datum+6(2) '.'
                 sy-datum+4(2) '.'
                 sy-datum(4) into wa_header-info.
      append wa_header to t_header.
      clear wa_header.
      wa_header-typ = 'S'.
    wa_header-key = 'Time :'.
    Concatenate sy-Uzeit(2) '.'
                 sy-datum+2(2) '.'
                 sy-datum+4(2) into wa_header-info.
      append wa_header to t_header.
      clear wa_header.
      describe table itab_final lines line.
      wa_header-typ = 'A'.
      linecount = line.
      Concatenate 'Total number of records :' linecount into wa_header-info separated by space.
      append wa_header to t_header.
      clear wa_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = t_header
         I_LOGO                   = 'VMCADMIN'
        I_END_OF_LIST_GRID       =
        I_ALV_FORM               =
      endform.
    *designing layout.
      form gd_layout.
      gd_layout-zebra = 'X'.
      gd_layout-edit = 'X'.
      gd_layout-no_hotspot = ''.
      gd_layout-no_colhead = ''.
      gd_layout-colwidth_optimize = 'X'.
      endform.
    Reward with points if helpful.

  • How to get the list of employees whose full n final setellment done in mont

    hi  Experts,
    We are trying to get the list of employees whose full and final settelemnt were done in a particular month.
    Is there any way to get the employees whose fnf was done in a particular month.
    Please advice.
    Regards,
    V Sai.

    Hi Experts,
    We are trying to get the list of employees from sap for whom  we ran the FNF  in the current month.
    For example,if an employee left the organisation in the month of April,we  are holding the salary of the employye.
    After approvals from different departments,may be after 2 months we change the control record to april and we run the payroll for the employee.later we change the control record to current period.  In posting we use the other period and maintain 01 2010  and post to accounts.
    Here we want to extract the list of employees for whom we post the  Full and final settelement in the particular month.
    Please helpme to solve it.'
    U r help is highly approciated.
    Regards,
    Sai.

  • How to find the avg salary of first 3 employees based on each department?

    how to find the avg salary of first 3 employees based on each department?

    Hi,
    Do you mean something like this?
    with a as
    select
      deptno
      ,sal
      ,row_number() over ( partition by deptno order by sal desc) rn
    from
      emp
    select
      deptno
      ,round(avg(sal)) avg_sal_of_top_3
    from
      a
    where
      rn <= 3
    group by
      deptno
    order by
      deptno
    DEPTNO AVG_SAL_OF_TOP_3
        10             2917
        20             2992
        30             1983
    If not please give more details.
    Regards,
    Peter

  • Report of the employees with no photo

    Dear friends
    We have uploaded some employees photos only, I want to know the list of employees whos photos are not uploaded in the R/3, please let me know how to take a report the employee wth no photo uploaded
    Regards
    Kiran

    Hi Kiran,
    Run report OAADMILI via SE38 for the relevant content repository.
    There restrict the output to PREL object.
    There you'll see all the personnel numbers who have a photo in the SAP Object ID column (along with the infotype number e.g. XXXXXXXXYYYY where XXXXXXXX is the personnel number and YYYY is the infotype)
    Then you can get the list of all the employees via Employee List.
    Then you can make a comparison between two lists via Excel's VLookup functionality -or any other way-
    Regards,
    Dilek

  • How to get refund employee Social security and reverse the employer amount

    Dear Members, I have a requirement to refund overpayments of Social Security to an employee. The over payments have occurred as a result of an employee retiring in the same year they come back to work as a temp. They have two employee #'s therefore the maximum for Social Security will not be recognized until it is reached under the most recent employee number. We should not be over deducting for an employee that works for the same company. If it does happen to go through and over deduct, it is extremely difficult for the employee and employer to get the refund from the IRS. I have a requirement to refund the employee and reverse the employer amount as well. Looking for suggestion. Thanks in advance Punna Rao

    Hi Friend,
    You will need to have a new wage type may be called as Social Security Refund wage type created that will act to be taxed for only Social Security taxes and should be entered on IT0015 to be proccessed such that it should refund Social Security amount only.
    Also, whenever you have case wherein you need to have limits set appropriately for Social Security taxes, have it entered prior to next payroll run on employees' IT221 as adjustment run so that it updates YTD correctly and there is no excess of SS tax payment.
    Also, IT221 needs to be also entered for refunding Employer amounts as it won't be reversed with standard reversal process as not being part of employees' net payment or gross payment, hence needs to be manually adjusted on IT221.
    Thanks,
    Ameet

Maybe you are looking for

  • DVD Drive no longer working

    Hi there, I tried getting help with this issue a few months ago, but no luck. So I'm trying again in hopes of a response. My laptop is a Satelite L655-S5058 (2 years old now) and the internal DVD drive stopped working. It would appear in "My Computer

  • Best options for converting keynote slides to DVD?

    Hi: I'm working on creating a Keynote presentation that will eventually be a loop running on DVD. Exporting the presentation directly to Quicktime and then using Final Cut/DVD Studio Pro. Unfortunately, the quality of the images (as mentioned elsewhe

  • Install .app from command line?

    How do I install a .app from the command line? Yes, I know that if the .app is a directory, I can just copy it.  That seems to work fine for Google Chrome and Firefox.  However, now I want to script the install of Adobe Flash Player.  It's a director

  • DVD player won't zoom on Powerbook G4

    Just got a Powerbook G4 and when I try to use zoom in DVD player it gives "Not permitted" error (when I click the "On" checkbox in the Video Zoom window). DVD player is 4.6.5. Is not related to the size of the video (half, maximum, full screen). Same

  • Alter database resetlogs

    In http://www.dbaclick.com/forums/archive/16/35.html in step 9, they have "svrmgrl>alter database resetlogs;" However, in Oracle 8.1.7 Windows that statement does not work. What statement should be used for Oracle 8.1.7 instead? I tried looking the a