GROSS PAY AND NET PAY

hello
can anyone help in getting gross and net salary using a sql for an employee..what are the tables i might need..
thanks
kp

You can use the following query:
SELECT prb.balance_value
  FROM pay_run_balances prb,
       per_all_assignments_f paaf,
       pay_assignment_actions paa,
       pay_payroll_actions ppa,
       pay_defined_balances pdb,
       pay_balance_types pbt,
       pay_balance_dimensions pbd
WHERE paaf.assignment_id = prb.assignment_id
   AND paaf.assignment_number = :emp_no                           
   AND TRUNC (SYSDATE) BETWEEN paaf.effective_start_date AND paaf.effective_end_date
   AND paaf.primary_flag = 'Y'
   AND paaf.assignment_type = 'E'
   AND paa.assignment_action_id = prb.assignment_action_id
   AND ppa.payroll_action_id = paa.payroll_action_id
   AND ppa.action_type IN ('R', 'Q')
   AND ppa.effective_date BETWEEN :st_dt AND :ed_dt
   AND prb.defined_balance_id = pdb.defined_balance_id
   AND pdb.balance_type_id = pbt.balance_type_id
   AND pbt.balance_name = :b_name
   AND pdb.balance_dimension_id = pbd.balance_dimension_id
   AND pbd.dimension_name = '_ASG_RUN'use the bind variable :b_name as Net Pay and Gross Pay to get the values. Net Pay and Gross Pay are balances.
Hope this helps

