Salary Compensation Program

Hi guys,
I have a problem with my program that I just can't figure out why the program can't calculate the weeklypay ... it keeps asking to enter the weekelypay ... so can you guys help me on that. I really thank you much ..
<script language="Javascript">
document.write("<body bgcolor='lightcoral'>") ;
document.write("<h1><font color='white'> Salary Compensation Program </font></h1>");
document.write("<table width='60%' border='1' align='center'>");
var noWeek = 0,
weeklyPay,
totalPay = 0;
noWeek = window.prompt("Please enter number of weeks", "1");
for (var count = 1; count <= noWeek; ++count)
do
weeklyPay = window.prompt("Enter weekly pay: ","200");
if (weeklyPay < 200 || weeklyPay > 4000)
window.alert ("Error!! Number must be between 200 and 4000");
while (weeklyPay > 200 || weeklyPay < 4000)
totalPay = totalPay + weeklyPay;
document.write("<tr>");
document.write("<td> Week" + count + "</td>");
document.write("<td>"+ WeeklyPay + "</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td> Total Pay </td>");
document.write("<td>" + totalPay + "</td>");
document.write("</tr>");
document.write("</table>");
</script>
Script by PaulWinn

nrlz thanks, but it doesn't valid. what can I do ?There are two other things you did wrong:
1) You spelt weeklyPay with a capital W whereas it should be in lowercase.
2) The bracket is in the wrong position. You should move it to the very bottom.
totalPay = totalPay + weeklyPay;
document.write("<tr>");
document.write("<td> Week" + count + "</td>");
document.write("<td>"+ WeeklyPay + "</td>");
document.write("</tr>");
} //this bracket is in the wrong place
document.write("<tr>");
document.write("<td> Total Pay </td>");
document.write("<td>" + totalPay + "</td>");
document.write("</tr>");
document.write("</table>");
} //move the bracket here }

