Wage type problem.

Hi all,
    How to write code for repeat structure in wagetype (0008) infotype .
   please can anybody send code .i am new to hr-abap.
   and information also.
Reg,
kris

u have to put logic like this.
loop at pernr.
    loop at itab_p8 where       pernr  = pernr-pernr  and
                                endda  = pernr-endda  and
                                begda  = pernr-begda.
      do 20 times varying lgart from itab_p8-lga01
                                next itab_p8-lga02
                  varying betrg from itab_p8-bet01
                                next itab_p8-bet02.
        if betrg eq 0.
          refresh i0008.
          clear i0008.
          i0008 = itab_p8.
          append i0008.
      enddo.
    endloop.
Regards
Peram

Similar Messages

  • Problem in posting Er PF Wage Types generated through Retro

    Hello all,
    I am running India Payroll in ECC 6.0 with HR Package level 52.
    We have revised wages for two employees in the month of June with effect from 13.04.2010.
    Retro has run successfully for two months April & May and all the wage types are calculated and passed on for FI Posting correctly except Employer PF Wage Types.
    I am getting error while posting wages to FI as Employer PF Contribution & Employer Pension Contribution generated for April & May are not considered for FI Posting.  Only current month values are taken into account.  Whereas I don't have any problem with Employee Contribution.  /ZF5 is generated with total of past two months contribution and also passed on to FI.
    What might be the problem with Er PF Wage Types /3F3 & /3F4?
    We have not posted June salary till now due to above said posting error.  Now July Payroll is also started.
    Experts, please help me to sort out the issue.
    Thanks in advance.
    Regards,
    Hema

    Hi,
    Thanks for quick reply.
    The error is "Posting balance not cleared".
    We have changed all the components including basic salary.  Payroll program has taken PF Basis correctly and calculated PF amounts, both for Employee & Employer contribution correctly for individual months.
    As I mentioned for all the three months Employee Contribution is considered for FI posting through regular wage type for current month and through /ZF5 for last two months.
    But for Employer Contribution only June amount is considered for posting even though the correct amounts are shown for other two months in RT (three lines for /3F3 & /3F4 each).
    Due to this, total amount for Balance Sheet Accounts is less where as Expense Accounts is shown higher as Employer Contribution is not considered for April & May, causing imbalance in Accounting entries.
    GL Accounts are mapped correctly.  Otherwise even the current month amount will not be carried to FI.
    Hope my explanation is clear.
    Thanks & Regards,
    Hema

  • Problem in Wage Type Creation

    Dear Gurus,
    I am going to configure wage types in IDES ECC6. I want to configure Wage Types for Infotype 0014 for Recurring Payments & Deductions. When I configure these wage types, it does not appear in infotype 0014 instead it appears in infotype 0015. I use country grouping 99 and select Recurring Payments and Deductions in SPRO. When I check the wage types in infotype 0014, there only appears CM01,CM02, CM03. Such type of problem has never occured in production servers. Please advise me what is the cause of missing wage type in infotype 0014.
    Best Regards.
    Ali

    Brother I just opened the table  VV_52D7_B_0014_AL0 and then created a wage type again with description of your name (Sikandar"
    Now the wage type appears in info14. Thanks for your kind guidance and hope for the same in my future issues.
    Your brother
    Ali Rahman

  • HR-abap problem in getting wage type in 0008 infotypes

    i am creating sap scripts for appointment letters in that i am coolecting data from table pa0008,
    for that i am using field bet01 , bet02, etc for the diff. allowances .
    if the order of allowances are changed in 0008 infotype then field form which i am getting amount is also getting changed.
    E.G :- i am using perticular order in 0008
                then it gives me wage type in lga02 and corresponding amount in bet02 for first allowance
                                        wage type in lga03 and corresponding amount in bet03 for second allowance
    and now if i interchange order of allowances in pa008  then t gives me
                                   wage type in lga02 and corresponding amount in bet02 for first allowance
                                    wage type in lga03 and corresponding amount in bet03 for second allowance
    i hope you understnad my problem .
    Thanks in advance

    Hi,
    please check thiscode
    call function 'RP_FILL_WAGE_TYPE_TABLE_EXT'
           exporting
                appli                        = 'P'
                pernr                        = p0467-pernr
                infty                        = pinfty
              SUBTY                        = PSUBTY
              OBJPS                        = POBJPS
              SEQNR                        = PSEQNR            "QEAK100596
              waers                        = sy-waers          "XYMK097435
                begda                        = datum
                endda                        = datum
           tables
                pp0001                       = p0001        "input
                pp0007                       = p0007        "input
                pp0008                       = p0008        "input
                ppbwla                       = ppbwla       "output
           exceptions
                error_at_indirect_evaluation = 1.
      check sy-subrc eq 0.
      loop at ppbwla.
        if ppbwla-waers ne q0467-waer2.
          perform convert_to_local_currency using
                  ppbwla-betrg ppbwla-waers
                  q0467-waer2 ppbwla-betrg
                  datum.
          modify ppbwla.
        endif.
      endloop.
    Ref program
    MP046740
    Thanks and regrds
    Durga.K

  • Wage type report problem

    Hello to all
    I am getting a problem.
    In 190(Development)..
    In PA30 and infotype 8 some wage types are included for employees.
    But these wagetypes are not refelecting in PA0008 table.
    When i went into change mode of PA30 and then save ... then these values are
    reflecting in PA0008.
    But in 300 when i am doing this it is not coming..
    Plz guide me..
    I am using these wage types...
    BASIC  LIKE PC207-BETRG,                              "1000 Baisc
          HRA    LIKE PC207-BETRG,     "1002 House Rent Allowance- Del
          PERPAY LIKE PC207-BETRG,     "1001 Personal Pay
          HRA2  LIKE PC207-BETRG,      "1003 House Rent Allowance -Oth
          SPL_ALL LIKE PC207-BETRG,    "1004 Special Allowance
          PRS_ALL LIKE PC207-BETRG,    "1005 Personal Allowance
          CANTEEN LIKE PC207-BETRG,    "1007 Canteen Allowance
          WASHING LIKE PC207-BETRG,    "1008 Washing Allowance
          SPL_PMT LIKE PC207-BETRG,    "1009 Special Payment
          TRANS_ALL LIKE PC207-BETRG,  "1010 Transport Allowance
          STIPEND LIKE PC207-BETRG,    "1011 Stipend
          HRA3    LIKE PC207-BETRG,    "1012 House Rent Allowance -Trn
          SPRT_ALL LIKE PC207-BETRG,   "1014 Supporting Allowance
          OVRS_ALL LIKE PC207-BETRG,   "1015 Overseas Allowance
          VAR_DA  LIKE  PC207-BETRG,   "1016 Variable Dearness Allow.
          CLA     LIKE  PC207-BETRG,   "1017  company leased accom
          COA     LIKE  PC207-BETRG,   "1018 Company owned accom
          FS      LIKE  PC207-BETRG,   "1019 Furniture Scheme
          WAT_DED LIKE PC207-BETRG,    "2000 Water charges deduction
          TRN_DED LIKE PC207-BETRG,    "2001 Transport deduction
          SCH_DED LIKE PC207-BETRG,    "2002 School fees
          SH_REM LIKE PC207-BETRG,     "1023 SHOE REIMBURSEMENT "SOC BY ANUBHAV
          OFF_ALL LIKE PC207-BETRG,    "1064 OFFICIATING ALLOWANCE
          CHLD_ALL LIKE PC207-BETRG,   "1065 CHILD EDUCATION ALLOWANCE
         TWRNTMM_ALL LIKE PC207-BETRG, "1066 TOWNSHIP ALL MM
         TWRNTNM_ALL LIKE PC207-BETRG, "1067 TOWNSHIP ALL NM "EOC BY
          LIC     LIKE PC207-BETRG,                             "2008 LIC
          ADV_ADJ LIKE PC207-BETRG,    "2009 Advance/Adjustment
    and then fetching this values using....
    do 31 times varying lga from p0008-lga01 next p0008-lga02
                 varying bet from p0008-bet01 next p0008-bet02.
        CASE lga.
    *-- Read the value and stored in internal table
          WHEN '1000'.
            ITAB-BASIC = ITAB-BASIC + BET.
          WHEN '1002'.
            ITAB-HRA = ITAB-HRA + BET.
          WHEN '1001'.
            ITAB-PERPAY = ITAB-PERPAY + BET.
          WHEN '1003'.
            ITAB-HRA2 =  ITAB-HRA2 + BET.
          WHEN '1004'.
            ITAB-SPL_ALL = ITAB-SPL_ALL + BET.
          WHEN '1005'.
            ITAB-PRS_ALL = ITAB-PRS_ALL + BET.
          WHEN '1007'.
            ITAB-CANTEEN = ITAB-CANTEEN + BET.
          WHEN   '1008'.
            ITAB-WASHING = ITAB-WASHING + BET.
          WHEN '1009'.
            ITAB-SPL_PMT = ITAB-SPL_PMT + BET.
          WHEN '1010'.
            ITAB-TRANS_ALL = ITAB-TRANS_ALL + BET.
          WHEN '1011'.
            ITAB-STIPEND = ITAB-STIPEND + BET.
          WHEN '1012'.
            ITAB-HRA3    = ITAB-HRA3 + BET.
          WHEN '1016'.
            ITAB-VAR_DA = ITAB-VAR_DA + BET.
          WHEN '1017'.
            ITAB-CLA = ITAB-CLA + BET.
          WHEN '1018'.
            ITAB-COA = ITAB-COA + BET.
          WHEN '1019'.
            ITAB-FS = ITAB-FS + BET.
          WHEN '1023'.                                 "SOC BY ANUBHAV
          ITAB-SH_REM = ITAB-SH_REM + BET.
          WHEN '1064'.
          ITAB-OFF_ALL = ITAB-OFF_ALL + BET.
          WHEN '1065'.
          ITAB-CHLD_ALL = ITAB-CHLD_ALL + BET.
          WHEN '1066'.
          ITAB-TWRNTMM_ALL = ITAB-TWRNTMM_ALL + BET.
          WHEN '1067'.
          ITAB-TWRNTNM_ALL = ITAB-TWRNTNM_ALL + BET.    "EOC BY ANUBHAV
           WHEN '1014'.                               "added for support allowance and overseas allowance
            ITAB-SPRT_ALL = ITAB-SPRT_ALL + BET.
          WHEN '1015'.
            ITAB-OVRS_ALL = ITAB-OVRS_ALL + BET.
        ENDCASE.
      enddo.
      rp-read-infotype pernr-pernr 0014 p0014 p_begda p_endda.
      loop at p0014.
        CASE P0014-subty.
          WHEN '2000'.
            ITAB-WAT_DED = ITAB-WAT_DED + p0014-BETRG.
          WHEN '2001'.
            ITAB-TRN_DED = ITAB-TRN_DED + p0014-BETRG.
          WHEN '2002'.
            ITAB-SCH_DED = ITAB-SCH_DED + p0014-BETRG.
          WHEN '2008'.
            ITAB-LIC = ITAB-LIC + p0014-BETRG.
        ENDCASE.
      ENDLOOP.
    Plz guide me....
    Thanks
    Anubhav

    I suppose Error in HRA info type is because i have not maintained the basic pay info type so far.Once i get able to save the basic pay info type i think i would also be able to save the 581 info type.
    i am still not qable to resolve the issue of basic pay info type.whenever i try to save the basic pay info type system  gives the message "wage type model changed".detail message is as follows
    Wage type model changed on 01.07.2007
    Message no. RP129
    Diagnosis
    You must use the new wage type model as of 01.07.2007 when copying a 'Basic Pay' record (0008). This model depends on the feature 'LGMST'.
    You can display the old record with the overview function.
    System Response
    The new wage type model is displayed.
    Regards

  • Wage type Creation Problem ( No values selected )

    Hi,
    I have a problem creating wagetype. when i go to transaction OH11, when i click on the dropdown list ORIGINAL WAGETYPE, it gives me the following error : "No values selected Maintain entries?"
    Since a wage type cannot be created from scratch and should be copied from original wagetypes,  I am blocked.  Could you please tell me what is the problem.
    Than you.

    Hi,
    Whichever country wage types you required, Create the wage type in the table of V_512W_T, in this table copy the any one wage type or directly you can create the new wage types with the new entries tab.
    If you create the new wage types then you need to maintain the all PC and CC and EC in the table of V_512W_D.
    Otherwise copy the wage type from the existing wage type, then no need to maintain the all PC, Cc, Ec.
    Good luck
    Devi

  • Problem in Tax Exexpiton for Newly created Wage type

    Dear Gurus,
    I Have tried to create a  New Wage type for Allowance with Exemption IT582 created Amount. In pay roll results the IT582 Exemption amount is coming. In Wage type /132 Monthly Exemptions it says the Entire Amount which it created for the Particular wage type.
    Example:
    Newly created wage type 1010 : 10,000
    Exemption Created : 6000
    Payroll Results:
    /132 : showing 10,000+800 Conveyance
    MCAX : 6000 - Custom Allowance
    MCMX :6000 - Custom Allowance.
    By the above result the Gross value reduced to -10,000.
    Please suggest me to complete this process.
    Thanks in Advanc.
    Anbu.

    Hi Anbu,
    I am lil bit confused abt the explanation u had given. anyway i will explain the configuration n step u need to perform-
    configure a wage type in V_T7INA9 and V_T7INT9 view first.
    maintain the amount, which employee has submitted as claim.
    then pass the value in infotype 8 or 14 or 15 through the same wage type u have configure.
    now minimum of 3(entry in V-T7INT9, infotype 8 or 15 or 14 and entry maintained in infotype 582) will b the exemption amount.
    Regards,
    Praveen
    Edited by: Praveen-Sapping in SAP World on Mar 26, 2009 10:11 PM

  • Problem with wage type of INVAL B

    hai gurus
    I am running Indian payroll, for one allowance grouping there are 6 wage types, but  a Wagetype (for LTA)  is of INVAL B and its some percentage on Basic pay, I have completed  configurations including allowance grouping, but when I am trying to add that in the IT0008, all the wage types are displaying except  LTA  , only 5 wage types are displaying in 0008. Please let me know why such this is happening
    thanks
    kiran

    dates and control record are ok, in that allowance grouping 6 wts are there, but in 0008 only 5 accepting when i selet the Payscal goup and level  , i am not sure why 6th wagetype its now showing in 0008
    i mean its showing, but this sixth wagtype i have to manually input, it that is tha case its working fine, but all the wage types for that allowance gorouping should be displayed rite?

  • 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

  • UK Payroll TAX percentage of a wage type

    Hi,
    Could you please help me will a way of find the Tax percentage deducted for a wage type. I am running UK payroll and finding a difference in Tax deduction. Your expertise will help me to identify the issue.
    Please help me in this.
    Kind Regards,
    Suresh G

    What exactly is your problem. UK tax is on a cumulative basis, and typically there are slabs with different rates,  so it is difficult too work out a percentage for each wagetype.

  • Payslip display issue for retro periods of a wage type

    Hi,
    we have an issue with payslip display for the rate field of an wage type.
    we are genaearting the amount of a wage type 2000 using T511K constant. and we have changed the Rate of this constant in the mid of pay period.
    if we have split in WPBP then we are getting payslip display for old and new rate. which is fine.
    however if we don't have WPBP split for retro periods then payslip is clubbing the old and new rates hence the diaplay is wrong.
    ex: wrong dispaly for retro periods (08/2009 one record with RTE as 6 and for 09,2009 another record with RTE as 6)
    wage type          rate             number      amonut
    2000                   12                2                12      (rate should be 6 however it is diaplaying 12 as taking rate of 08 & 09,2009         periods where it is comg as 6+6=12 which is wrong)
    right dispaly should be
    wage type          rate             number      amonut
    2000                    6                   2                12      (rate should be 6, i.e 6*2=12)
    Thanks
    Gayathri

    Hi Gayatri,
    First check the values in payroll log or RT table. If its displaying correctly in RT table and if its problem with Payslip, then ask the abaper to debug the program.
    Also check the WPBP table in RT table, because as you told that if there are any changes in the mid of the month, then the amount may split.
    And if you have written any PCR for this, then check the PCR, whether its overwriting with any values.
    Just check the above points.
    Thanks & Regards
    Bharathi

  • Time enry collisions and wage type issues

    Hi Experts,
    We do not have holiday's embedded in our schedules due to the flexibility in when employees are allowed to take the paid time off and also due to
    our "flex" work schedules being more than 8 hour work days but the holiday benefit is an 8 hour benefit.  This has caused us a lot of issues with
    time entry, however, we thought it had been corrected.  We are now running into the same issues.  Here is an example:
    First Issue:
    Work Schedule week of 12/31/07 - 01/05/08
                Sun   Mon   Tues  Wed   Thur  Fri   Sat
    Schedule    0     10    10    10    10    0     0
    Tuesday the 1st is a holiday and the employee must enter Absence type 240 for 10 hours to fit his schedule.  Employee also work on the holiday and
    needs to enter Attendance type 832 for unscheduled holiday work.  When we try to enter the attendance we receive a full day collision error and
    cannot continue.
    Second Issue:
    Work Schedule week of 12/31/07 - 01/05/08
                Sun   Mon   Tues  Wed   Thur  Fri   Sat
    Schedule    0     8     8     8     8     8     0
    Tuesday is the holiday and the employee enters Absence type 240 for 8 hours to fit her schedule.  She is also on Standy-By time for the holiday.  We
    had to configure standby time specifically as a wage type and activate the wage type column in the CATS entry screen.  She must enter W/T (it's the
    only option) 1802 and then record 24 hours in the date 01/01/08.  This entry also gives us a full day collision message and we cannot continue.
    We can provide more examples when a consultant is assigned.  These options used to work and we do not know why they are no longer working.
    Advice me to resolve this ticket on time, its high priority ticket.

    Hi,
    I think your 1st problem comes from the misunderstanding of SAP work schedule logic.
    As you mentioned, you want to input ab type 240 to fit work schedule. But it's not necessary.
    For that day is a WORK day with holiday class 1. That means scheduled work can be overwrited by holiday. If the employee does not come to work in that day without any 2001 informations, he/she is NOT absence,because that day is a paid time off.
    And as for the attendance type, it's also no needed. Because if employee came to work in a public holiday, the working hours will automatically counted as OT hours but UNAPPORVED! To approve this OT, you need input 2007 attendance quota. In this example, the employee got 10 hours OT in puplic holiday which is recorded by SAP TM but unapporved. Then you should create a 2007 record with 10 hours attendance quota in the same day. By doing this, the TM evaluation will count those 10 hours as paid OT.
    I think the way above is what you called "flexibility in when employees are allowed to take the paid time off "
    Hope helpful
    Br,Kee

  • Error while copying a Wage Type

    Dear HCM Experts,
    I am facing a problem in copying a wage type for recurring payments & Deductions. System generates an error "Wage Type already exists and can't be copied".  I understand that this error is due to blank wage type which needs to be deleted. Therefore I tried to delete blank wage type manually from all tables but still the problem exists. Now when I use Tcode PU30 to delete blank entry again in system,  there seem an entry which shows only the end date 31.12.9999 and when I select this entry for deletion, system shows the message "no wage type selected for deletion" This end date exists in table T512w. Now Plz guide me to resolve the issue as I am in trouble and all configuration is stopped due to this error in wage type configuration.
    Thanks & waiting for your exper opinion.
    Ali

    Hi,
    You just need to delete two items from the customizing view, go to next step, that will be okay!
    Regards
    Tao

  • Calculation of Fed and State Taxes for one time payment wage type in US Payroll

    Hi SAP Py Gurus,
    I'm new to US taxes.
    Configured a Tuition Reimb WT 1245 for IT 15, need to Test it now to check how and Fed Tax,State Tax is calculated on this Wage type,
    need to check where this can be located in payroll log in simulation run.
    Can you please explain the calculation step by step.
    Thanks,
    Diya

    Just came back from vacation and saw your thread (which should have been posted in the HRP HCM Payroll North America forum).  We applied SAPKE60061 in late November and the Canadian YE Note in mid-December and didn't come across that problem, but then again we don't have any Quebec employees.
    What version are you on ?
    What HRSP did you apply ?

  • How to change country grouping of Wage Type

    Hi Experts,
    I am facing problem in scenario where I am creating a new Wage Type by copying it through the WT in the country grouping 08 - UK. but I want the new WT should appear under the country grouping 27 - HK. We have asked client to give the WT from country grpng HK but thy said it need copied thr WT availabale in country grpng 08.
    Now I need to change the country grpng of newly copied WT so that i can assign it to expense type which falls under country grpng 27.
    Please can anyone help me in changing country grpng for WT.
    Thanks in advance.
    Priyanka Dhuke

    Hi Venkat,
    I was doing that steps only. But my problem is diffrent.
    As per u r example, I need create wage type YYYY under cntry grpng 27 by copying wage type XXXX which is under cntry grpng 08. When I'm cratng WT YYYY by cpoyng it frm wt XXXX it comes under 08 only where as i want tht under 27.
    if i select cntry grpng 27 while gng into OH11 then i'm unable to get wt XXXX in the Original Wage Type field.
    Hope this clear to you.
    Thanks
    Priyanka Dhuke

Maybe you are looking for

  • HT1338 iPhoto library won't open.

    My iPhoto library was working fine until recently when I tried to import photos from my camera to my library.  Now when I try to open iPhoto, I get a spinning wheel and none of the pictures in my library show up. I have the latest software update, an

  • How do I get a button to launch a new frame within a frame?

    I'm very new to Java and am using Jdeveloper9i. I am writing a stand alone application that has a frame with fields e.g. name, emailid etc and have provided a "Modify" button, which I want to call up another frame/panel with text fields to allow the

  • Sharing data between two separate user sessions

    Hi all! I have been trawling my brain for a solution to this - any help will be appreciated! I would like to create a single instance of a class but share that instance over more than one user session (two separate users but both running concurrently

  • IDVD Project Size Stuck @ 4.54 GB

    I created an iDVD project using Magic iDVD and the Pass Through theme (6.0 theme). These are the contents: (1) a main menu movie of 6 MB and a 30-second soundtrack (not the same soundtrack as the movie) (2) 3 submenus with still photos and a 30-secon

  • Workflow Triggering twice when executing transaction cj21n

    Hi Experts, when i am executing transaction cj21n my workflow is triggering twice but earlier  it was working fine .. please provide your input on the same Thanks Deepanker Dwivedi