Similar Messages

  • Model wage type for performance pay and additional pay

    Hi gurus,
    my client wants performance pay and additional pay in the additional payments. I am confused what model wage types to be copied for this. i tried copying m2sf for these but the prob is if if the employee is joining in the mid of month say 15th , then if i am trying to give performane pay of 10,000 rs then it is calculating only 15 days pay n giving 5000 in the payroll n payslip.
    if i try to copy the other wage types like m200,m281 n m282, i have the same problem . but if i copy m280 for both of these w.ts ,then it is giving the flat amount irrespective of the joining date of employee. but my question is does it have any implications on the calculation of the tax. coz i observed different model wage types deduct different amounts of tax. i.e if i copy m281 for performance apy n give the value as 10,000 then ,it give some x amount of tax on 10,000 similarly if i copy some other model w.t , for same amount of 10,000 it gives some other amount of tax.
    im really confused ,plzz help

    Hi ramm,
    I have checked the w.t amount in /434
    /434 Total Incom                                                   182,060.00
    n my other w.t amounts are:
    4MOB Mobile Reim                                                    25,000.00
    4PER Performance                                                    15,000.00
    5CEA Child Educa                                                       193.55
    5CON Conveyance                                                      1,451.61
    5HRA House Rent                                                      4,838.71
    5SPL Special All                                                    19,354.84
    /001 Valuation b01                          179.90
    /002 Valuation b01                          179.90
    /118 PTax Basis 01                                                  75,516.13
    /119 PTax Basis 01                       96,774.19                  35,516.13
    2CAN Canteen Ded01                                                   2,000.00-
    2NOT Notice Deuc01                                                   2,000.00-
    2OTH Other Deduc01                                                   1,500.00-
    5BAS BASIC      01                                                   9,677.42
    I dont know how to check the slabs, i am new to payroll,can u guide plzz

  • In sales order gross weight and net weight are incorrect.

    Hi,
    In sales order are for a line item gross wt and net wt are  not showing as per order quantity.
    I checked in material master, in basic data 1 and additinal data gross wt and net wt are maintained correctly.
    So could you please advise me what could be the issue.
    Thanks,
    Praveen

    You need to provide a bit more information on when this is happening like whether the sales order has been created against a contract or the user changed the quantity etc..
    For example, when the user creates the sales order against a contract, while copying and changing the quantity this may happen. This is due to, the user directly clicking the save button before hitting enter button. Meaning whenever a user makes changes in item quantity in the sales order, they can hit the enter button so that the system can refersh the related data. Then the user can click on the save button.
    We had similar issue when the quantity is copied from quantity contract and we instructed the users to hit enter button to refresh all the related data.
    Regards,

  • Gross weight and net weight not getting copied from Inquiry to quotation

    Hai Gurus
    Could anyone tell me why gross weight & net weight for the particular quantity of goods are not getting copied to quotation and order from an inquiry. All other details that I maintain in an inquiry (shipping type, receiving point etc) are getting copied  to quotation.
    regards
    John
    Edited by: Gino12 on Nov 11, 2010 12:49 PM

    Dear
    Did you maintain in MM02-MMR-Sales/Plant  view Gross weight and Net wirght ??
    System calculates the net weight based on the order quantity for the item and the net weight proposed from the material master record. If the item has more than one schedule line, the system uses the total order quantity of all schedule lines to calculate the net weight. In sales documents where schedule lines are not allowed (contracts, for example), the system calculates the net weight using the target quantity.
    Regards
    JH

  • PERSONNEL PAY AND BASIC PAY

    Experts,
         I would like to know some information regarding personnel pay
          What is personnel pay and its use ?
          What is relationship between personnel pay and basic pay ?
          Where personnel pay is using in real time ?

    Hi,
    Could you describe a bit further.  What do you mean my personnel pay? ---> Employee payroll??
    If so here is goes.......
    Personnel pay, being an employee's payroll per pay period can be calculated in different ways depending on your solution.  ie:  if the employee is hourly or salary.
    An employee's basic pay info type is used by the payroll driver to calculate a valuation base (hourly rate) for each employee calculated split.  ie: 18.00 /hr or 2000.00 /per period
    This valuation base is then used in payroll to calculate the employees pay period remuneration.
    Let me know if this answers your question.
    thanks.
    JB

  • Gross weight and net weight of line item in a delivery

    Hi what exactly the meaning of gross weight and netweight of delivery line item?
    Where can i see these 2 fields in the transaction?How weight differs to the quantity for a particular delivery item?
    Thanks in advane
    Mahesh

    Hi,
    <b>Gross Weight</b>
    The system can use the <b>gross weight</b> at a later stage, depending on what kind of capacity check you run, to check storage bin capacity for warehouse management purposes.
    The system calculates the gross weight of each item by multiplying the delivery quantity by the gross weight per unit that comes from the sales order. If there is no related sales order, the system uses the gross weight from the material master record. You can change the gross weight manually in the delivery document.
    <b>Net weight</b>
    The total net weight of all items in the delivery.
    Use
    The system calculates the net weight of each item by multiplying the delivery quantity by the net weight per unit that comes from the sales order. If there is no related sales order, the system uses the net weight from the material master record.
    Please reward if helpful.
    Thanks & Regards
    Sadhu Kishore

  • Report for employees net and gross pay for a pay period

    Hi Gurus
    How should I approach to write a report which gives employees net pay, gross pay and cost center  for a pay period?
    Do i have to use cluster tables?
    As I am new to this module any help will be appreciated.
    Thanks in Advance

    Unless you store your payroll results in Infotypes then yes you would have to retrieve this information from the PCL2 Cluster. The Cost Center information would come from the WPBP table and the Gross and Net Pay from the RT table.

  • Report that display 'Net Pay' by Empl for current and previous period.

    Hi,
    We are looking for a SAP report that display 'Net Pay' by Employee for current and previous period in USA payroll module. If you know of any, pl let me know.
    Thanks in advance,
    Niranjan

    Thanks Archana and Sikindar.
    We knew about this report, however, it gives information one below the other if we run, say for 2 periods, but what we are looking for is something as shown in example below
    Empl #      Empl # Name    Prev Pay period Net Pay        Current Pay period net pay.
    123              XYZ                     $ 1200.00                                 $ 1200.00
    256              ABC                    $  2000.00                                $ 3000.00 
    We want to run for 2 periods at a time and get the results as above. That way, payroll dept can run this report and compare if we are paying too much in current pay, compared to previous pay. This is basically to avoid any typos when they create new pay records in infotype 0008.
    Niranjan

  • Error in Net Pay  in Payslip.

    Hi Friends,
    When i run the payroll with standard payslip , the total earnings and total deductions values are coming right.
    But the total net salary is not matching.
    For example
    Total earnings - 45230.07
    Total deductions - 8483.33
    Take Home Pay or Net Pay - 22684         (Actual Net Pay 36746.74)
    Iam getting this error for all employees, ihave added all the Earnings & Deductions Wage Types in PE 51. Is there any confgn req for getting the Net Pay.
    Experts please advice how to get the correct net salary.
    Regards,
    Sekar.

    Dear Sameer,
    I have checked the characteristics of all the deduction Wtypes it is marked for deduction.
    I have checked the RT Log running simulation, all the deduction wage types are getting displayed in the RT Input log , but the same Net pay amount with difference is showing in RT input log.
    Any other settings to be done.
    Rgds,
    Sekar.

  • O/P of  Net Pay is not  Correctl

    Dear experts
    i am Not getting the correct O/P of Net Pay.
    Net Pay = Earnings-Deductions
    Earning=300000
    Deductions=100000
    Net Pay= Should Be 200000, But I am getting some other value
    Earnings=Basic Sal + Con + HRA=300000
    Deductions=Professional Tax+other Tax=100000.
    Kindly suggest.
    Rgds
    Kamal Singh

    Hello Kamal,
    whenver you add any wagetype in the windows OR in cumulative IDs via tcode PE51
    Delete the standard entries which you dont want.
    remember that you are adding a single entry in windows as well as in cumulation ID.
    I think you can recheck your all entries once again and that will solve your issue.
    Thanks and Regards
    Jaydeep jadhav

  • Required the Gross and Net weight

    Hi to All,
    Please help me on how to config or reqired the Gross weight and net weight in creation of material master in tcode MM01 (Sales: General/Plant)
    Thanks,
    Ermin D. Concepcion

    Hi,
    Please check with the following link you  can find the BDC Program to Upload Material Master Data (MM01)
    http://sapprograms.blogspot.com/2008/11/bdc-program-to-upload-material-master.html
    Thanks,
    Neelima.

  • STANDARD bdc FRO STOP AND START PAY

    HI ALL,
    i WANTED TO KNOW IF THERE IS ANY STANDARD bdc AVAILABLE FOR STOP PAY AND START PAY USING TCODE PA40.
    ITS URGENT.
    PLZ HELP.
    THANKS.

    There's plenty of live examples in /etc/rc.d

  • Net Pay calculation is wrong, allowance wage type is not getting added to net amount..

    Hi Dears,
    We are doing payroll configurations for one of our client in india, Regarding our requirement ,we jus tried in test system, we have written a pcr rule stating 01st feb 2015, new allowance need to paid to employees belonging to L&T1 pa and LT ESG.. Allowance will be percent based on gross pay..allowance percentage differs according to the ESG..
    Before writing the PCR, Allowance percentage has been maintained in T511K.. And have configured as payroll constant ZTST 1 should be calculated with a value 2%.
    i have created a new wage type 9021 allowance wage type and this wage type amount should be automatically generated in payslip based on the pcr i have written while running payroll for an employee.
    EARNINGS                                                       DEDUCTIONS
    l&t basic pay 9000             54838.71                    INCOME TAX
    l&t conveyance 9100            2741.94                   12394.00
    l&t hra           9200               4387.10
    l&t allownace 9021                1239.36
    TOTAL Gross amount          63,207.11              Take Home pay (net pay)  49,573.75
    But the actual net amount should be 50,813.11..Based on the allowance wagetype i have created which is automatically generting using the pcr i have written , is getting calculated in the gross amount..
    but not getting added in net amount .so please help me out guys on how to solve this issue???
    Regards,
    Surya Prabha

    Hi Remi,
    Thanks for your kind reply, yes these values are taken from the remuration statement of a  particular pernr whom am running the payroll..
    i have checked the processing classs and i have maintained 5 and 70 which add this new allowance amount to my net amount.  now the net amount is proper.
    EARNINGS                                                       DEDUCTIONS                   perks/other income/exemptions
    l&t basic pay 9000             54838.71                NCOME TAX                       l&t leave encashment    1239.36
    l&t conveyance 9100         2741.94                   12416.00
    l&t hra           9200               4387.10
    TOTAL Gross amount          61,967.75             Take Home pay (net pay)  50 791.11
      Regards,
    Surya Prabha

  • The Net Pay generated by the system is wrong

    Hii ,
    i have an issue for payslip.
    The Net Pay generated by the system for an employee for the month of Oct.09 is wrong.  When i  analyse the payslip, the difference between the Gross Earnings and the Deductions is different from the actual Net pay. 
    Please help , i have checked in form . In earnings column total is calculated correctly and deductions also but there is excess amount in net pay.

    Hi ,
    i have checked cluster for the same but net payment /560 is calculating wrong amount which is on payslip
    as per understanding /560 = /550 + /110 so i have calcualted that amount bt it is giving some other amount
    where shoud i check the processing of the /560 in detailslike which all other wagetypes are included in this
    thanks for the reply

  • Error in Net Pay - Payroll

    Dear Friends,
    I have configured payroll-india and run the standard payslip, where the net pay is not correct.
    i.e 
    Total earnings - Rs.42000          Total Deductions - Rs.10399.33       Net Pay - Rs.33,600.67
    There is a excess of Rs.2000.  
    I have checked all the Wage Types in IT 14 & 15 , as well as RT table in PE 51 , everything seems to be ok. What else could be wrong.
    Points will be rewarded.
    Rgds,
    Sekar.

    Sekar
    I would begin troubleshooting it by using wage types.
    Case 1: Pay Employee only Basic and run simulation payroll. Do you still the difference?
    Case 2: Pay Employee only Basic and HRA, and then run simulation payroll. Do you still the difference?
    Case 3: Pay Employee only Basic, HRA and LTA, and then run simulation payroll. Do you still the difference?
    and so on....
    I know its a bit lengthy process, however, I believe you will be able to identify the exact source of problem accurately.
    Thanks
    Yash

Maybe you are looking for

  • Spreadsheets and SWING GUI's

    I have to embed a spreadsheet facility in a SWING GUI, what is the best and easiest way to do this ??

  • How to disable design time data binding?

    I am using Studio Creator IDE for the presentation layer and bringing the project into eclipse and from there moving on to creating daos,adding business objects etc. However, when re-importing my files from eclipse to the Studio Creator to make layou

  • Cant install new system

    Hei I have a Dual 1,25 PowerPC MDD, that will not boot from cd/dvd, to install a system. It all began with af orintingproblem actually, and the system whas a 10.3.9., os i figured if i upgrade to 10.4 the printing problem will go away. But i can not

  • No access to environment 'test_cons'

    When i try to import a transport from dev to qa, i get the above error, i have setup the RFC, setup the BW User, run transaction  RSTPRFC, bwuser/BPC_SERVICE has sap_all and role BPC_SERVICE.   the global parm for rfc_destination is set to the rfc.  

  • Two WebCache and one URL

    Hello, I have one cluster of WebCache, but whit different ip address on diferent physical host, ?how a I can whit one URL in the brower realize load balance acrros the WebCache clusters. I not have a hardware load balancer. thanks any idea. for other