Similar Messages

  • ECM Plan Compensation Program Screen MSS

    Hi Experts ,
    We are implementing ECM and we have requirement that in MSS when manger of X country logs in and plans for compensation program , its ask to select the  compensation review from the dropdown list . Currently it shows all the compensation reviews in the drop down list But i want that manager of X country should  have review period  of his cycle(march) and compernation area and not  of Y  country's (may cycle) in drop down list.
    Can we restrict these values of drop down list  according to  specific cycle of coutry in ECM
    Need your prompt response ,
    Thanks in advance for answers!!!
    rani gupta

    Can you explain what you did to get the BADI to work? Thanks.
    Edited by: JBaines on Feb 8, 2012 11:49 PM

  • Question : Standard Salary compensation Iview

    Hello all,
    I'd like to know a particular thing about the standard Iview Total Compensation Statement.
    Today (in March) I earn 1000u20AC each mounth and my manager wants to pay me more in May.
    He will enter in backend my new salary today (in March) with a start date on May 1st.
    So in May, i'll earn 1500u20AC.
    I'd like to know if my new salary (1500u20AC) will be displayed in the Total Compensation Statement Iview today (in March) or at the start date (May 1st).
    Do I have the possibility to work on the date to display information in standard or should I develop a specific Iview?
    Thank you for your answers.
    Regards
    Matthieu

    Hi Matthieu,
    The best place to post this question is in Employee Self-Service forum. Please post your question in the following forum to get a quick response. Good luck.
    SAP ERP HCM Employee Self-Service
    Regards,
    Gopal

  • New salary is not updating in MSS Compensation Planning (ECM)

    Hi
    In MSS Compensation Planning (ECM) iView, when we are applying a percentage increase for a particular employee the new salary column is not updating when we press enter or recalculate. The value is changing intially when we press refresh property for the iView, for the next time the value is not changing even when we press the refresh also.
    Regards
    Suresh

    Hi Suresh,
    What is the solution..
    because we are also facing a similar issúe ..
    our new salary is same as the compensation amount....
    but what we are looking for is
    new salary = compensation amount +annual base salary
    Where do we do this?
    tks rgds
    g3

  • Enterprise Compensation Management - Pay Scale and Pay grade

    Hi Gurus,
                   I would like to like to know my understanding is correct.
    1) ECM supports only Pay Grade (T710) and not Pay scale (T510). If so, company using pay scale will not be able to implement ECM? If not please provide the solution (how ECM can be implemented if company use Pay scale t510).
    2) Can Annual Salary be pro-rated for part-timers, using capacity utilization level (CUL) in IT0008? I configured WT ASAL with reduction '2' in wage type characteristics under section 'Indirect valuation', but when i enter 50% in CUL, it is still reflecting the ASAL for 100%. So SAP does not support CUL for ASAL. if not please let me know what is missing in the configuration.
    What is the best way to handle part-timer?
    3) Show part time salary in compensation planning [ By implementing BADI for Calculation Base] and then convert back to full time salary?
    IT0008 Maintained with the following info.
    e.g. employee work for 20 hrs. a week. (40 hrs. per week for full time)
    CUL is 50%
    Monthly salary is 2000$
    Employee's salary is 1000$ (Actual)
    To sShow 1000 $ in planning worksheet for managers and covert to full time during Activation?
    What is the SAP best practice and recommendation and why?
    Thanks for reading my thread.
    Waiting for reply.
    Thanks
    Regards
    Senthil Bala

    hi suresh
    just a doubt
    when we create the compensation program records 0758 we specify the 1 and 2 program groupings along with the comp area
    so even when we default them to the required paygrade groups
    does the RHECM_CREATE_COMP_PRO  look at the 758 record of the employee and create the records thus excluding any one with less grade group and those messages?

  • Best way to handover offer creation to Compensation team

    Hi,
    In 11i iRecruitment, we have a requirement for the manager to create the offer with all the details except for salary/compensation. Salary is determined by the Compensation team. What is the best way to configure iRecruitment to allow the entry of salary details in the offer by Comp team while the recruiter/manager deals with the rest?
    Is it possible to enter salary details during approval or would the approval chain only allow Approve/Reject without adding/editing information?
    Thanks,
    AD

    Lightroom is not designed to be used by multiple users. A Lightroom Catalog can only be in use by a single user at any point in time. When a Lightroom Catalog is opened the program creates a  file with the catalog name and with a .lock extension. This file prevents any use of the Catalog file and will automatically be deleted when Lightroom is closed. See the screen capture.
    To be specific a "Lightroom License" is a single user license so if there are more than one user, a license would need to be purchased for each user.
    In addition the Catalog file cannot be resident on a network it requires a physical connect to the computer.
    The actual image files can be on a network so that part should not create a problem.

  • ECM Implementation: Custom Infotype instead of IT1005 Planned Compensation

    Hello,
    We are thinking about implementing SAP ECM (incl. MSS). I have seen that OM Infotype 1005 (Planned Compensation) is required to get salary ranges for example.
    In our current OM solution we already have this information stored in a custom Infotype. Does anyone have experience using custom infotypes instead of standard ones in the ECM solution?
    Many thanks
    Lucas

    Hi Lucas,
    Not sure how you are set-up if not using Pay Scale Grades and Levels.  Do you use T710 or T510 at all?  What values are in IT0008 for these fields? 
    In any other change in status other than Activation, the report only changes IT0759-Compensation Program.  So Pay Scale Grade and Level should not be a factor.  If activating the Compensation Program infotype (IT0759), the report is trying to create a new IT0008, so your settings for Features such as TARIF and LGMST and any custom BAdIs should be checked to make sure the IT0008 can be created as required by your customization.  Even so, we use transaction PECM_CHANGE_STATUS (Report RHECM_CHANGE_PROC_STATUS) to activate bonus payments which are not linked to IT0008 but to IT0015 and so they are not tied to a Pay Scale Group or Level.
    Thus, I would need more info to determine why you are experiencing the error message.
    Paul

  • ECM - Infotype 758 - 2nd Program Gropping

    We are using the ECM module.  We store the short term incentive plans on infotype 758 - Compensation Program.  The list that is maintain for the second program grouping has more than 100 plans. The data keying department wants us to remove the discontinued plans so the drop down can me more managable.  We cannot completely remove them because we have historical data that points to those plans.   Also, in the configuration SAP does not provide any dates to delimit the plan.
    If anybody has encounted similar situation and options to resolve the problem.
    Thank you in advance for your response.

    Hi hetal,
    You can delimit the plan by providing the end date to plan for your Compensation Area, First Program and Second Program grouping in V_T71ADM07.
    Check this, it should help you out. Once the plan is delimitted and data keying department will go to assign the plan after the plan end date that plan will not appear on drop down list.
    Hope this will help.
    guds

  • How to extend Program Period LOV

    Hi All,
    I am trying to update period range for Program and plans in Advanced Benefits.
    Navigation:
    us hrms > total compensation > Programs and Plans > Programs > Period
    In this period range I want to add the period till 31 Jan 2032 but the LOV attached showing periods till 31 Dec 2015.
    Please tell me the navigation where I can allow this date range to be extended till 2032

    Hi Akash,
    Add the Program/Plan Year periods in the below navigation so that it will reflect in the Program -> Periods LOV
    us hrms > total compensation > General Definitions -> Additional Setup -> Program/Plan Years
    Regards,
    Aneesh N

  • Restricting Queries in HR: Compensation Management User Group

    I am trying to restrict the Infoset /SAPQUERY/HR_XX_CM_03, which contains salary/compensation queries, assigned to User Group /SAPQUERY/H0, from being accessed by anyone.  In SQ03, user group /SAPQUERY/H0, there are no users assigned but users with access to SQ01 can select the user group /SAPQUERY/H0  and access the queries tied to infoset /SAPQUERY/HR_XX_CM_03.  Why are users able to access the infosets of the user group when no users are assigned to the user group?

    Turns out that security authorization for access to SQ01 had an S_QUERY value of 02 which allows for full change.  With this value the user group/user assignments done via sq03 did not work.  Setting S_QUERY to 23 allows for user group assignment to restrict access in sq01

  • Benefits- Miscellanious plan

    Hello All,
    Pension Premiums Calculation -> Our pension plans are set up as Miscellaneous Plans.  The system is not calculating the employer premium. And also the Wage type is showing up for Full-time employees but not for Part-time, I couldn't escalate why it is showing up Full-time & not for Part-time.
    The schema was build for miscellanious plan in sub-schme UBE1 for table p0377 (process benefit 1st call fro paremaeter 1) and UBE2 for table P0377(process benefit 2nd call for Parameter 2). When I'm looking at payroll log for some reason it's processing Benfit 1st call and nor reading 2nd call (where in I believe that the first program grouping Fulltime & Part-time, so as the scheme is reading for parameter 1 it's displaying wage type for Full-time and as the system is not reading parameter 2 its's not displaying Part-time - not sure)
    Please help me to resolve this issue, it is very urgent for me to resolve. please help.
    Thanks in advance,
    Rajini

    As I mentioned to you before, the Health Plans (IT0167), Insurance Plans (IT0168) and Savings Plans (IT0169) are something that is set-up in SAP and that employees "subscribe" or "adhere" to, and for which a contribution is made either by the employee, the employer or a combination thereof.
    What you seem to want to set-up is a "Compensation Program" for short term and long term disability, since you mention that  the employer will pay Full Salary to an employee who is disabled but only for 14 days if the employee is an "outpatient" and only for 60 days if the employee is an "Inpatient".
    Two "Paid Absence" categories could possibly provide for that need: Outpatient Paid Absence and Inpatient Paid Absence.
    As for the Medical Expenses part of your requirement, you could possibly create a WT for  Medical Expense Refund (to be entered on IT0015), or a WT for Medical Expense Per-Diem (to be entered on IT0014) if there is a flat amount per day to be paid by the employer.
    SAP probably has a special Infotype for Short Term Disability, similar to the Maternity Leave (IT0080) that we use in Canada, but I can only suggest you to do a little search.  Out of the 91000 results from a Google search on "SAP Short_term_disability", this one looks like what you seem to want: http://help.sap.com/saphelp_46c/helpdata/es/bb/8a3ac94813d3119b430060b0671acc/content.htm

  • Need suggestion for searching words in a document

    Is there any option to search the words in a document, where I want to make a user designed words or phrases saved itself in a PDF docment. For e.g I need to search the data with words like Salary, Compensation, Remuneration, etc in an annual report (PDF Version). For which I need to type these words hundreds of times everyday. So if I have a option to upload these words in the adobe reader itself it will save most of my time. please help me with ur opinions and suggestions.

    Nothing in Reader itself. A macro program might help.

  • Ecm comp module

    hi everyone we are implementing enterprise compensation management in 4.7 version without MSS, i did the configuration for the plans offered and set the guidelines correctly,but for the salary survey results and the job evaluation i havent changed what is there in the earlier compensation management we are using, now the question is when i am trying to generate the report create compensation process records iam getting the message this employee does not have salary structure acc to the basic pay 0008 and also cannot calc the comp ratio with that i get the document paygrade structure not assigned to the basic pay, now the connection for the jobpricing thru Business server pages is not given is there any way we can generate the report succesfully. also i could not see the report generate compensation program records in easy access its just not there, is it because of the 4.7 version. PLZ can anyone help me in this as we are approaching the deadline thanks in advance.
    laureen

    Kevin,
    Thanks for your response.  However, I do not believe this is a configuration issue since we have almost 18,000 correct 0759 infotypes.  The ones that have blank Calculation Base and Currency (approx 10) had correct values before being changed by the supervisor (as confirmed by the Change Log).
    Further investigation has determined that the system will correct these infotypes when the Supervisor goes in for additional work on his/her org if the status is In Planning.  It also gets corrected when the Manager performs the Approval or Rejection step.
    So, at this time we will just monitor and correct via PA30, if needed.
    Thanks.
    Sam

  • Infotypes & tcodes

    Hi
    few infotypes i didnot find the infotypes litlle confused
    3.Multiple field enhancements
    4.Union and association membership
    5.Applicant marks and dd details
    7.previous employee Ei,PF, and gratuity details
    8.MOHP incentives
    9.Piece rate incentives
    10.maintanance factor
    12.salary fitment
    13.full & final settlements
    14.travel; concession
    15.transport
    Let me know the infotype number of these with the tcode and the for what purpose it is used

    Hi,
    PLease find the list of IT
         IType     Infotype text
         0000     Actions
         0001     Organizational Assignment
         0002     Personal Data
         0003     Payroll Status
         0004     Challenge
         0005     Leave Entitlement
         0006     Addresses
         0007     Planned Working Time
         0008     Basic Pay
         0009     Bank Details
         0011     External Transfers
         0014     Recurring Payments/Deductions
         0015     Additional Payments
         0016     Contract Elements
         0017     Travel Privileges
         0019     Monitoring of Tasks
         0021     Family Member/Dependents
         0022     Education
         0023     Other/Previous Employers
         0024     Qualifications
         0025     Appraisals
         0027     Cost Distribution
         0028     Internal Medical Service
         0030     Powers of Attorney
         0031     Reference Personnel Numbers
         0032     Internal Data
         0033     Statistics
         0034     Corporate Function
         0035     Company Instructions
         0037     Insurance
         0040     Objects on Loan
         0041     Date Specifications
         0045     Loans
         0048     Residence Status
         0050     Time Recording Info
         0054     Works Councils
         0057     Membership Fees
         0077     Additional Personal Data
         0078     Loan Payments
         0080     Maternity Protection/Parental Leave
         0081     Military Service
         0082     Additional Abs. Data
         0083     Leave Entitlement Compensation
         0094     Residence Status
         0105     Communication
         0121     RefPerNo Priority
         0123     Germany only
         0124     Disruptive Factor D
         0128     Notifications
         0130     Test Procedures
         0139     EE's Applicant No.
         0165     Deduction Limits
         0167     Health Plans
         0168     Insurance Plans
         0169     Savings Plans
         0171     General Benefits Information
         0185     Personal IDs
         0219     External Organizations
         0236     Credit Plans
         0262     Retroactive accounting
         0267     Add. Off-Cycle Payments w/Acc.***.
         0267     Additional Off-Cycle Payments
         0283     Archived Objects
         0290     Documents and Certificates (RU)
         0292     Add. Social Insurance Data (RU)
         0293     Other and Previous Employers (RU)
         0294     Employment Book (RU)
         0295     Garnishment Orders (RU)
         0296     Garnishment Documents (RU)
         0297     Working Conditions (RU)
         0298     Personnel Orders (RU)
         0299     Tax Privileges (RU)
         0302     Additional Actions
         0315     Time Sheet Defaults
         0330     Non-Monetary Remuneration
         0334     Suppl. it0016 (PT)
         0376     Benefits Medical Information
         0377     Miscellaneous Plans
         0378     Adjustment Reasons
         0379     Stock Purchase Plans
         0380     Compensation Adjustment
         0381     Compensation Eligibility
         0382     Award
         0383     Compensation Component
         0384     Compensation Package
         0395     External Organizational Assignment
         0396     Expatriation
         0402     Payroll Results
         0403     Payroll Results 2
         0415     Export Status
         0416     Time Quota Compensation
         0429     Position in PS
         0439     Data Transfer Information
         0458     Monthly Cumulations
         0459     Quarterly Cumulations
         0460     Annual Cumulations
         0468     Travel Profile (not specified)
         0469     Travel Profile (not specified)
         0470     Travel Profile
         0471     Flight Preference
         0472     Hotel Preference
         0473     Rental Car Preference
         0474     Train Preference
         0475     Customer Program
         0476     Garnishments: Order
         0477     Garnishments: Debt
         0478     Garnishments: Adjustment
         0483     CAAF data clearing (IT)
         0484     Taxation (Enhancement)
         0485     Stage
         0491     Payroll Outsourcing
         0503     Pensioner Definition
         0504     Pension Advantage
         0529     Additional Personal Data for (CN)
         0548     Supplementary pension funds (IT)
         0552     Time Specification/Employ. Period
         0553     Calculation of Service
         0559     Commuting allowance Info JP
         0560     Overseas pay  JP
         0565     Retirement Plan Valuation Results
         0567     Data Container
         0569     Additional Pension Payments
         0573     Absence for Australia PS
         0576     Seniority for Promotion
         0579     External Wage Components
         0591     Nominations
         0592     Public Sector - Foreign Service
         0593     Rehabilitants
         0597     Part Time Work During ParentalLeave
         0601     Absence History
         0602     Retirement Plan Cumulations
         0611     Garnishments: Management Data
         0612     Garnishments: Interest
         0614     HESA Master Data
         0615     HE Contract Data
         0616     HESA Submitted Data
         0617     Clinical Details
         0618     Academic Qualification
         0624     HE Professional Qualifications
         0628     PAISY: USA 21 (Spec. Date Function)
         0629     PAISY: P5 (Payroll Acct Carried)
         0630     PAISY: Other Information
         0631     PAISY: USA 15 (Garnishment)
         0648     Bar Point Information
         0650     BA Statements
         0651     SI Carrier Certificates
         0652     Certificates of Training
         0653     Certificates to Local Authorities
         0655     ESS Settings Remuneration Statement
         0659     INAIL Management
         0666     Planning of Pers. Costs
         0671     COBRA Flexible Spending Accounts
         0672     FMLA Event
         0696     Absence Pools
         0702     Documents
         0703     Documents on Dependants
         0704     Information on Dependants
         0705     Information on Checklists
         0706     Compensation Package Offer
         0707     Activation Information
         0708     Details on Global Commuting
         0709     Person ID
         0710     Details on Global Assignment
         0712     Main Personnel Assignment
         0713     Termination
         0715     Status of Global Assignment
         0722     Payroll for Global Employees
         0723     Payroll for GE: Retro. Accounting
         0724     Financing Status
         0725     Taxes  SA
         0742     HDB Concession
         0745     HDB Messages in Public Sector
         0746     De Only
         0747     DE Only
         0748     Command and Delegation
         0758     Compensation Program
         0759     Compensation Process
         0760     Compensation Eligibility Override
         0761     LTI Granting
         0762     LTI Exercising
         0763     LTI Participant Data
         0783     Job Index
         0784     Inquiry Family Court
         0785     Pension Equalization Payment
         0787     Germany Only
         0788     Germany Only
         0789     Germany Only
         0790     Germany Only
         0792     Organizational Additional Data
         0794     Pensioner Message A
         0795     Certification and Licensing
         0796     Duty Assignments
         0800     Material Assignment
         0802     Sanctions / Offense
         0803     Seniority Ranked List
         0804     Personal Features
         0805     Honors
         0806     Course Data
         0813     Historical Additional Fees A
         0815     Multiple Checks in One Cycle
         0845     Work Relationships
         0846     Reimbursements
         0851     Shukko Cost Charging
         0852     Shukko Cost Charging Adjustment
         0853     Shukko External Org. Assignment
         0860     Sanctions / Offense
         0861     Award/Decorations
         0863     Verdict
         0873     Additional Amount - Garnishment FR
         0875     Events - My Simplification
         0881     Expense Information
         0882     Insurability Basic Data
         0883     Entitlement Periods
         0884     Insurability Calculation
         0900     Sales Data
         0901     Purchasing Data
         0904     Override Garnishable Amount D
         0906     Additional Data for Corres. Letters
         0908     Info. about Annual Income Check
         0976     Municipal Tax per Person
         0978     Pension Contribution A
         0979     Pension A
         2001     Absences
         2002     Activity Allocation (Attendances)
         2002     Attendances
         2002     Cost Assignment (Attendances)
         2002     External Services (Attendances)
         2002     Order Confs.(Att)
         2003     Substitutions
         2003     Substitutions: Indiv. Working Times
         2004     Availability
         2005     Overtime
         2006     Absence Quotas
         2007     Attendance Quotas
         2010     Cost Allocation (EE Rem. Info)
         2010     Cost Assignment (EE Rem. Info)
         2010     Employee Remuneration Info
         2011     Completed Time Events
         2011     Time Events
         2011     Time Events (CO)
         2011     Time Events (PM)
         2011     Time Events (PP)
         2012     Time Transfer Specifications
         2013     Quota Corrections
         2050     Annual Calendar
         2051     Monthly Calendar
         2052     Absence Recording
         2052     List Entry for Attendances/Absences
         2052     Weekly Calendar w/Cost Assignment
         2052     Weekly Entry w/Activity Allocation
         3003     Materials Management
    Regards,
    Vandana

  • ECM vs CM

    Hi Gurus,
    What is the difference in functionalities provided by Enterprise Compensation Management and Compensation Management.
    Moreover I would like to know the advantages ECM have over CM.
    Helpful answers will be rewarded.
    Thanks.
    Regards
    Sairam Maharaj S

    The mySAPHR Enterprise Compensation Management (ECM) module supports companies in defining, streamlining, and putting into practice a strategic performance-based compensation program throughout the enterprise. The system offers the following main components to acomplete compensation management solution:
    Compensation Administration
    Perform compensation reviews including fixed pay, variable pay, and LTIs. Apply eligibility rules and
    guidelines based on different criteria such as performance ratings. Implement approval cycles if
    required.
    Long-Term Incentives
    Administer LTI processes such as granting, vesting, life events,and taxation. Transfer granting data
    to banks/brokers for exercising and retrieve data back for payroll processing by means of standard
    xml interfaces.
    Budgeting
    Create and maintain monetary and non-monetary budgets for the compensation planning and LTI
    granting process.
    Job Pricing
    Export employee salary data for participation in salary surveys.Import salary survey data and create
    market composite results. Age and weight market data, compare internal and external pay and adjust
    company pay structure if required.

