Other wage types automatically update in PA30.

Hello Experts,
Please help me for the following requirement,
I have to calculate the other wages based on ( annual salary - basic (1000)).
i have implement following exit PBAS0001.
this is a code i have written to ZXPADU02, but didnt work out,
Code :
DATA: wa_0008 TYPE p0008,
      lv_wgetype TYPE pa0008-lga01,
      lv_payment TYPE t510-betrg,
      lv_syindex TYPE n LENGTH 2.
DATA temp_amt TYPE p DECIMALS 2.
DATA temp_amt1 TYPE p DECIMALS 2.
FIELD-SYMBOLS <fs_amount> TYPE any.
IF sy-tcode = 'PA40' OR sy-tcode = 'PA30'.
  CASE innnn-infty.
    WHEN '0008'.
      IF ( ( ipsyst-ioper EQ insert OR ipsyst-ioper EQ copy OR ipsyst-ioper EQ 'MOD' ) OR sy-ucomm EQ 'UPD' ).
        DATA lv_field TYPE char40.
**** Importing data from innnn to the structure wa_0008
      CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
        EXPORTING
          prelp = innnn
        IMPORTING
          pnnnn = wa_0008.
      DO 7 TIMES VARYING lv_wgetype FROM wa_0008-lga01 NEXT wa_0008-lga02.
        IF lv_wgetype = '1000'.
          IF wa_0008-bet01 IS NOT INITIAL.
              temp_amt1 = wa_0008-ansal - wa_0008-bet01.
          ENDIF.
          lv_syindex = sy-index.
        ENDIF.
****        calculation for different wage type.
**        1005
        CASE lv_syindex.
          WHEN 1.
             ASSIGN ('(MP000800)p0008-bet01') TO <fs_amount>.
             <fs_amount> = wa_0008-bet01.
             EXIT.
          WHEN 2.
            data : v_bet02 TYPE pa0008-bet02.
            CLEAR : v_bet02.
            v_bet02 =  ( temp_amt1 *  40 ) / 100.
            ASSIGN ('(MP000800)p0008-bet02') TO <fs_amount>.
            <fs_amount> = v_bet02. "lv_payment.
            EXIT.
          WHEN 3.
            data : v_bet03 TYPE pa0008-bet03.
            CLEAR : v_bet03.
            v_bet03 = ( temp_amt *  8 ) / 100.
            ASSIGN ('(MP000800)p0008-bet03') TO <fs_amount>.
            <fs_amount> = v_bet03. "lv_payment.
            EXIT.
          WHEN 4.
            data : v_bet04 TYPE pa0008-bet04.
            CLEAR : v_bet04.
            v_bet04 = ( temp_amt *  8 ) / 100.
             ASSIGN ('(MP000800)p0008-bet04') TO <fs_amount>.
            <fs_amount> = v_bet04.
            EXIT.
          WHEN 5.
            data : v_bet05 TYPE pa0008-bet05.
            CLEAR : v_bet05.
            v_bet05 = ( temp_amt *  8 ) / 100. "( temp_amt *  8 ) / 100.
             ASSIGN ('(MP000800)p0008-bet05') TO <fs_amount>.
            <fs_amount> = v_bet05.
            EXIT.
          WHEN 6.
            data : v_bet06 TYPE pa0008-bet06.
            CLEAR : v_bet06.
            v_bet06 = ( temp_amt *  20 ) / 100.
            ASSIGN ('(MP000800)p0008-bet06') TO <fs_amount>.
            <fs_amount> = v_bet06.
            EXIT.
          WHEN 7.
            data : v_bet07 TYPE pa0008-bet07.
            CLEAR : v_bet07.
            v_bet07 = ( temp_amt *  12 ) / 100.
            ASSIGN ('(MP000800)p0008-bet07') TO <fs_amount>.
            <fs_amount> = v_bet07.
            EXIT.
          WHEN 8.
            data : v_bet08 TYPE pa0008-bet08.
            CLEAR : v_bet08.
            v_bet08 = ( temp_amt *  8 ) / 100.
            ASSIGN ('(MP000800)p0008-bet08') TO <fs_amount>.
            <fs_amount> = v_bet08.
           EXIT.
         WHEN 9.
            data : v_bet09 TYPE pa0008-bet09.
            CLEAR : v_bet09.
            v_bet09 = wa_0008-ansal - ( wa_0008-bet01 + wa_0008-bet02 + wa_0008-bet03 +
                                            wa_0008-bet04 + wa_0008-bet05 + wa_0008-bet06 +
                                            wa_0008-bet07 + wa_0008-bet08 ).
            ASSIGN ('(MP000800)p0008-bet08') TO <fs_amount>.
            <fs_amount> = v_bet09."
