Special allowance- india payroll

Hi Gurus,
Can you tell me from which model wagetype i should copy special allowance?
Regards
58017

Hi,
For creating Special Allowance wage type I generally prefer Basic Pay wage type copy it and give the name, and in the table V_512w_d I change according to my requirement.
Regards
Pavani
Remainder: Points to be given on Answers

Similar Messages

  • Tax details are not showing in Form 16 ..India payroll

    Hi Experts,
    I have done all configurations with respect to India Payroll.But im unable to see follwing details in form 16.
    A. Value of perquisites under section 17(2) are not showing in form 16.
    B. Less: Allowance to the extent exempt under section 10 ....are not showing  in     Form 16.
    C.Deductions under chapter 6A are not showing in form 16.
    D.Total income .Tax on total income ,surcharge ,Tax payable are also not  showing in form 16.
    Probably i might have missed some important steps while configuring.Please tell and advice me to resolve the problem.Thank you very much.
    Regards,
    Sai.

    Hi,
    Firstly, check in the RT cluster table for the employee if the folowing wagetypes aare fetching values.
    /416, /418, /130, /432.....few more for surcharge etc..but if the given wagetypes are fetching values, then other will also be caputured.
    Also, did u maintain Tax infotypes 586, 585, 582 etc..
    If yes, then problem can be with the confuguration of the wagetypes.
    Please check the above and let us know...
    Regards,
    Pranitha

  • PCR for Special Allowance

    Hello Experts,
    Could someone help me in writing a PCR for Special Allowance. Our company requirement is to provide special allowance to employees pertaining to a particular personal area. The percentage allowance will be different from employee subgroup to employee subgroup. ie: 2% for Full time and 3% for Part time.
    Personnel area - TAHY
    Employee subgroup - PT(PART TIME) - 3%
    Employee subgroup -FT(Full Time)     - 2%
    I understand in using the operations OUTWPPLAMT for Personnel area and OUTWPPERSB for employee subgroup.
    Kindly help me to write a PCR and also what is the subschema I have to insert the PCR.
    Thanks and Regards,
    Y.M.Asha Kiran

    Thank you for the detailed calculation. However, could you please let me know the Subschema i have to insert the schema.
    As Its a Indian Payroll I use INOO and what would be the subschema .
    Thanks and regards,
    Y.M.Asha Kiran

  • Special allowance

    hi
    I have a issue like this
    if my monthly CTC is 10000 after all calculations, the balance figure should be get added automatically in the special allowance wagetype, when we create basicpay infotype.
    is it possible?

    Hi,<br>
    Try any one of the indirect valuation module in T511:(only name says country specific but it should work for any country))<br>
    1.SAPAC (for Spain only)<br>
    ******************************<br>
    Processing agreed salary:<br>
    MODULE = 'SAPAC'<br>
    MOLGA = Country indicator in T001P<br>
    BWLGA = indirectly evaluated wage type<br>
    Module variant 'D'<br>
    A basic remuneration is derived from the GWCHT weighted sum of all the basic wage types from the entries in the "Basic Wage Type Evaluation" step in the IMG.<br>
    The value of the indirectly evaluated wage type is the difference between the basic remuneration and the monthly salary run through payroll.<br>
    Module variant 'I'<br>
    A basic remuneration is derived from the GWCHT weighted sum of all the basic wage types from the entries in the "Basic Wage Type Evaluation" step in the IMG. All these basic wage types are indirectly evaluated.<br>
    The value of the indirectly evaluated wage type is the difference between the basic remuneration and the monthly salary run through payroll.<br>
    Module variant 'J'<br>
    Corresponds to module variant 'I', but the basic wage types are not reduced.<br>
    Module variant 'O'<br>
    Corresponds to module variant 'I'. In addition, basic wage types are returned unweighted in payroll.<br>
    <br>
    ******************************<br>
    2.DIFFR (only for public service employees in Germany)<br>
    ******************************<br>
    Module variants 'A', 'B', 'C'<br>
    The difference is derived from the valuation with module VERGL and the valuation with module TARIF.<br>
    ******************************<br>
    3.FCOEF (France)<br>
    ******************************<br>
    Calculate monthly wage based on collective agreement coefficients.<br>
    Module variant "1", "2", "3"<br>
    Coefficients are wage types and must be entered in infotype 0008 Basic pay. The value of the coefficients is transferred to field "Number". The wage type with "FCOEF" indirect valuation is transferred to infotype 0008, adds these coefficients (in T539J) and calculates the monthly wage in the field Amount as follows:<br>
    Amount = coefb/CFCST + (Number - coefc ) * coefa/CFCST<br>
    coefa corresponds to COE1A of table T511K in variant 1,  COE2A in variant 2 and COE3A in variant 3.
    coefb corresponds to COE1B, COE2B or COE3B.<br>
    coefc corresponds to COE1C, COE2C or COE3C.<br>
    coefa and coefb are divided by the CFCST constant of table T511K so that the accuracy can be checked.<br>
    Module variant " "<br>
    No coefficient is entered in infotype 0008; only one wage type with "FCOEF" indirect valuation is available. The coefficient value is read from T510 and transferred to the field "Number". The field "Amount" is calculated in the same way as in variants "1", "2"  and "3" but with the constants COE0A, COE0B, COE0C of table T511K.<br>
    Best suited is option 3 and 1. you need to explore it.<br>
    Good luck<br><br>
    Thanks,
    Amosha
    <br><br>"Known is a drop & unknown is an OCEAN!"

  • Can we pay allowances from payroll and actuals against receipts from AP?

    Hi,
    We are implementing SAP Travel Management in Australia. The requirement is to pay allowances from payroll and expenses against receipts thru accounts payable. Is it possible using SAP Travel Expenses?

    Have a look at the documentation here ; -
    Integration with payroll
    http://help.sap.com/erp2005_ehp_04/helpdata/en/b6/cd9ec949e911d189060000e8322f96/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/en/b6/cd976f49e911d189060000e8322f96/frameset.htm
    If you wish to pay advances through payroll then you are customising the table V_T702N_A and this pays advance through payroll and then after trip is settle, retro active accounting is triggered and advance is deducted from expenses which are settled through accounting.
    Check the IMG documentation for neccessary customising entries.
    Payroll integration is handled through feature TRVPA in PE03 and you can check the documentation here also.

  • 1 PERNER to be assigned to 2 Position-India Payroll

    Hi,
    I have this scenario from the client where a QA-GM hold 2 positions of Quality Assurance Manager & Quality Controll manager.
    I have INDIA Payroll to be run.when i hire the person 0001 i have hired the QA MGR position as primary position assignment,what about QC Manager position i am wondering how to go about assigning the QC position to the GM as well & what are the possible impact i am going to face at the time of payroll run.the percentage distribution would be QA MGR-60% & QC MGR-40 % for 3 to 4 months.
    Can i expect to have some knowledge sharing on the same,how to go about the same.
    I need to update the client on this .
    Edited by: srssaphr09 on May 11, 2011 7:25 AM

    Hi,
    I can only think this is a problem with the DHCP scopes or something?
    Are the phones getting their leases from the router or from another source as this may explain why rebooting it didn't help?
    Also, what version of code are you using on the router?
    Please rate useful posts..

  • Customized Payslip for India payroll

    Hi all,
    I am trying to create a new customized payslip using SAP HR FORMS for India payroll. Via which i can provide customized payslip with
    different fonts, sizes & logo inclusion also. (which all can be done in SMARTFORMS)
    I have used HRFORMS t code and created new FORM named as YCUST_PAYSLIP.
    While Activation the FORM I got an problem in SAPFORM and i have cleard.
    While creating the Print program i am getting an Error as follows
    "Generated print program /1PYXXFO/YCUST_PAYSLIP_PRNT contains a syntax error in line 9 of include /1PYXXFO/YCUST_PAYSLIP_PAYR."
    which is pointing to the code line # 9  =>   data lo_pay_result_xx type ref to cl_hr_pay_result_in.
    And I have found that the class cl_hr_pay_result_in which is not available with the standard in my server.
    Do any body came accross this issue, and any ideas to solve this issue.
    System details.
    SAP 4.7, SP 66
    Regards,
    Navas

    hi..
    Thanks for your reply.
    I checkd the FM - /1PYXXFO/YCUST_PAYSLIP_PRNT. it is not available. U mean to say the FM shld be created in the in backend in same name of print program..?
    And, FORM CLASS which I used is - PAYSLIP Remuneration Statement (which got assigned when i copied HR FORM country gorup 99 and created an country grp 40 -India), even the from class u mentioned CEDT is not available in HRFORMS.
    Suggest me.
    Rgds,
    Navas

  • Attention: Oracle India Payroll Customers

    Dear Oracle India Payroll Customers,
    A) New Features/Changes in Product
    1. Proposed ESI Statutory Patch (5583887) Effective from 1st October, 2006, the Wage Ceiling for coverage of employees under the ESI Act is revised from Rs.7,500 p.m. to Rs.10,000 p.m. A patch (Patch Number 5583887) is scheduled for a tentative release by 20th Oct 06.
    B) R11i HRMS Product Information
    1. For the latest Oracle HRMS Product Family - Release 11i Information, please see Metalink Note:135266.1.
    2. India User Guide Oracle HRMS Supplement guide for India (Release 1.4) is updated with features of IN.D patch. Please refer Note ID 297146.1 in the Metalink.
    C) Other Information
    1. MetaLink - http://metalink.oracle.com
    MetaLink is a customer resource provided by Oracle World-wide Support. The Applications section of Metalink contains all the latest product documentation and documentation updates for Oracle’s products.
    2. Metalink iTAR profiles:
    Please update all iTar profiles on Metalink with any updates to Database Version, Product Version, and/or contact information
    Metalink -> UserProfile button ->Tar Profiles
    Regards,
    Greg

    Ddi you try processing both the medical benefit element and medical bills element ? One of these should have the formula attached to it to calculate/adjust taxable and non-taxable values applicable for the year.
    Usually tax calculations and exemption calculations are done for the entire year during each payroll run. So ,i suppose if 12500 was taxable in last 11 months and employee gave bills for 13000 in March, only 2000 should be taxable. So -10500 should come in March, so that annual value of 2000 (12500-10500) is taxable

  • Guide for configuring the Claims module for India Payroll

    Hi all,
    I am configuring the Claims module for India Payroll.
    Can anyone please help me with a step by step guide.
    Currently I have maitained a few types of claims under spro->Payroll->India Payroll -> ESS->Advance Claims->Reimbursement Types->Maintain Attributes of Reimbursement Types.
    But when I try to submit any claim request from portal, its giving the error "Employee number not maintained for : 00005007".
    It would be helful if anyone can provide help regarding activating the claims workflow (WS18900023) as well.
    Thanks in advance,
    Sattam.

    Hi Praveen,
    Thanks a lot for ur reply. I have done those configurations, still I will check again.
    I have identified another error. When I try to add a start event to the worlfow WS18900023, and activate it.....its giving the error "BUS1009 cannot be executed" .
    Is this the cause of malfunction? If yes how to solve it?
    Pls Help
    Sattam.

  • Mid year Go-Live (India Payroll)

    Hi,
    My client's business is now in ECC 5.0,
    Now we are going live on 01.01.2010 in ECC 6.0, this is not upgradation project, its a fress implementation so please tell me what all are precautions i need to take before going live on 01.01.2010. as this is a mid year Go-Live.
    And is there any problem for legal forms like Form 16, form 24 Q, pension and PF, because first 9 months results are in ECC 5.0 and next 3 months means 01.01.2010. 01.02.2010 and 01.03.2010 will be in ECC 6.0.
    Help me
    Thanks
    Chaithanya Reddy

    Hi
    Using the Mid Year Go Live functionality, you can upload the final payroll results from your legacy data
    systems into the SAP system. The final payroll results are the actual payments and deductions of an
    employee salary. They must include statutory, non-statutory deductions (including third party deductions),
    arrears and the contributions of the employer.
    Data transfer INLK Payroll Tables T558B and T558C Upload program (HINUULK0), which reads the
    payroll results information from the spreadsheet template, and uploads it into the Payroll Account
    Transfer: Payroll Periods table (T558B) and Payroll Account Transfer: Old Wage Types table (T558C).
    The system reads these tables for the purpose of payroll conversion.
    Transfer of payroll account from Table 5558B,C - India schema (INLK), which when run as a part of
    the payroll program, HINCALCO,
    For transferring your legacy data and uploading the same into the SAP system, you are provided with the:
    HR Template - Payroll.xls (Microsoft Excel) file, containing templates that drive the data load
    programs, for converting the legacy data.
    Data load program(HINUULK0 ) that facilitates the transfer of data into the SAP system. It loads the
    data saved in the spreadsheet into the Payroll Account Transfer: Payroll Periods table (T558B) and
    Payroll Account Transfer: Old Wage Types table (T558C) in the SAP system. These are the data
    conversion tables for the Mid Year Go Live functionality.
    Standard executable schema (INLK) that formats the uploaded legacy data, into SAP Payroll Period results and stores the result in relevant payroll cluster tables
    You need to consider all the relevant Primary and secondary wage types for respective accurate tax calculation while uploading in the table  for the individual period
    All wage components that has been paid to the employees
    like Basic , HRA, conveyance need to upload with respective wage type code which you define
    You have to take all deductions that has deducted to the employee
    Transport, Canteen etc
    You have to use the system generated wage types to update the tax and statutory data
    ex - Income tax - /460
           PF - /3f1
    You have to take the exemption wage type for HRA , Conveyance
    /3R1 etc....
    Hope you got some idea
    Regards
    Rajeshk

  • Pension payment India Payroll

    Dear Gurus,
    When we change the status as retiree and we need to pay pension why cant we pay through IT0008 and need to pay through IT0014/15.
    Also in case of death of the employee pension needs to be paid to nominee.Now where do we maintain nominee bank details.Since IT0009 is basically for employee data can we store nominee bank details also here.
    Please advice.

    Hi,
    1-Copy IT0008 from the date of retirement ie if retired on 31.07.2011,copy from 01.08.2011 and make the record as blank so that no amount is displayed if he comes in normal payroll. OR
    2-Maintain IT0003 column Run payroll upto till 31.07.2011.OR
    3-Maintain IT 0001 payroll area separately so that he is not included in other payroll.
    If these match your scenario check if not again post your query if any.
    Salil

  • Termination workbench--India Payroll

    Hi All,
    I have configured all the related nodes for termination workbench. I am unable to capture the automatic calculation of notice pay amount.
    Can you share your inputs where am i missing?
    Regards
    58017

    http://help.sap.com/saphelp_erp2005/helpdata/en/93/c8ac24880c4896a0ea0f8d70d59b93/frameset.htm

  • URGENT:Income Tax Problem in Payroll

    Hi dear friends,
    when India payroll is run the Conveyance Allowance is not considering for Income TAX Exemption.
    I had assigned the TAX Code correctly with limit 800 per month.
    When i check the technical Wage Type /130 ,it contains only HRA amount which is having tax exemption.
    My conveyance allowance Wage type is in IT 0008.
    I am struggling with this problem @ client location.
    Please give a help by checking out this problem
    <b>Wishing you all a Happy X-Mas and Prosperous New Year
    Regards</b>

    Hi Abhilash,
    Please check the following tables.
    1.  V_T7INCA----
    Conveyance Types.
    2.  V_T7INC9----
    Conveyance Allowance Eligibility. Here You need to assign
                                 Grouping for Allowances for each Conveyance Type and WT 
                                 for Conveyance.
    3.V_T7INT9----
    Taxability of Wage Types. Here You need to assign the
                             Conveyance WT to Taxcode SCNV with Exemption amount of
                             Rs 800 and Tax Type is 'Tax amount is Limit Based' and
                             frequency is 'Monthly'.
    4 You have to maintain table V_T7INA9 with that WT.
    Try with this.....
    Good Luck
    Laxmi

  • Error while processing Payroll

    Hi Experts,
    Please help...
    While processing Payroll getting an error.
    Please lower the loan repayment in IT0045.
    His gross pay is 13974 and there is a deduction of Rs.8120/- (including PF ESI and other loans deduction with interest amount) and Nett payable to the employee is 5854/-.  Though there is amount payable, the pay roll is not running successfully and the following error occurs.
    The same error occured during last month pay roll (May'10) and we have given salary advance and recovered the same in the same payroll and then we were able to process the salary.
    Amount deducted per month is 1333.33 even after rounding off getting the same error.
    Regards,
    SRAJ.

    1BAS Basic Salary                 5,670.00  INR          0.00                0.00
      1CON Conveyance Allowanc            800.00  INR          0.00                0.00
      1HRA House Rent Allowanc          2,835.00  INR          0.00                0.00
      1SPL Special Allowance            1,669.00  INR          0.00                0.00
      1PRI Prodcution Incentiv          3,000.00  INR          0.00                0.00
    Total                       13,974.00  INR          0.00                0.00
    0015 Additional Payments                 1EDU                         30.04.2009-30.04.2009
      1EDU Education Allowance          3,000.00  INR          0.00                0.00
    0015 Additional Payments                 1EDU                         29.04.2010-29.04.2010
      1EDU Education Allowance          3,000.00  INR          0.00                0.00
    0015 Additional Payments                 1EMR                         28.02.2010-28.02.2010
      1EMR Emergency Advance          120,000.00  INR          0.00                0.00
    0015 Additional Payments                 1LTA                         30.11.2009-30.11.2009
      1LTA Leave Travel Allowa          3,900.00  INR          0.00                0.00
    0015 Additional Payments                 1ONT                         31.03.2010-31.03.2010
      1ONT Other Payments(Not             855.00  INR          0.00                0.00
    0015 Additional Payments                 1OPM                         30.09.2009-30.09.2009
      1OPM Other Payments (Tax            810.00  INR          0.00                0.00

  • A FUNCTION MODULE FOR THE HR MODULE FOR PAYROLL OF EMPLOYEES

    hi,
    i want some a function module or code where i need to get the payroll details like the basic pay ,hra,special allowance,medical allowance,other allowance of an employee on the monthly basis.
    the data that i have on ot os not on the basis of months it contains datd of more than one month.like the baisc pay of an employee is given on a radom day basis of more than one month.
    but i need to bifercatethe data on monthly basis.
    waiting for the reply.
    thanks and regards

    Hi,
    Use the fun module
    RP_FILL_WAGE_TYPE_TABLE_EXT
    which willget PA0008 results.
    but to get the real payroll results you have to import data from clusters by writing the program. Data will be fetch from RT and CRT internal tables based on the Wage Types
    see the sample code:
    report zporgr0100
           line-size 252
           line-count 60(1)
           no standard page heading
           message-id zndc.
    Database Tables & Infotypes
    tables: pcl1,        " HR Cluster1
            pcl2,        " HR Cluster1
            pa0003,      " Master data - Payroll Status
            cskt,        " Cost Center Texts
            t528t,       " Positions Texts
            t513s,       " Job Titles
            pernr,       " Logical PNP
            t001p,       " Personnel Subarea
            t500p,       " Personnel Area
            t501,        " Employee Group
            t503k,       " Employee Subgroup
            csks.        " Cost Center
    infotypes:0000,0001.
    *include rpclst00.
    include rpc2rx00.
    include rpc2rxx0.
    include rpc2cd00.
    *include rpc2ps00.
    *include rpc2pt00.
    *include rpcfvp00.
    *include rpcfdc10.
    *include rpcfdc00.
    include rpppxd00.
    include rpppxd10.
    Declaration of Internal Tables
    Internal Table for Output Data
    data: begin of rep_tab occurs 0,
            kostl like pa0001-kostl,      " Cost Center
            pernr like pa0001-pernr,      " Personal Number
            ename like pa0001-ename,      " Employee Name
            ctext like cskt-ltext,        " Cost Center Text
            ptext like t528t-plstx,       " Position Text
            ot1   type p decimals 2,      " Jan OT Amount
            ot2   type p decimals 2,      " Feb OT Amount
            ot3   type p decimals 2,      " Mar OT Amount
            ot4   type p decimals 2,      " Apr OT Amount
            ot5   type p decimals 2,      " May OT Amount
            ot6   type p decimals 2,      " Jun OT Amount
            ot7   type p decimals 2,      " Jul OT Amount
            ot8   type p decimals 2,      " Aug OT Amount
            ot9   type p decimals 2,      " Sep OT Amount
            ot10  type p decimals 2,      " Oct OT Amount
            ot11  type p decimals 2,      " Nov OT Amount
            ot12  type p decimals 2,      " Dec OT Amount
            ott   type p decimals 2,      " Total OT Amount
          end of rep_tab.
    Declaration of Variables
    data: v_mon(2) type n,                   " Month
          v_no     type i,                   " Data Lines
          v_year(4)  type c,                 " Year
          v_date   like sy-datum,            " Date
          v_date1  like sy-datum,            " Date
          v_seqnr  like  pc261-seqnr.        " Sequence No.
    Declaration of Constants
    data: c_type   like hrp1001-otype  value 'S',  " Object Type
          c_kokrs  like cskt-kokrs value '1000',   " Controlling Area
          c_date1  like sy-datum value '18000101', " Date
          c_date2  like sy-datum value '99991231', " Date
          c_x       type c value 'X',              " Sign
         c_mon(2)  type c value '01',             " Month
          c_val1(2) type c value '31',             " Date
          c_val2(2) type c value '12',             " Month Type
          c_val    like p0041-dar01 value '01',    " Date Type
          c_lgart1 like p0008-lga01 value '0722',  " Wage Type
          c_lgart2 like p0008-lga01 value '0723',  " Wage Type
          c_1(2)   type n value '01',                           " Month1
          c_2(2)   type n value '02',                           " Month2
          c_3(2)   type n value '03',                           " Month3
          c_4(2)   type n value '04',                           " Month4
          c_5(2)   type n value '05',                           " Month5
          c_6(2)   type n value '06',                           " Month6
          c_7(2)   type n value '07',                           " Month7
          c_8(2)   type n value '08',                           " Month8
          c_9(2)   type n value '09',                           " Month9
          c_10(2)  type n value '10',                           " Month10
          c_11(2)  type n value '11',                           " Month11
          c_12(2)  type n value '12'.                           " Month12
    Selection-screen
    parameters:
      p_year like pc2b0-pabrj obligatory.       " Payroll Year
    At selection-screen
    at selection-screen.
    Validate the Selection Screen fields
      perform validate_screen.
    Start-of-Selection
    start-of-selection.
    Selection of Period
      perform get_period.
    Get PERNR from LDB
    get pernr.
    Get the Master data from infotype 0001
      perform get_master_data.
    Top-of-page
    top-of-page.
    Write the Report and Column Headings
      perform top_of_page.
    End-of-Page
    end-of-page.
      write /1(252) sy-uline.
    End-of-Selection
    end-of-selection.
    Display the Output Report.
      perform display_report.
    Form-Routines
    *&      Form  validate_screen
    Validation of selection Screen fields
    form validate_screen.
    Validation of Cost Center
      clear csks.
      if not pnpkostl[] is initial.
        select single kostl
          into csks-kostl
          from csks
          where kostl in pnpkostl.
        if sy-subrc <> 0.
          message e999 with 'Invalid Cost Center'(003).
        endif.
      endif.
    Validation of Personnel Number
      clear pa0003.
      if not pnppernr[] is initial.
        select pernr
        from pa0003 up to 1 rows
          into pa0003-pernr
          where pernr in pnppernr.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Personal Number Entered'(002).
        endif.
      endif.
    Validation of Personnel Area
      clear t500p.
      if not pnpwerks[] is initial.
        select persa
        from t500p up to 1 rows
          into t500p-persa
          where persa in pnpwerks.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Personnel Area Entered'(001).
        endif.
      endif.
    Validation of Personnel Sub Area
      clear t001p.
      if not pnpbtrtl[] is initial.
        select btrtl
        from t001p up to 1 rows
          into t001p-btrtl
          where btrtl in pnpbtrtl.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Personnel Sub Area Entered'(037).
        endif.
      endif.
    Validation of Employee Group
      clear t501.
      if not pnppersg[] is initial.
        select persg
        from t501 up to 1 rows
          into t501-persg
          where persg in pnppersg.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Employee Group Entered'(038).
        endif.
      endif.
    Validation of Employee Sub Group
      clear t503k.
      if not pnppersk[] is initial.
        select persk
        from t503k up to 1 rows
          into t503k-persk
          where persk in pnppersk.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Employee Sub Group Entered'(039).
        endif.
      endif.
    endform.                  "validate_screen
    *&      Form  get_period
    Get the Correct Period based on Selection screen selection
    form get_period.
      clear: v_year,v_mon, v_date, v_date1.
      v_year = sy-datum+0(4).
      v_mon  = sy-datum+4(2).
      if pnptimr1 = c_x.      " Current Date
        pnpbegda = sy-datum.
        pnpendda = sy-datum.
      elseif pnptimr2 = c_x.  " Current Month
        concatenate v_year v_mon c_val into v_date.
        concatenate v_year v_mon c_val1 into v_date1.
        pnpbegda = v_date.
        pnpendda = v_date1.
      elseif pnptimr3 = c_x.  " Current Year
        concatenate v_year c_val c_val into v_date.
        concatenate v_year c_val2 c_val1 into v_date1.
        pnpbegda = v_date.
        pnpendda = v_date1.
      elseif pnptimr4 = c_x.  " Upto Today
        pnpbegda = c_date1.
        pnpendda = sy-datum.
      elseif pnptimr5 = c_x.  " From Today
        pnpbegda = sy-datum.
        pnpendda = c_date2.
      else.
        if ( pnpbegda is initial and pnpendda is initial ).
          pnpbegda = c_date1.
          pnpendda = c_date2.
        elseif pnpbegda is initial and not pnpendda is initial.
          pnpbegda = c_date1.
          pnpendda = pnpendda.
        elseif not ( pnpbegda is initial and pnpendda is initial ).
          pnpbegda = pnpbegda.
          pnpendda = pnpendda.
        endif.
      endif.
    endform.              "get_period
    *&      Form  get_master_data
    Get the Master Data from Database Tables PA0001,0002,0003
    form get_master_data.
    Get data from Respective Infotypes
      rp_provide_from_last p0001 space pnpbegda pnpendda.
      if p0001-kostl in pnpkostl.
        rep_tab-kostl = p0001-kostl.
        rep_tab-pernr = p0001-pernr.
        rep_tab-ename = p0001-ename.
    Get the Position Text
        clear t528t-plstx.
        select single plstx into t528t-plstx from t528t
                where plans = p0001-plans and
                      otype = c_type and
                      sprsl = sy-langu.
        if sy-subrc = 0.
          rep_tab-ptext = t528t-plstx.
        endif.
    Get the Cost Center Text
        clear cskt-ltext.
        select single ltext into cskt-ltext from cskt
                where spras = sy-langu and
                      kokrs = c_kokrs and
                      kostl = p0001-kostl.
        if sy-subrc = 0.
          rep_tab-ctext = cskt-ltext.
        endif.
    Get the Overtime Payment Data
        perform get_ot_data.
        rep_tab-ott = rep_tab-ot1 + rep_tab-ot2 + rep_tab-ot3 +
                      rep_tab-ot4 + rep_tab-ot5 + rep_tab-ot6 +
                      rep_tab-ot7 + rep_tab-ot8 + rep_tab-ot9 +
                      rep_tab-ot10 + rep_tab-ot11 + rep_tab-ot12.
        append rep_tab.
        clear  rep_tab.
      endif.
      sort rep_tab by kostl pernr.
      delete rep_tab where kostl = ' '.
      delete rep_tab where ott = 0.
    endform.                 "get_master_data
    *&      Form  get_ot_data
    Get the Overtime Payment Data
    form get_ot_data.
      cd-key = pernr-pernr.
      rp-imp-c2-cd.
      sort rgdir by seqnr.
    To get sequence number for the payroll period
      loop at rgdir where void     is initial
                        and reversal is initial
                        and outofseq is initial
                        and srtza    eq 'A'.
        if rgdir-fpper+0(4) = p_year.
    To consider offcycle run data
          if not rgdir-ocrsn is initial.
            v_seqnr = rgdir-seqnr.
            exit.
          endif.
          v_seqnr = rgdir-seqnr.
        endif.
        if not v_seqnr is initial.
          perform import_rx.
        endif.
        perform process_wagetypes.
      endloop.
    endform.                 "get_ot_data
    include rpppxm00.
    *&      Form  Import_rx
    Import the RX data from Clusters
    form import_rx.
      rx-key-pernr = cd-key-pernr.
      rx-key-seqno = v_seqnr.
      rp-init-buffer.
      rp-imp-c2-rx.
    endform.                    " Import_rx
    *&      Form  Process_wagetypes
    Calculate the Overtime Amount based on Wage types
    form process_wagetypes.
      loop at rt.
        if  rt-lgart = c_lgart1 or rt-lgart = c_lgart2.
          if rgdir-fpper+0(4) = p_year.
            v_mon = rgdir-fpper+4(2).
            case v_mon .
              when c_1.
                rep_tab-ot1 = rep_tab-ot1 + rt-betrg.
              when c_2.
                rep_tab-ot2 = rep_tab-ot2 + rt-betrg.
              when c_3.
                rep_tab-ot3 = rep_tab-ot3 + rt-betrg.
              when c_4.
                rep_tab-ot4 = rep_tab-ot4 + rt-betrg.
              when c_5.
                rep_tab-ot5 = rep_tab-ot5 + rt-betrg.
              when c_6.
                rep_tab-ot6 = rep_tab-ot6 + rt-betrg.
              when c_7.
                rep_tab-ot7 = rep_tab-ot7 + rt-betrg.
              when c_8.
                rep_tab-ot8 = rep_tab-ot8 + rt-betrg.
              when c_9.
                rep_tab-ot9 = rep_tab-ot9 + rt-betrg.
              when c_10.
                rep_tab-ot10 = rep_tab-ot10 + rt-betrg.
              when c_11.
                rep_tab-ot11 = rep_tab-ot11 + rt-betrg.
              when c_12.
                rep_tab-ot12 = rep_tab-ot12 + rt-betrg.
            endcase.
          endif.
        endif.
      endloop.
    endform.          "process_wagetypes
    *&      Form  top_of_page
    Write the Report and Column Headings
    form top_of_page.
      format color col_heading on.
      write: /1(252) 'NATIONAL DRILLING COMPANY'(010) centered,
             /1(252) 'Overtime Payments Details'(011) centered.
      format color off.
      if pnptimr1 = c_x.      " Current Date
        write: /2 'Period From     :'(036), sy-datum, 'To:'(006), sy-datum.
      elseif pnptimr2 = c_x.  " Current Month
        write: /2 'Period From     :'(036), v_date, 'To:'(006), v_date1.
      elseif pnptimr3 = c_x.  " Current Year
        write: /2 'Period From     :'(036), v_date, 'To:'(006), v_date1.
      elseif pnptimr4 = c_x.  " Upto Today
        write: /2 'Period From     :'(036), c_date1, 'To:'(006), sy-datum.
      elseif pnptimr5 = c_x.  " From Today
        write: /2 'Period From     :'(036), sy-datum, 'To:'(006), c_date2.
      else.
        if ( pnpbegda is initial and pnpendda is initial ).
          write: /2 'Period From     :'(036), c_date1, 'To:'(006), c_date2.
        elseif pnpbegda is initial and not pnpendda is initial.
          write: /2 'Period From     :'(036), c_date1, 'To:'(006), pnpendda.
        elseif not ( pnpbegda is initial and pnpendda is initial ).
          write: /2 'Period From     :'(036), pnpbegda,
                   'To:'(006), pnpendda.
        endif.
      endif.
      write: 219 'Report Run Date:'(018), sy-datum.
      if not pnpkostl[] is initial.
        if pnpkostl-high is initial.
          write: /2 'Cost Center     :'(004), pnpkostl-low,
                219 'Time           :'(020), sy-uzeit.
        else.
          write: /2 'Cost Center From:'(005), pnpkostl-low+7(3),
                                    'To:'(006), pnpkostl-high,
                219 'Time           :'(020), sy-uzeit.
        endif.
      else.
        write: /219  'Time           :'(020), sy-uzeit.
      endif.
      if not pnppernr[] is initial.
        if pnppernr-high is initial.
          write: /2 'Personal Number :'(007), pnppernr-low,
                 219 'User           :'(021), sy-uname.
        else.
          write: /2 'Personal No.From:'(008),  pnppernr-low,
                                    'To:'(006), pnppernr-high,
                 219 'User           :'(021), sy-uname.
        endif.
      else.
        write: /219 'User           :'(021), sy-uname.
      endif.
      write: /219 'Page No        :'(022), sy-pagno.
      format color col_heading.
      write /1(252) sy-uline.
      write:/1 sy-vline, 10 sy-vline,
            41 sy-vline,
            67 sy-vline, 68(167) 'Overtime Payments(Dirhams)'(013) centered,
           235 sy-vline,252 sy-vline.
      format color col_heading.
      write:/1 sy-vline,  2(8)  'Emp #'(019) centered,
            10 sy-vline, 11(30) 'Employee Name'(012) centered,
            41 sy-vline, 42(25) 'Position'(014) centered,
            67 sy-vline, 68(167)  sy-uline,
           235 sy-vline,236(16)  'Total'(017) centered,
           252 sy-vline.
      write:/1 sy-vline, 10 sy-vline,
            41 sy-vline,
            67 sy-vline, 68(13)  'JANUARY'(024) centered,
            81 sy-vline, 82(13)  'FEBRUARY'(025) centered,
            95 sy-vline, 96(13)  'MARCH'(026) centered,
           109 sy-vline,110(13)  'APRIL'(027) centered,
           123 sy-vline,124(13)  'MAY'(028) centered,
           137 sy-vline,138(13)  'JUNE'(029) centered,
           151 sy-vline,152(13)  'JULY'(030) centered,
           165 sy-vline,166(13)  'AUGUST'(031) centered,
           179 sy-vline,180(13)  'SEPTEMBER'(032) centered,
           193 sy-vline,194(13)  'OCTOBER'(033) centered,
           207 sy-vline,208(13)  'NOVEMBER'(034) centered,
           221 sy-vline,222(13)  'DECEMBER'(035) centered,
           235 sy-vline,252 sy-vline.
      format color off.
      write /1(252) sy-uline.
    endform.            "top_of_page
    *&      Form  Display_report
    Write the Report Output
    form display_report.
      clear v_no.
      describe table rep_tab lines v_no.
      if v_no = 0.
        message i999 with
         'No Data found for the entered Selection'(015).
      endif.
      loop at rep_tab.
        format color 3.
        at new kostl.
          read table rep_tab index sy-tabix.
          write:/1 sy-vline, 2(12) 'Cost Center:'(009),
                 14(10) rep_tab-kostl,
                 25(30) rep_tab-ctext,
                252 sy-vline.
          format color off.
          write /1(252) sy-uline.
        endat.
        format color col_normal.
        write: /1 sy-vline, 2(8)   rep_tab-pernr,
              10 sy-vline, 11(30)  rep_tab-ename,
              41 sy-vline, 42(25)  rep_tab-ptext,
              67 sy-vline, 68(13)  rep_tab-ot1 no-zero,
              81 sy-vline, 82(13)  rep_tab-ot2 no-zero,
              95 sy-vline, 96(13)  rep_tab-ot3 no-zero,
             109 sy-vline,110(13)  rep_tab-ot4 no-zero,
             123 sy-vline,124(13)  rep_tab-ot5 no-zero,
             137 sy-vline,138(13)  rep_tab-ot6 no-zero,
             151 sy-vline,152(13)  rep_tab-ot7 no-zero,
             165 sy-vline,166(13)  rep_tab-ot8 no-zero,
             179 sy-vline,180(13)  rep_tab-ot9 no-zero,
             193 sy-vline,194(13)  rep_tab-ot10 no-zero,
             207 sy-vline,208(13)  rep_tab-ot11 no-zero,
             221 sy-vline,222(13)  rep_tab-ot12 no-zero,
             235 sy-vline,236(16)  rep_tab-ott no-zero,
             252 sy-vline.
        at end of kostl.
          write /1(252) sy-uline.
        endat.
        format color off.
        at last.
          sum.
          format color 1.
          write: /1 sy-vline,
                10 sy-vline, 11(30) 'Total'(017) centered,
                41 sy-vline,
                67 sy-vline, 68(13)  rep_tab-ot1 no-zero,
                81 sy-vline, 82(13)  rep_tab-ot2 no-zero,
                95 sy-vline, 96(13)  rep_tab-ot3 no-zero,
               109 sy-vline,110(13)  rep_tab-ot4 no-zero,
               123 sy-vline,124(13)  rep_tab-ot5 no-zero,
               137 sy-vline,138(13)  rep_tab-ot6 no-zero,
               151 sy-vline,152(13)  rep_tab-ot7 no-zero,
               165 sy-vline,166(13)  rep_tab-ot8 no-zero,
               179 sy-vline,180(13)  rep_tab-ot9 no-zero,
               193 sy-vline,194(13)  rep_tab-ot10 no-zero,
               207 sy-vline,208(13)  rep_tab-ot11 no-zero,
               221 sy-vline,222(13)  rep_tab-ot12 no-zero,
               235 sy-vline,236(16)  rep_tab-ott no-zero,
               252 sy-vline.
          write /1(252) sy-uline.
        endat.
        format color off.
      endloop.
    endform.          "display_report
    reward points if useful
    regards,
    Anji

Maybe you are looking for

  • CS6 Mouse Wheel Scrolling for Fonts in Character Panel

    in Illustrator CS6 I can no longer use my mouse wheel to scroll the list of fonts [which appear when you click the down arrow next to the font family] in the Character control panel. I could do this in CS5. Anyone know how to fix this? I think it dos

  • WIKI server upgrade 10.7 to 10.x lost calendar.

    Just pulled the trigger and updated my MacMini server that was running 10.7.x to Yosemite 10.x. After the upgrade I checked and a WIKI that has been active for close to 1/yr is not %100. The base page, images, and documents are there but the calendar

  • IPad 2 wont stay connected to wifi after iOS 6 update

    Since my latest update a few weeks ago, my ipad wont stay connected to wifi networks.  Has anyone found a solution to this? Why would the latest update have impacted this function?

  • Analysis tab in complaint

    Hi all, In CRMD_order for complaint, there is analysis tab in transaction data as well as at item level. where as in webui, am not able to find out that tab. even when i went to the personalize;;; its missing there. Is there any way to keep that tab

  • Media query

    Hi everyone I m having a little program with a website which I m putting together. The site is at this url address. http://www.dreamaustraliastudytours.com.au/Test/index102/index.html. ' So far I have built up the following media query: @media only s