Maybe you are looking for

  • How to remove profile in itune wifi sync?

    Hi. is there anybody knows how to remove computer in itunes wifi sync? thanks!

  • How can I get the number of pages of a report?

    Hello to everyone, I'm writing a small app that exports a report to PDF (the app is done and everything is ok). Along with the PDF I need to create an XML file that describes the PDF file properties. One of the properties I need to supply is the numb

  • Price zero in Subcontracting PO

    Hi every one i m having issue For Subcontracting PO, the price should be Zero(Not evan Rs. 0.01) That is the system shoud not hit G/L Accounts but the material should elgible for Excise Duty. it's Urgent,my client want like this can any one come accr

  • RFC FM that will select data from other system

    Hi ABAP Gurus, Good day. Do you have any documentation  on how to develop RFC FM that will be able select data from tables in other SAP system that you can share with me?  How about sample FMs?  Thanks in advance! Best regards. Brando Braganza

  • JPEG image decode error with ImageIO.read() method

    Environment: Linux 64-bit, JDK 1.6.0_14 amd64, JAI 1.1.3 amd64 When I tried to read this image http://farm4.static.flickr.com/3655/3591243423_a258d87ea6.jpg as URL or just the image 3591243423_a258d87ea6.jpg as a local file using ImageIO.read(URL), I