Query to find Employee Salary Details

Hi,
Could anyone help in writing the query to find employee salary details.
Thanks in advance.

This should get you started:
SELECT papf.full_name
,papf.email_address
,ppp.proposed_salary_n salary
FROM per_pay_proposals ppp
,per_all_assignments_f paaf
,per_all_people_f papf
WHERE ppp.assignment_id = paaf.assignment_id
AND paaf.assignment_type = 'E'
AND paaf.primary_flag = 'Y'
AND paaf.person_id = papf.person_id
AND nvl(papf.current_employee_flag, 'N') = 'Y'
AND trunc(sysdate) BETWEEN
ppp.change_date AND ppp.date_to
AND trunc(sysdate) BETWEEN
paaf.effective_start_date AND paaf.effective_end_date
AND trunc(sysdate) BETWEEN
papf.effective_start_date AND papf.effective_end_date;

Similar Messages

  • Query to find employee salary details in HRMS

    Hi,
    Could anyone one provide me the query to get the salary details of an employee.
    Thanks.

    Hi,
    Hope this work for you.
    SELECT pap.last_name last_name
    ,pap.first_name first_name
    ,pap.employee_number employee_id
    ,hlu2.meaning ethnic_origin
    ,hlu1.meaning eeo_category
    ,hlu5.meaning veteran_status
    ,pap.sex sex
    ,ROUND(pro.proposed_salary_n, 2) current_salary
    ,ROUND(pro.proposed_salary_n * ppb.pay_annualization_factor) current_yearly_salary
    ,pg.NAME grade
    ,pj.NAME job_name
    ,pjd.segment3 business_unit
    ,pjd.segment4 FUNCTION
    ,pjd.segment5 designation
    ,pjd.segment2 job_group
    ,pos.date_start hire_date
    ,NVL(pos.actual_termination_date, hr_general.end_of_time) termination_date
    ,hl.location_code LOCATION
    ,pap.full_name
    ,pj.job_information3 flsa_code
    ,hlu4.meaning employment_category_meaning
    ,pap.effective_start_date p_effective_start_date
    ,pap.effective_end_date p_effective_end_date
    ,paa.effective_start_date a_effective_start_date
    ,paa.effective_end_date a_effective_end_date
    ,pro.from_change_date s_effective_from_date
    ,NVL(pro.to_change_date, hr_general.end_of_time) s_effective_to_date
    ,pap.current_employee_flag
    FROM per_all_people_f pap
    ,per_all_assignments_f paa
    ,per_periods_of_service pos
    ,(SELECT pro1.approved
    ,pro1.assignment_id
    ,pro1.change_date from_change_date
    , pro_next.change_date - 1 to_change_date
    ,pro1.multiple_components
    ,pro1.last_change_date
    ,pro1.proposed_salary_n
    ,pro1.forced_ranking
    ,pro1.last_updated_by
    ,pro1.last_update_date
    ,pro1.event_id
    ,pro1.performance_review_id
    ,pro1.pay_proposal_id
    FROM per_pay_proposals pro1
    ,per_pay_proposals pro_next
    WHERE pro1.assignment_id = pro_next.assignment_id(+)
    AND pro1.change_date = pro_next.last_change_date(+)) pro
    ,per_jobs pj
    ,per_job_definitions pjd
    ,hr_locations hl
    ,per_grades pg
    ,(SELECT *
    FROM hr_lookups
    WHERE lookup_type = 'US_EEO1_JOB_CATEGORIES') hlu1
    ,(SELECT *
    FROM hr_lookups
    WHERE lookup_type = 'US_ETHNIC_GROUP') hlu2
    ,(SELECT *
    FROM hr_lookups
    WHERE lookup_type = 'US_EXEMPT_NON_EXEMPT') hlu3
    ,(SELECT *
    FROM hr_lookups
    WHERE lookup_type = 'EMP_CAT') hlu4
    ,(SELECT meaning
    ,lookup_code
    FROM hr_lookups
    WHERE lookup_type LIKE 'US_VETERAN_STATUS') hlu5
    ,per_pay_bases ppb
    ,(SELECT *
    FROM per_addresses
    WHERE primary_flag = 'Y'
    AND address_type = 'H'
    AND ( date_to IS NULL
    OR date_to > SYSDATE)) addr
    WHERE pap.person_id = paa.person_id
    AND paa.assignment_id = pro.assignment_id
    AND paa.job_id = pj.job_id
    AND paa.location_id = hl.location_id
    AND paa.grade_id = pg.grade_id(+)
    AND pos.person_id = pap.person_id
    AND ppb.pay_basis_id = paa.pay_basis_id
    AND pj.job_information1 = hlu1.lookup_code
    AND pj.job_definition_id = pjd.job_definition_id
    AND pap.per_information1 = hlu2.lookup_code(+)
    AND pap.per_information5 = hlu5.lookup_code(+)
    AND pj.job_information3 = hlu3.lookup_code(+)
    AND paa.employment_category = hlu4.lookup_code
    AND addr.person_id(+) = pap.person_id

  • Employee salary details report

    dear abaper ,
                         please send a HR report in which employee salary details are given.
                                                           Thank you sir.
    Moderator Message: Warned many times. UserID sent for deletion.
    Edited by: kishan P on Dec 23, 2011 1:42 PM

    Hi,
    1.) Check the RT , generate the WT reporter for the IN period view
    2.) Run the simulation document only for this employee
    3.) If the RT exist for the current month the posting document will be created
    4.) You might be making some error in the selection screen.just run only for this employee
    Regards
    Hemant V. Mahale

  • Query to find the Salary table details  HRMS 11i

    I am looking  query to find the persons salary details in Oralce EBS 11i.
    I tried the below query bu it didn'ty work.
    SELECT papf.employee_number
    ,papf.full_name
    ,pj.NAME job
    ,haou.NAME ORGANIZATION
    ,ppp.proposed_salary_n salary
    FROM per_all_people_f papf
    ,per_all_assignments_f paaf
    ,per_jobs pj
    ,hr_all_organization_units haou
    ,per_position_definitions ppd
    ,per_all_positions pap
    ,per_pay_proposals ppp
    WHERE 1 = 1
    AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
    AND papf.current_employee_flag = 'Y'
    AND papf.employee_number IS NOT NULL
    AND paaf.person_id = papf.person_id
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND paaf.job_id = pj.job_id
    AND paaf.organization_id = haou.organization_id
    AND paaf.position_id = pap.position_id
    AND pap.position_definition_id = ppd.position_definition_id
    AND ppp.pay_proposal_id = (SELECT MAX (pay_proposal_id)
    FROM per_pay_proposals
    WHERE assignment_id = paaf.assignment_id)
    In our case all the below tables have 0 records..
    select count(*) from PER_PAY_PROPOSALS ;
      COUNT(*)
             0
    select count(*) from pay_element_entry_values_f;
      COUNT(*)
             0
    select count(*) from PAY_ELEMENT_ENTRY_VALUES_F;
      COUNT(*)
             0
    select count(*) from PAY_ELEMENT_ENTRIES_F;
      COUNT(*)
             0

    Hi,
    Your results clearly states that there is no salary data which is been captured as well as there are no element entries which are assigned to any assignment.
    Please do the below which will insert records in salary as well as element entries table:
    1. Add a salary proposal to any active employee (People Enter and Maination --> Search for any employee --> Assignment --> Salary) - This will insert a record in PER_PAY_PROPOSALS table
    2. Add an element entry to any active assignment (People Enter and Maination --> Search for any employee --> Assignment --> Entries) - This will insert a record in PAY_ELEMENT_ENTRIES_F and PAY_ELEMENT_ENTRY_VALUES_F table
    Hope this clarifies.
    Thanks,
    Sanjay

  • Query to find employee annual salary or pay rate for a pay period (Bi-Week)

    Hi Guru's,
    need your help for finding annual salary or pay rate for pay period for an employee.
    I have below query returning some thousand line which I cant understand. Can someone correct the query please.
    SELECT ppp.proposed_salary_n salary From per_pay_proposals ppp,apps.per_all_people_f papf,apps.per_all_assignments_f paaf,apps.per_all_people_f papf1 WHERE papf.person_id = paaf.person_id AND paaf.primary_flag = 'Y' AND paaf.assignment_type = 'E' AND paaf.supervisor_id = papf1.person_id AND papf1.current_employee_flag = 'Y'AND papf.business_group_id = paaf.business_group_id AND SYSDATE BETWEEN papf.effective_start_date and papf.effective_end_date AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date AND SYSDATE BETWEEN papf1.effective_start_date AND papf1.effective_end_date AND papf.employee_number='1234';
    SALARY
    17.4346
    16.0846
    17.4346
    13.78
    13.78
    15.07
    13.78
    13.78
    13.78
    3305.59
    14.859
    SALARY
    5507.25
    2731.01
    2690.51
    13.78
    13.35
    13.35
    1960
    4192
         17
    4927
    2525.02
    SALARY
    2652
    13.35
    15.07
    2686.67
    2964
    13.78
    17.4635
    20.4981
    16.0846
    13.78
    17.4635
    SALARY
    2666.68
    13.78
    15.07
    13.78
    16.0846
    17.4635
    4353.99
    4562.51
    17.4346
    16.0846
    6727.41
    SALARY
    2780.99
         20
    17.4346
    16.0846
    2970
    2315.01
    17.4635
    2629.85
    14.5705
    5635
    17.4346
    Thanks
    Sandeep

    I used table hrpy_rgdir  to get sequence number for the given pernr, payroll area and dates.
    Using the sequence number, I am calling Function PYXX_READ_PAYROLL_RESULT to extract the payroll results.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE it_hrpy_rgdir
      FROM hrpy_rgdir
      WHERE srtza = 'A'             
        AND paydt IN sopaydt
        AND abkrs IN soabkrs
        AND pernr IN sopernr.
    LOOP AT it_hrpy_rgdir.
      PERFORM get_rt USING it_hrpy_rgdir-pernr it_hrpy_rgdir-seqnr.
    ENDLOOP.
    *&      Form  get_rt
    *       text
    *      -->PERNR      text
    *      -->SEQNR      text
    FORM get_rt USING pernr seqnr.
      CLEAR: it_payroll_result.
      CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
        EXPORTING
          clusterid                    = 'RQ'
          employeenumber               = pernr
          sequencenumber               = seqnr
        CHANGING
          payroll_result               = it_payroll_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.
    ENDFORM.                   
    For any period, the function module just returns sy-subrc = 6 [no_record_found].
    We are on Australian Payroll.  Could you please let me know what I might be missing or is there an alternative way of getting the information ?
    Thank you

  • Query for Employee Salary Details

    Hi,
    I have requirement like to generate pay slip using XML Reports. I am unable to get Salary details in my query. How I will get the Salary details (All Element Values), what are all the effected tables.
    Thanks
    Madhu..

    You get alternatively use the pay_balance_pkg.get_value(<pAssignmentActionId>,<definedbalanceid>) to get the Net Payments values
    where pAssignmentActionId is Assignment Action id of Payroll Run.
    definedbalanceid is Defined Balance Id of <TOTAL_PAY>ASGPTD
    <TOTAL_PAY> Can be found from Balance screen whose "Use For Remuneration" flag is checked.

  • Query to find basic salary

    Hi ,
    I need to find basic salary of all the employees from their actual salary
    10% of his basic salary will be debited at the end of the month 
    If the employee is about to relieve the company ,he should be paid by 5% extra bonus from his final settlement
    How to write a query for the above scenario

    Hello,
    PFB structure and expected result
    Name  Location  Salary
    smith newyork  
    6000
    adam  dallas   
    5000
    john  delhi    
    7000
    scott laondon  
    4000
    Name  Location  Salary  Basic salary Monthly_Debit Extra Bonus
    ================================================================
    smith newyork   6000      250              25                12.5    
    adam  dallas    5000      208              20.8             10.4    
    John  delhi     7000      291              29.1             14.55
    scott laondon   4000      166              16.6             8.3

  • Query to find Highest Salary

    Hi,
    What is the SQL query to find the 1st highest salary.
    2nd Highest salary in the emp table.
    likewise nth highest salary employee records.
    Can anyone please give me the queries for the above scenarios.
    Thanks

    There are many nethods, some examples
    Using group function:
    SQL> l
      1  SELECT ename,sal FROM emp e1
      2  WHERE &val >= (SELECT COUNT(*) FROM emp e2
      3*               WHERE e1.sal<=e2.sal)
    SQL> /
    Enter value for val: 1
    old   2: WHERE &val >= (SELECT COUNT(*) FROM emp e2
    new   2: WHERE 1 >= (SELECT COUNT(*) FROM emp e2
    ENAME                                      SAL
    KING                                      5000Using in-line view and rownum:
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT * FROM (SELECT ename,sal FROM emp ORDER BY SAL desc)
      2* WHERE rownum<2
    SQL> /
    ENAME                                      SAL
    KING                                      5000Using analytical function ROW_NUMBER
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT * FROM (SELECT ename,sal,ROW_NUMBER() OVER(ORDER BY sal desc) rn FROM emp )
      2* WHERE rn=1
    SQL> /
    ENAME                                      SAL         RN
    KING                                      5000          1Also you can use several other analytical functions as mentioned by Kartick. Search and read on the internet to find what is most suitable way and why!.
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:2853107469873
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:12759079666984

  • Query to find sales group details based on a merchant.

    I wanted a query to find the sales group details for a given merchant. How do i do it?

    Hi,
    use for following function module to get file listing
    DATA: L_DIRNAME LIKE EPSF-EPSDIRNAM,
          L_FILEMASK LIKE EPSF-EPSFILNAM.
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
        EXPORTING
          dir_name                  = l_dirname
          file_mask                 = l_filemask
    * IMPORTING
    *   DIR_NAME                    =
    *   FILE_COUNTER                =
    *   ERROR_COUNTER               =
        TABLES
          dir_list                  = pi_filelist
    EXCEPTIONS
       invalid_eps_subdir           = 1
       sapgparam_failed             = 2
       build_directory_failed       = 3
       no_authorization             = 4
       read_directory_failed        = 5
       too_many_read_errors         = 6
       empty_directory_list         = 7
       OTHERS                       = 8.

  • Problem: query to find employees at one plant for specified year

    Problem: how to determine if an employee was working at a specific plant during a specific year using this limited amount of data in a "job changes" table. No matter what I've tried, I keep getting the wrong number of records and it's driving me nuts. I thought this would be a simple query but it's not (for me anyway!) so I need a "clue" to point me in the right direction. Help? :-)
    Sample records:
    EMPLID  PLANT   EFF_DATE    HIRE_DATE   TERM_DATE
    123456  23      01-JAN-00   22-MAR-88   NULL
    123456  29      30-JUL-02   22-MAR-88   NULL
    123456  22      21-AUG-03   22-MAR-88   NULL
    456789  29      11-JUL-01   11-JUL-01   NULL
    456789  22      30-JUL-03   11-JUL-01   NULLFor example, how do I write the query so that employee 123456 will show up for years 1999 and 2001 in plant 23?

    Here is an example:
    SQL> SELECT * FROM EMP;
        EMPLID      PLANT EFF_DATE    HIRE_DATE   TERM_DATE
        123456         23 01-JAN-2000 22-MAR-1988
        123456         29 30-JUL-2002 22-MAR-1988
        123456         22 21-AUG-2003 22-MAR-1988
        456789         29 11-JUL-2001 11-JUL-2001
        456789         22 30-JUL-2003 11-JUL-2001
    5 rows selected.
    SQL> SELECT A.EMPLID,A.PLANT,A.EFF_DATE,A.END_DATE FROM
      2  (SELECT EMPLID,PLANT,EFF_DATE,LEAD(EFF_DATE,1) OVER(ORDER BY EMPLID,EFF_DATE) -1 END_DATE,
      3  HIRE_DATE FROM EMP
      4  WHERE EMPLID=123456
      5  ORDER BY EMPLID) A
      6  WHERE A.EFF_DATE >= TO_DATE('01-JAN-1999','DD-MON-YYYY')
      7  AND A.EFF_DATE <= TO_DATE('31-DEC-2001','DD-MON-YYYY')
      8  AND TO_DATE('31-DEC-2001','DD-MON-YYYY') <= END_DATE;
        EMPLID      PLANT EFF_DATE    END_DATE
        123456         23 01-JAN-2000 29-JUL-2002
    1 row selected.

  • Query to find employees who are managers for 3 or more employees

    Hi,
    I am using emp table in scott schema for this query.
    select * from emp
    where empno in
    (select e.mgr
    from emp e, emp m
    where e.mgr = m.empno
    group by e.mgr
    having count(*) >= 3);
    It gives all employee details where he is manager for more than or equal 3 employees. Please suggest all possible queries which gives same output.
    Thanks
    Raghu

    select * from emp
    select a.empno, a.ename , a.mgr, b.ename reported_to
    from emp a, emp b
    where a.mgr = b.empno
    --start with keyword
    SELECT empno, ename, mgr, LEVEL
    FROM emp
    START WITH empno = 7788
    CONNECT BY PRIOR empno = mgr
    ORDER siblings BY ename;
    -- employee reported to
    SELECT ename || ' reports to ' ||
    PRIOR ename "Walk Top Down"
    FROM emp
    START WITH ename = 'KING'
    CONNECT BY PRIOR empno = mgr
    -- use of PRIOR in different places
    SELECT ename || ' reports to ' ||
    PRIOR ename "Walk Top Down"
    FROM emp
    START WITH ename = 'KING' --'SCOTT'
    CONNECT BY PRIOR empno = mgr
    -- using prior type 2
    SELECT ename || ' reports to ' ||
    PRIOR ename "Walk Top Down"
    FROM emp
    START WITH ename = 'CLARK' --'SCOTT'
    CONNECT BY empno = PRIOR mgr
    -- top down
    SELECT empno, ename, job, mgr
    FROM emp
    START WITH ename = 'SMITH'
    CONNECT BY PRIOR mgr = empno ;
    -- bottom up
    SELECT empno, ename, job, mgr
    FROM emp
    START WITH ename = 'SMITH'
    CONNECT BY PRIOR empno = mgr ;
    --level chart
    SELECT LPAD(ename, LENGTH(ename) + (LEVEL * 2 ) - 1, '_ '), level
    AS org_chart
    FROM emp
    START WITH ename='KING' --'SCOTT'
    CONNECT BY PRIOR empno = mgr
    --Using WHERE clause to eliminate a node.
    SELECT deptno, empno,ename, job, sal
    FROM emp
    WHERE ename != 'FORD'
    START WITH mgr IS NULL
    CONNECT BY PRIOR empno = mgr;
    -- Using CONNECT BY clause to eliminate a branch.
    SELECT deptno, empno,ename, job, sal
    FROM emp
    START WITH mgr IS NULL
    CONNECT BY PRIOR empno = mgr
    AND ename != 'FORD'
    SELECT EName "Employee",
    LEVEL,
    SYS_CONNECT_BY_PATH(ename, ' /') "Path"
    FROM emp
    START WITH mgr is null
    CONNECT BY PRIOR empno = mgr;
    -- 10g features
    -- connect by isleaf
    Select Ename "Employee", Connect_by_isleaf "IsLeaf", Level,
    Sys_connect_by_path (Ename, ' /') "Path"
    From Emp
    Start With Mgr Is Null
    Connect By Prior Empno = Mgr;
    -- connect by iscycle
    SELECT EName "Employee",
    CONNECT_BY_ISLEAF "IsLeaf",
    CONNECT_BY_ISCYCLE "IsCycle",
    LEVEL,
    SYS_CONNECT_BY_PATH(ename, ' /') "Path"
    FROM emp
    START WITH mgr is null
    CONNECT BY nocycle prior empno = mgr;
    -- connect by root
    SELECT ename "Employee", CONNECT_BY_ROOT ename "Manager",
    LEVEL-1 "Pathlen", SYS_CONNECT_BY_PATH(ename, '/') "Path"
    FROM emp
    WHERE LEVEL > 1 and deptno = 10
    CONNECT BY PRIOR empno = mgr;

  • Query to find Employee's Business group name

    Hi,
    I am new to HRMS module.
    I want to find the employee's (from per_all_people_f) business group details.
    I found a base table HR_ALL_ORGANIZATION_UNITS, but there are many records in that table with the same business_group_id as that by itself isnt a unique key.
    Could some one assist me in finding the link between employees and their BG.
    Thanks.

    the business group details are stored in the table "*PER_BUSINESS_GROUPS_PERF*" So you can use the following clause:
    where PER_ALL_PEOPLE_F.BUSINESS_GROUP_ID = PER_BUSINESS_GROUPS_PERF.BUSINESS_GROUP_ID
    Good Luck,

  • Query to find employee of the month in year

    HI,
    Can anyone please help me in writing the following queries on Northwind database.
    1.We are going to motivate employees by creating 'Employee of Month' (employee who has made highest sale). Create Employee of Month List for year 1997. 
    2.We want to know how our products’ sales differ from each month. Get the list product which
    we sold the most and which we sold the least in quantity for each month of 1997.

    And for the second problem try:
    WITH cte
    AS (
    SELECT OD.ProductID
    ,SUM(OD.Quantity) AS SoldQty
    ,datepart(month, O.OrderDate) AS MonthNumber
    ,datename(month, O.OrderDate) AS [Month Name]
    FROM dbo.Orders O
    INNER JOIN dbo.[Order Details] OD ON O.OrderID = OD.OrderID
    WHERE O.OrderDate >= '19970101'
    AND O.OrderDate < '19980101'
    GROUP BY datepart(month, O.OrderDate)
    ,datename(month, O.OrderDate)
    ,OD.ProductID
    ,cte1
    AS (
    SELECT P.ProductName
    ,P.ProductID
    ,cte.SoldQty
    ,cte.MonthNumber
    ,cte.[Month Name]
    ,ROW_NUMBER() OVER (
    PARTITION BY cte.MonthNumber ORDER BY SoldQty
    ) AS RnMin
    ,ROW_NUMBER() OVER (
    PARTITION BY cte.MonthNumber ORDER BY SoldQty DESC
    ) AS RnMax
    FROM cte
    INNER JOIN dbo.Products P ON cte.ProductID = P.ProductID
    SELECT [Month Name]
    ,MIN(CASE
    WHEN RnMin = 1
    THEN ProductName
    END) AS [Least Sold Product]
    ,MIN(CASE
    WHEN RnMin = 1
    THEN SoldQty
    END) AS [Least Sold Qty]
    ,MIN(CASE
    WHEN RnMax = 1
    THEN ProductName
    END) AS [Best Sold Product]
    ,MIN(CASE
    WHEN RnMax = 1
    THEN SoldQty
    END) AS [Best Sold Qty]
    FROM cte1
    GROUP BY [MonthNumber]
    ,[Month Name]
    ORDER BY [MonthNumber]
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Query to find employee competence score and rating against each competence

    Hi Guys,
    I am looking for a query to retrieve the below information -
    1. Job competency requirement value ( stored in competency requirement screen)
    2. Actual competenct value ( stored in competence profile)
    Basically from these two values, we like to figure out the competency gap for the employee.
    Appreciate your help!
    thanks,
    AB

    any help guru's!!!!

  • Query to find sum and detail lines

    <br>
    Hi
        I have these tables po_requisition_headers poh and
    po_requisition_lines_all pol
    poh table
    header_id          req_num
    2342                  13222
    4562                  13245
    7867                  13678
    po lines table
    line_id header_id     line_num line_amount
    12334  2342            1          40,000
    12335  2342            2          61,000
    12346  4562            1          100,000
    12367  7867            1          50,000
    how do i get this output
    i want all the total line amount for a po more than or equal 100,000 and also want to see the lines records.
    like this
    13222          2342            1          40,000
    13222          2342            2          61,000
    13245          2343            1          100,000

    select equistion_num,
           requisition_header_id,
           distribution_id,
           supplier,
           CATEGORY,
           req_total,
           need_by_date,
           requestor,
           item_description,
           project_num,
           task_number,
           segment1,
           segment2,
           currency_code,
           req_total_conv,
           email_address
    -- your query (nearly) ***************************************************************************
      from (select reqdet.*,
                   pec.email_address,
             -- added next row: check sum's argument & partition by clause and modify accordingly
    SUM(req_total /* req_total_conv */) over (partition by requisition_header_id) group_sum
              from (SELECT  r.segment1 requistion_num,
                            l.requisition_header_id,
                            d.distribution_id,
                            TO_CHAR (l.line_num) line_num, v.vendor_name supplier,
                            p.concatenated_segments CATEGORY,
                            TO_CHAR (ROUND ((NVL (l.quantity, 0) * NVL (l.unit_price, 0))),'99,999,999,999.99') req_total,
                            TO_CHAR (l.need_by_date, 'MM/DD/YYYY') need_by_date,
                            pe.full_name requestor,
                            l.item_description,
                            pr.segment1 project_num,
                            t.task_number,
                            c.segment1,
                            c.segment2,
                         -- l.currency_code,
                         nvl(l.currency_code,gl.currency_code) currency_code,
                         ROUND ((NVL(gdr.conversion_rate, 1) * (NVL(l.quantity, 0) * NVL(l.unit_price,0))),fc.PRECISION) req_total_conv
                       FROM po_requisition_headers_all r,
                            po_requisition_lines_all l,
                            (SELECT project_id,
                                    task_id,
                                    code_combination_id,
                                    distribution_id,
                                    requisition_line_id,
                                    creation_date
                               FROM (SELECT project_id,
                                            task_id,
                                            code_combination_id,
                                            distribution_id,
                                            creation_date,
                                            requisition_line_id,
                                            ROW_NUMBER () OVER (PARTITION BY requisition_line_id ORDER BY requisition_line_id,distribution_id) rn
                                       FROM po_req_distributions_all pod
                              WHERE rn = 1
                            ) d,
                            gl_code_combinations c,
                         hr_operating_units o,
                         gl_sets_of_books gl,
                            por_category_lov_v p,
                            per_people_v7 pe,
                            pa_projects_all pr,
                            pa_tasks_all_v t,
                            ap_vendors_v v,
                         gl_daily_rates gdr,
                            fnd_currencies fc
                      WHERE d.creation_date >= NVL(TO_DATE ('11-APR-2008','DD-MON-YYYY HH24:MI:SS'),SYSDATE - 1)
                        AND l.requisition_header_id = r.requisition_header_id
                        AND l.requisition_line_id = d.requisition_line_id
                        AND d.code_combination_id = c.code_combination_id
                        AND r.apps_source_code = 'POR'
                        AND l.org_id = 141
                     -- and r.requisition_header_id in (352668,353113)
                        AND r.segment1='146309'
                        AND l.category_id = p.category_id
                        AND r.authorization_status IN ('IN PROCESS','PRE-APPROVED','APPROVED')
                        AND l.to_person_id = pe.person_id
                        AND pr.project_id(+) = d.project_id
                        AND t.project_id(+) = d.project_id
                        AND t.task_id(+) = d.task_id
                        AND v.vendor_id(+) = l.vendor_id
                        and     gl.set_of_books_id = o.set_of_books_id
                        and o.organization_id = l.org_id
                        and fc.currency_code = nvl(l.currency_code,gl.currency_code)
                        AND l.currency_code = gdr.from_currency(+)
                        AND TRUNC (SYSDATE) = TRUNC (gdr.conversion_date(+))
                        AND gdr.to_currency(+) = 'USD'
                        AND gdr.conversion_type(+) = 'Corporate'
                        AND l.requisition_header_id
                      GROUP BY r.segment1 ,
                               l.requisition_header_id,
                               d.distribution_id,
                               TO_CHAR(l.line_num),
                            v.vendor_name,
                               p.concatenated_segments,
                               TO_CHAR(ROUND((NVL(l.quantity, 0) * NVL (l.unit_price, 0))),'99,999,999,999.99'),
                               TO_CHAR (l.need_by_date,'MM/DD/YYYY'),
                               pe.full_name,
                            l.item_description,
                            pr.segment1,
                               t.task_number,
                               c.segment1,
                               c.segment2,
                            l.currency_code,
                            nvl(l.currency_code,gl.currency_code),
                            ROUND((NVL(gdr.conversion_rate,1) * (NVL(l.quantity,0) * NVL(l.unit_price, 0))),fc.PRECISION)
                    -- leave this out - doesn't help
    -- HAVING SUM(ROUND((NVL(gdr.conversion_rate, 1) * (NVL(l.quantity,0) * NVL(l.unit_price,0))),fc.PRECISION)) >= 100000
                   ) reqdet,
                   per_people_v7 pec
             where bio_po_ame_util.get_commodity_manager_id(reqdet.distribution_id) = pec.person_id
    -- *************************************************************************** yreuq ruoy
    where group_sum >= 100000

Maybe you are looking for

  • Locking "Clea Form" with signatures

    I've created a fillable form and have inserted 3 sections. At the end of section one an employee is required to add their signature. In that signature box property I have set it so that once the signature is applied all form fields selected become re

  • Issue with Receiving ALL Types of Messages

    In the last few weeks I have noticed that SMS, MMS, BBM and e-mail messages have been reaching my BlackBerry Curve on a delayed basis.  Many times I only receive an SMS when I go to actually send one.  It's almost like these are backed up waiting for

  • Macbook to 42" Olevia Sound Help Please..

    I just bought my olevia and hooked it up with my macbook by mini dvi to dvi to hdmi and it looks amazing! But how do I get sound to come from the tv? Like the clicking and music from itunes to come out of the tv speakers so i can watch movies? Any he

  • Editing String in.TDM file

    With Set Properties it is possible to add one or more strings to a .TDM file (or is it to another file that is linked to the .TDM file?). Similarly it is possible to read that string with Get Properties. My current impossibilities are: - If each meas

  • Is it possible to serialize a user created object with an oracle.sql.BLOB?

    Is this possible? Cause I'm getting a WSDL Exception that the oracle.sql.BLOB is not a java bean. So how do I make it a java bean? What data type should I use?