**            wa_0008-ansal - ( wa_0008-bet01 + wa_0008-bet02 + wa_0008-bet03 +
**                                            wa_0008-bet04 + wa_0008-bet05 + wa_0008-bet06 +
**                                            wa_0008-bet07 + wa_0008-bet08 ).
*            EXIT.
*          WHEN OTHERS.
*        ENDCASE.
*        CLEAR lv_syindex.
*      ENDDO.
endif.
Please do the needful.

Hi,
Can you view my post in this thread:
Re: Wage Type in infotype 14 is not displayed on payslip
thanks.
JB

Similar Messages

  • Adding NSSF+Pension Fund Storing in other Wage type.

    Hi Experts,
    I have requirement with client.
    I need to add two wage type for EE contribution and store in other Wage Type.
    Find below the details:
    1. 0507: NSSF Employee contribution
    2. 0630: Pension Employee Contribution 5%
    3. 0631: Pension Employee Contribution 7.5%
    4. 0632: Pension Employee Contribution 10%
    5. 9400: NSSF+Pension EE Contribution
    My requirement is every month employee will contribute Pension Fund & NSSF Fund , based on the percentage he is in pension we need to add the Pension fund & NSSF fund and store in = 9400 - NSSF+Pension EE Contribution.
    If employee has contributed 0630 i.e. 5% then
    Add 0507 (NSSF) + 0630 (5%) and store in = 9400
    else
    If employee has contributed 0631 i.e. 7.5% then
    Add 0507 (NSSF) + 0631 (7.5%) and store in = 9400
    else
    If employee has contributed 0632 i.e. 10% then
    Add 0507 (NSSF) + 0632 (10%) and store in = 9400
    Note:
    1. Subject to the combined maximum allowable limit for NSSF and Pension Fund (KES. 20,000.00) per month
    2. Pension is not part of total taxable income up to a maximum of KES. 20,000.00 per month or KES 240,000.00 per annum
    Where i can store the limits for Pension Fund 20,000/-
    I have not worked in PCR
    Kindly assist me how can i write a PCR for this requirement.
    Appreciate your early response.
    Regards
    Raj

    Write a PCR for this in the below way
          WGTYP?
               0507
                   AMT=  0507
                   ADDWT9400
               0630
                   AMT=  0630
                   ADDWT9400
    Try this logic
    0507: NSSF Employee contribution
    0630: Pension Employee Contribution
    9400: NSSF+Pension EE Contribution
    Best Regards,

  • IW41: automatic update of activity type when changing the work center?

    Hello colleagues,
    when doing a time confirmation with IW41, we have following problem:
    In the PM order the operations are assigned to a neutral executing work center, as it not known which individual technician is completing the operation later on.
    Now when the individual technician is entering the time confirmation with IW41, system is proposing the work center indicated in the operation from the PM order, then technician is overwriting the work center proposal with his own individual work center ID (and pressing Enter), but the activity type is not getting updated automatically. So the technician must jump to field "activity type" and choose the correct activity type.
    Is there any solution (hopefully with user exits!) to have the field "activity type" automatically updated with the one indicated in the work center, which was entered manually?
    Thanks for your ideas!
    Regards,
    Patrick

    Hi Maheswaran,
    yes, as usual all PM work centers have only 1 activity type assigned in the costing tab.
    We also checked the settings of the activity type (KL03), but we just found one difference: the price indicator was set on 3 "Determined manually" - we've changed to 1 "Plan price, automatically based on activity" (..same setting as for the act. type of the work center with working update of act.type).
    We tested already all possible constellations and scenarios, but we have not found any good reason for the behaviour.
    Thanks for your efforts so far!
    Patrick

  • US-PY-PT What are the time of wage types?

    Gurus,
    I am new to HR and have some basic questions.
    I read some documentation and need some clarifications.
    1. What is time wage type?
        All the wage types created in B2 cluster (assuming PT component is enabled).
    2. What is non-time wage type? (also refered as dialog wage type)
         All wage types created by PA30 infotypes.
        The only exception is 2010 which can have user
         entered wage types. If enter wage type has only number - then it is time wage type. Otherwise, it
         is non-time wage type.
    Do I understand this correctly?
    Are there any changes needed for the above two statements?
    Please help...
    Thanks,

    Dear,
    1. What is time wage type?
    Time Wage types are generated during time evaluation with their amount as only NUm field is there for time wage types as Overtime hours
    2. What is non-time wage type? (also refered as dialog wage type)
    Valuation of non time wage types are done out of Time Evaluation . Like wage types entered in IT 0008 , 0014, 0015 etc
    3.
    In IT 2010 we can enter Time wage types as well as other wage types even this IT is used for enttering Overtime wage types
    Warm Regards,
    Kapil Kaushal

  • 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

  • Wage type 559 in HR ABAP

    hi guru,
    i am new to hr abap,
    i have been assigned with an new project related to hr abap.
    my requirement is to display a list containing following fields with data.
    EMPLOYEE NO.                  NAME                   BANK NAME                   BANK A/C NO.                 AMOUNT
    i am getting first four fields from infotypes 0001 and 0009  but field AMOUNT is wage type /559 is to be retrieved from some RT table..
    can someone help how to get that AMOUNT field data which is a net amount in  /559  ?

    Hello,
    In declaration part of yr internal table of report, declare it:
    pernr     TYPE pernr-pernr,         " emp id
    ename   TYPE p0001-ename,     " Emp Name
    bname   TYPE bnka-banka,        " Name of Bank
    ac_no     TYPE p0009-bankn,     " Bank Account No
    w1001    TYPE q0008-betrg,       " Amount (Basic Pay)
    Now go to rt OR trt table
    Loop at trt
       make the case of that particular infotype
         say Amount(Basic Pay)
    when'1001'.
      ty_final-w1001 = trt-betrg.
    .. .. similarly for other wage types whatsoever the requirement is..
    Endloop.
    Now to go fieldcatalogs in the ALV display criteria... and declaretha wage type variable Like.
      CLEAR wa_fieldcat.
      ADD 1 TO col_pos.
      wa_fieldcat-row_pos = 1.
      wa_fieldcat-col_pos = col_pos.
      wa_fieldcat-fieldname = 'w1001'.
      wa_fieldcat-seltext_l = 'Amount(Basic Pay)'.
      APPEND wa_fieldcat TO it_fieldcat.
    .... I think that completely resolvs yr problem... no help is more required on that.
    All tha Best
    Regards,
    Akg

  • Automatic updation of amount of wage type in infotype 0008 for all live emp

    Hi,
    Please note that I want to upadate one wage type (9001 - bonus) amount from Rs.2000 to Rs.1950 in infotype 0008 for all the live employees.  
    If I do the following way -
    Payroll: India  -- > Reimbursements, Allowances and Perks  -->  Maintain Pay Scale Groups and Levels
    then the new value appears only for new entry in Infotype 0008.
    Please advice
    Warm Regards
    S J Rajam

    you can try through fast entry screen  and update the amount in infotype.

  • Activity type - actual cost automatic updation

    Hello Gurus
    I have done KL01 KP06 and  KP26  transactions. That is I ahve defined the activity and assignes a cost conter to it.
    i need some report , when i will  check  the     tcode    S_ALR_87013611 - Cost Centers: Actual/Plan/Variance
    Here  my actaul  cost want to update actumatically , is  it possiable 
    can Anybody  give me the solution
    Regards
    Sri

    Hi,
    What do you mean by 'automatic' update of actual costs? Whenever you will post a transaction on the activity type you have defined, you will create actual costs based on the tariffs you have provided.
    Regards,
    Eli

  • Update three wage type out of seven wage types in Infotype BASIC PAY(0008).

    Dear All SAP HR Experts,
    I am trying to create LSMW to update 3 wage types amount out of total seven wage types.But it was not update amount after creating LSMW.
    Please suggest.
    Regards,
    Mahendra
    Pune

    Remi,
    Are those 3 WTs in IT0008 indirectly valuated (through Salary Grids in T510) or do they require manual input of the amount (direct valuation) ?
    Ans Wage type calculation rule already defined,only we have to put wages standard amount in basic pay infotype. for all employees.It will diectly calculated  amount according to their attendance data
    Are those 3 WTs always in the same position (ie. Lines 2, 5 & 7) in the IT0008 of all the employees ?
    Ans:Yes, they are in same line(4,5,8,9)  and positions for all employees.
    regards
    Mahendra
    Pune

  • Automatically update a Numbers spreadsheet from other application/documents

    Hi,
    Before I start I am a relative novice in using Numbers, and if it applies in this instance, Applescript and Automator. I run a small local weekly free newspaper (created using InDesign if that is relevant) which is paid for by adverts; I want to create a spreadsheet to track my advertisers and the financials in every respect - renewals, sizes and duration of ads, amount paid and owing, and a whole load of other stuff which includes their contact details. Now I know that I can import the relevant info from Address Book as a snapshot at that moment, but what I want to know is whether it is possible to have the spreadsheet automatically update whenever I change a contact or add a new one to my Address Book? As far as I have been able to ascertain so far, it is not, so if that is the case, is there some sort of workaround, possibly using Automator and another app or even the web, where this can be done? Or is it possible the other way round, where I keep the contact details updated in Numbers and this gets transferred to Address Book? Or any other bright ideas? I don't really want to have to type the same information, or even copy/paste it for every new customer, as well as inputting it into my phone (which I don't think is able to sync with my Mac - it is a Samsung).
    Please keep any scripting/technical answers as simple as possible, as I don't have much experience with it. Thanks in anticipation...

    I have been doing a lot more reading on the forum and I now think there might be a partial solution to what I would like to do, possibly even a complete one, but I am not sure if what I have in mind is possible.
    Using Automator/Applescript, could it be done that on a weekly basis Address Book gets opened automatically, the relevant group of contacts (which is already set up) is selected and copied/exported, and then Numbers and the relevant sheet opened automatically and the updated contact list pasted/imported? In addition is it possible to set up a script that can check if a group in AB has been changed, and if it has for this to be the trigger for the earlier script/workflow I have described rather than a date (every week in this case)? Again this could work the other way around, with the Numbers sheet being the one changed by me, and then a script to update AB. Any help would be massively appreciated.
    I have now managed to set up iSync to work with my phone so that can be updated once AB has been, but I am still working on getting the information from the phone to AB to be correct for Numbers! This is because of how my phone contact details is stored which is different seemingly from AB and I am not sure if I can sort that out. There is a First Name and Last Name field but no Company name in my phone, and I need to have all of those for it to work.

  • PA30, PA0008 add/remove one record for onw wage type

    in PA30 we can add wage type & amount for an employee. It creates entry in PA0008.
    How to add or remove a wage type through program ?
    screen is quite complex & with small table control, so BDC is not a good idea. Some ppl told me we can change record in PA0008. is it common practice to do it in HR ABAP ?
    Vivek

    Hello Vivek,
    First you should not modified the PA0008 tables directly using SQL stmt.
    please use the BAPI BAPI_BASICPAY_CHANGE to modify it.
    when you are using these BAPI or Tcode PA30 there are lots of validation is happening.
    And when you will modify it using SQL stmt it will create discrepancies into the Transaction data.
    If you have still query do revert.
    Regards,
    Chandrashekhar

  • How to update cost related condition type amount in sales order without disturbing other condition types.

    Hi ,
    How to updae only one item condition  ZYV0 value in sales order. If I can see we have several options from pricing type to update condition types but here My requirement is to update only one condition amount .If I can see other pticing types they will update all condition types .
    -Exclusive option is checked for all the tables maintained in access sequence,
    Below options were not worked for me.
    -In condition type ----> Condition category has been updated with "D"(Tax) pricing type-"G" to update in sales order
    - This option worked for me but  condition category  "F"(frieght) and pricing type -H but in conditions tab when I update two condition amounts are activated for one condition type like below.
    ZYV0--30 % (old condition record value updated in sales order)
    ZYV0- 50% (updated condition record)
    Regards

    Hi Rita,
    Tried with condition category "u" and updated with pricing type "U" . It works as same I used old logic.
    with condition categories "D" and "F" it will update old and new condition record values in sales order.
    ZYV0--30 % (old condition record value updated in sales order)
    ZYV0- 50% (updated condition record)
    I have updated  here existing condition record value from 30 % to 50 % validity periods are not changed.
    Regards

  • Is there a way to edit text in one spot and have it automatically update in several other locations?

    I have a text box on 3 different pages I have created. One of the lines of text will periodically change from to time. Right now I have to manually go into all 3 text boxes and manually make the change. I would like to know if there was a way I could just edit one and all the others will automatically update.

    Hi brain bomb,
    I am afraid that the feature that you are requesting for is not there in Muse at the current stage.
    So, you will need to update the text frames manually.
    Regards
    Sonam

  • After a Windows 8.1 automatic update yesterday my other wireless devices like smart phones, tablets, etc can't use my routers wireless signal unless my laptop is turned on

    Hi guys, please help, I'm desperate.
    After an automatic update to my windows 8.1 yesterday none of my other other wireless devices like smart phones, tablets, etc. can join my wireless network unless my laptop is turned on.  If I turn my laptop off, after a couple of minutes my iphone,
    my wife's iphone  and my Galaxy Tab lose connection and are unable to join my router's network. When I turn my laptop back on, all the other devices are able to use my router's wireless internet without any problems.  How can I fix this???
    Thanks.

    Hi,
    First, I suggest to reset the router, meanwhile disable the network card and enable it again, because it is obviously network issue.
    Then, as you post this happened after windows update, try to find the update that was already installed on your computer
    Restore your computer by following the way listed below:
    http://windows.microsoft.com/en-us/windows-8/restore-refresh-reset-pc
    Hide the  update if it is not an important one and related to wireless internet according to this article:
    http://technet.microsoft.com/en-us/magazine/ff382716.aspx
    I hope it works for you .
    v-yamliu

  • I'm running Windows 7 and iTunes and the other Apple programs wouldn't automatically update. Went through all the options and finally had to delete all Apple files and re-download iTunes. Worked fine, until the next update. Is there a glitch in the system

    I'm running Windows 7 and iTunes (and the other Apple programs) wouldn't automatically update. Went through all the options and finally had to delete all Apple files and re-download iTunes. Worked fine, until the next update. Is there a glitch in the system? Does someone know of some proprietory block (I think it is related to Quicktime)? Also, once I re-downloaded everything, cleaned everything up, and deleted duplicate files, I closed down my computer. When I re-started it, iTunes was "brand new" -- all of my music, organization, tagging, etc. was gone and had to start over. Idea?

    Ok, so after like 4 days of going through all these different issues, I figured out that several programs weren't downloading, and it was an issue with my wireless connectivity messing up the digital signatures, so if you plug in your comp to the modem and delete your temp files, it should start to work!

Maybe you are looking for

  • Changing images on a random path

    Is it possible to have an image cross the screen slowly on a random path for say 10 seconds, then have another image replace it and go across on another random path? i will have maybe 15 images in toal that I want to do this with! Thanks

  • Problem Installing  IDES 4.7 SR1 with Oracle 9.2.0.1.0

    Hello everyone, I have problems installing SAP IDES 4.7 SR1  with Oracle 9.2.0.1.0 on my desktop pc..I got problems in the very begining when using Oracle Universal installer: --When I tryied to install Oracle(using Oracle Installer) for the first ti

  • Can we create Named instance without installing Default instance

    Hi experts, i'm new for sql dba, Can we create Named instance without installing Default instance Thanks in advance. Regards, Madhu

  • F.5D report

    Dear forum, May I know any report to refer to after run F.5D? I not able to see the implication after run. After run it shows only "Breakdown calculated for 001952 documents". Thanks

  • Extra column in excel output report

    Hi How do we get rid of extra blank first coulumn when a portal report is output to excel Thanks APARNA