HR Payroll and ESS Problem

Hello,
We had a SAP HR PAYROLL and Portal - ESS implemented in our lanscape. When payroll is processing (generally month end) we are locking the ess user's in Portal because users are getting locked automatically(e.g: when attempted to apply for leave via portal) and also payroll or leave data updation is getting fail in respective infotypes.
Now, I want some one to tell, what is the general procedure in most of the projects?
In case users are locked during payroll run, how do they apply for leaves?
Our customer expectation is not to lock users in any of the system during payroll run and should do their activities as usual. Whats the best procedure to acheive this?
Thanks.

In my last ESS implementation...when the payroll was being processed the Payroll used to be locked and not the users and then the users were not able to edit their Banks Information ...but they should be able to apply for leaves....are you using a custom procedure to lock the users during the Payroll run....
Regards,
Shikhil

Similar Messages

  • Payroll and ESS

    Can someone tell me what an employee can view/update in Employee Self Service as standard when the Payroll is locked for processing?
    Thanks
    WB

    >
    SergioSarasti wrote:
    > WB,
    > An employee can view everything information when Payroll is locked.
    >
    > Using standard configuration, an employee can edit during this period (please check your additional country specific application);
    >
    > - Personal information area:
    > -- Personal data
    > -- Address
    > -- Benefits Medical Information
    > -- Personal ID
    > -- ... (in general all of this area excluding Bank information and Family Member/Dependents)
    >
    > - Working Time area:
    > -- Time Statement
    > -- Display Plan
    > -- Quota overview
    >
    > - Benefits and Payment area:
    > -- all from Payment subarea and the overviews
    >
    > Purchasing, Work Environment, Life and Work Events & Corporate Information areas:
    > -- all
    >
    > If you want to change this behaviour, take in count Dilek's answer. Also, let me suggest you when you'll do that, uncheck VORT field to avoid conflict con retroactivity date when save past data.
    >
    > Regards
    So as standard you should not be able to change Bank Details and Create Trip?
    Thanks
    WB

  • Oracle Payroll and Payslip Report problem

    Hi everyone,
    When I am running the Saudi payroll registered and Saudi payslip report in oracle r12. in the parameter list i didn't getting the current reporting period end date, it showing me only old reporting end period date. please can anyone help me how to get lov of all the period end dates to run the payroll and payslip.
    Thank you

    Solved, Thank you

  • Conflict between CAT2 and ESS Record Time

    Does anyone know how to set up security to allow someone to record time through ESS while prohibiting that person from recording their own time through transaction CAT2 in ECC?  Our Payroll Department uses CAT2 to record/correct time for the entire company, but they are prohibited from recording/correcting their own time through CAT2 due to SOD violations.  Prohibiting them from recording their own time in CAT2, however, also prohibits them from recording their time through ESS.  We've tried using two login IDs for each Payroll user, but that did not work because each would have to be linked to the user ID so you end up with two IDs that can either record their time through both CAT2 and ESS or neither.  We're also aware of context-sensitive based security, but we've been told that would require redoing all of our security roles, so we're trying to avoid it.  Does anyone know of another way to achieve what we're trying to achieve?

    Why is time recording an SoD and if so why is ESS not an SoD?
    Probably because the ruleset does not include the webservice but only the cat2 tcode... in which case you might as well create zcat2 which calls cat2 without skip first screen --> no SoD anymore...
    Cheers,
    Julius

  • Error When building ess/tra/tre and ess/tra/tre/trs DC's

    I had customized the ess/tra/tre and ess/tra/tre/trs DC's and had them working, but I do not know what I did or what happened that am now getting the following errors when building, can anyone help tell what the problem could be?
    Error                                     
    -     The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.xss.tra.model.openccmodel.OVSOpenCostcenterModel. Fix the classpath then try rebuilding this project.               
    -     HDI_HNS15.02_Desstratresap.com                              
    Error                                     
    -     This compilation unit indirectly references the missing type com.sap.xss.tra.model.openccmodel.OVSOpenCostcenterModel (typically some required class file is referencing a type outside the classpath)        
    -      InternalVcTreReview.java          
    -      HDI_HNS15.02_Desstratresap.com/gen_wdp/packages/com/sap/xss/tra/tre/vc/review/wdp      
    -     line 0

    For anyone who might need to know, I managed to fix this by adding tra to the required projects on the build path. On the Navigator View, right click -> Properties -> Java Build Path -> Projects tab -> check dependant project.

  • PA30 and ESS functionality

    This is a functionality question rather than a how-to question.  When I load the "Tax Exempt Prohibited" field in table T5UTZ for our tax authority, the corresponding field in PA30 for infotype 210 becomes protected.  But nothing happens in ESS.  The "Tax Exempt Indicator" on the ESS W4 page remains and editable drop-down box.  Wouldn't you expect the Tax Exempt field in both PA30 and ESS to become protected?  This is something I've had problems with before.  I can change text values and drop down box contents via ABAP R3 code changes, but I can't affect attributes (protected, invisible) even though there is SAP documentation that shows you how to do it.
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/43/319dd48c4d0b19e10000000a1553f6/frameset.htm

    Vivek,
      I understand we can make it read only. But i think the requirement is to remove entries from the dropdown list without affecting the backend. In other words making changes to the domain EXEMP.

  • MSS PCRs and ESS Adobe Forms not working

    Hi Gurus,
    Scenario: Portal system on a seperate box / Adobe system on a seperate box /R/3 on a seperate box . ADS is configured properly, From R/3 the forms are working fine all test programs are working great. But when I try to see thru the Portal MSS and ESS links then it gives me the following error. Please suggest what needs to be done. Points will be awarded..
    500   Internal Server Error
      Web Dynpro Container/SAP J2EE Engine/6.40 
    Failed to process request. Please contact your system administrator.
    [Hide]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.Exception: Incorrect content-type found 'text/html'
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientMimeMessage.initDeserializationMode(ClientMimeMessage.java:120)
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:951)
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
        at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)
        at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99)
        ... 52 more
    See full exception chain for details.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Version null
    DOM version null
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Server
    Web Dynpro Runtime Vendor: SAP, build ID: 7.0008.20060517125535.0000 (release=645_VAL_REL, buildtime=2006-05-29:19:11:56[UTC], changelist=403424, host=pwdfm101), build date: Fri Oct 13 16:42:28 PDT 2006
    J2EE Engine 7.00 patchlevel
    Java VM Classic VM, version:1.4.2, vendor: IBM Corporation
    Operating system AIX, version: 5.3, architecture: ppc64
    Session & Other
    Session Locale en_US
    Time of Failure Tue Jan 30 11:01:46 PST 2007 (Java Time: 1170183706621)
    Web Dynpro Code Generation Infos
    sap.com/pb
    SapDictionaryGenerationCore 7.0008.20060428175704.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:30:12[UTC], changelist=400798, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates 7.0008.20060428175704.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:30:21[UTC], changelist=400798, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore 7.0008.20050713144242.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:18:37[UTC], changelist=357697, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer 7.0008.20060428190753.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:35:47[UTC], changelist=400814, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon 7.0008.20060210160857.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:19:24[UTC], changelist=388995, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore 7.0008.20060210160857.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:19:17[UTC], changelist=388995, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary 7.0008.20051128142655.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:27:20[UTC], changelist=378069, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro 7.0008.20060428190938.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:32:41[UTC], changelist=400815, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates 7.0008.20060517125535.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:52:10[UTC], changelist=403424, host=pwdfm101)
    SapWebDynproGenerationCore 7.0008.20060428190753.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:35:58[UTC], changelist=400814, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates 7.0008.20060517125535.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:52:10[UTC], changelist=403424, host=pwdfm101)
    sap.com/tcwddispwda
    No information available null
    sap.com/pb_api
    SapDictionaryGenerationCore 7.0008.20060428175704.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:30:12[UTC], changelist=400798, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates 7.0008.20060428175704.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:30:21[UTC], changelist=400798, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore 7.0008.20050713144242.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:18:37[UTC], changelist=357697, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer 7.0008.20060428190753.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:35:47[UTC], changelist=400814, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon 7.0008.20060210160857.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:19:24[UTC], changelist=388995, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore 7.0008.20060210160857.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:19:17[UTC], changelist=388995, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary 7.0008.20051128142655.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:27:20[UTC], changelist=378069, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro 7.0008.20060428190938.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:32:41[UTC], changelist=400815, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates 7.0008.20060517125535.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:52:10[UTC], changelist=403424, host=pwdfm101)
    SapWebDynproGenerationCore 7.0008.20060428190753.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:35:58[UTC], changelist=400814, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates 7.0008.20060517125535.0000 (release=645_VAL_REL, buildtime=2006-06-10:14:52:10[UTC], changelist=403424, host=pwdfm101)
    sap.com/tcwdcorecomp
    No information available null
    Detailed Error Information
    Detailed Exception Chain
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  UPDATEDATAINPDF
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:371)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java(Inlined Compiled Code))
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java(Compiled Code))
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java(Compiled Code))
         at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java(Compiled Code))
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java(Compiled Code))
         at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java(Inlined Compiled Code))
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java(Inlined Compiled Code))
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java(Inlined Compiled Code))
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java(Inlined Compiled Code))
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java(Compiled Code))
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java(Compiled Code))
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java(Inlined Compiled Code))
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java(Compiled Code))
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Caused by: com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument Processor failed to process Render Request.
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:118)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:333)
         ... 46 more
    Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
         java.lang.Exception: Incorrect content-type found text/html
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:366)
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.render(PDFObject.java:3689)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRenderHandler.handle(PDFDocumentRenderHandler.java:154)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)
         ... 48 more
    Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
         java.lang.Exception: Incorrect content-type found 'text/html'
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:89)
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99)
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:359)
         ... 51 more
    Caused by: java.lang.Exception: Incorrect content-type found 'text/html'
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientMimeMessage.initDeserializationMode(ClientMimeMessage.java:120)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:951)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)
         ... 53 more
    Regards,
    Samar.

    Samar,
    I am having the exact same problem. Can you please inform me on how you managed to resolve this issue?
    Thanks,
    Thomas

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • BOSD, Battery issues and Heating problem after iOS 8 upgrade

    i have upgraded my iPad mini to iOS 8. Ever since I upgraded to iOS 8 am facing blue screen issues and heating problem as well. This is really frustrating even the patch iOS 8.0.2 dint solve the problem. Are you guys listening our complaints. When will you fixing it.

    The same thing happened to me on my 2012 Subaru Outback.  I'm not sure this will help you since you have a Honda, but I'm posting this just in case.
    I paired the audio on my car with my iPhone 6.  However, when I turned the car off and back on again, the iPhone would not pair automatically.  I had to manually connect the iPhone with the car.  Turns out there are two separate bluetooth pairings on my car: one for phone which allows up to 5 devices and one for audio which allows only one device.  So I did the second bluetooth pairing for the phone (had already done the audio), and that fixed it.  YMMV

  • I am making code to try to make a game and my problem is that my code......

    I am making code to try to make a game and my problem is that my code
    will not let it change the hit everytime so im getting the first guy to hit 1 then next hits 8 and so on and always repeats.
    Another problem is that I would like it to attack with out me telling it how much times to attack. I am using Object oriented programming.
    Here is the code for my objects:
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class rockCrab {
         //Wounding formula
         double sL = 70;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 50;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         rockCrab() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              double done = rint(fH - fA);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("Rockcrab hit" +done);
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class self {
         //Wounding formula
         double sL = 1;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 1;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         self() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("You hit" +done);
    }Here is the main code that writes what the objects do:
    class fight {
         public static void main(String[] args) {
              self instance1 = new self();
              rockCrab instance2 = new rockCrab();
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
    }when the code is run it says something like this:
    you hit 1
    RockCrabs health is 9
    RockCrab hit 7
    your health is 38
    you hit 1
    RockCrabs health is 8
    RockCrab hit 7
    your health is 31
    you hit 1
    RockCrabs health is 7
    RockCrab hit 7
    your health is 24
    you hit 1
    RockCrabs health is 6
    RockCrab hit 7
    your health is 17
    my point is whatever some one hits it always repeats that
    my expected output would have to be something like
    you hit 1
    RockCrabs health is 9
    RockCrab hit 9
    your health is 37
    you hit 3
    RockCrabs health is 6
    RockCrab hit 4
    your health is 33
    you hit 2
    RockCrabs health is 4
    RockCrab hit 7
    your health is 26
    you hit 3
    RockCrabs health is 1
    RockCrab hit 6
    your health is 20
    Edited by: rade134 on Jun 4, 2009 10:58 AM

    [_Crosspost_|http://forums.sun.com/thread.jspa?threadID=5390217] I'm locking.

  • Remote and IR Problem

    A rather odd and annoying problem has recently been occuring on my MBP. A couple days ago my remote (after working without fail for over a year now) suddenly stopped working. Yesterday night and this morning it started working again but after a while it stopped again. I've read dozens of support articles which haven't really helped because there seems to be another problem.
    Most articles have stated that there is an option to disable the IR receiver in the "security" window under system preferences. When the IR and remote are not working this option disappears but when they are working the option is present. I have also tried replacing the battery without any result.
    I am now thinking that it might have something to do with heat buildup because it is mainly occuring after the laptop has been on for about a half hour, so I am going to try to borrow someone's fan.
    If anyone has any suggestions to solve this I would appreciate it if you could help. Thanks!
    MacBook Pro 1.83 GHz   Mac OS X (10.4.9)  

    check out this thread. Seems to be the same problem.
    http://discussions.apple.com/thread.jspa?messageID=4701905&#4701905

  • LG Ally text message and gps problems

    hello. ive been with verizon for about 10 years maybe. ive been overall happy with the service and customer service. but the prices should be alot lower.lol. i started out with the motorolas then switched to the lg phones. only problem with the motorola was the speakers. not loud enough. could never hear the phone ring. the lgs usually suffer from the same problem.
    i had a few phone problems but nothing like this lg ally. im on my second one and about to be my 3rd one in about 3 months. 1st phone i had every problem under the sun. this phone i am suffering from text message problems and gps problems. i suffer from what everyone else has problems with. the messages wont send. they will eventually lock up. it will show the envelope with the red explanation point ( i think thats the graphic). then usually everytime when i sent a text the texts will close. it will send then bounce back and show up as a draft and i have to resend it and wait for it to go thru. finally the last problem with the texts. when i send a text a phone number from my contacts shows up and freezes on the screen. its in white text with a black background. its the same number every time. it stays on the screen until i restart or pull my battery out.
    gps. when i open up google gps that comes with the phone i make sure the gps is on... when the directions are found and the map pops up 9 out of 10 times it just keeps saying searching for gps. the turn by turn never is found. the 1 time it does it takes a good 10 minutes to be found. atleast on my first one ally the gps did work 8 out of 10 times. it just took a good 5-10 minutes for gps to be found and show turn by turn.
    anyone else have these problems? where you able to fix them or did you need to get a new phone? the 2.1 update was supposed to fix problems. i think they just made it worse. the ally is supposed to have 2.2 froyo. where is it. is it ever going to get it. i got this phone because i like the lgs and the keyboard. also the sales representative on the phone was giving the lg ally rave reviews. why couldnt he say dont buy this go with a motorola droid. this phone is the biggest junk ever made

    I do apologize you are having trouble with your device I looked in our information system on the LG Ally in reguards to issues you are having it states if you have the Free Droid Security anti virus protection application down loaded it will cause the phone to lock up or freeze. Check and make sure you do not have the application on your device. Check you GPS settings and make sure correct. Go to Settings; Location & Security; make sure GPS is on wireless network. If this does not fix issue you can try doing a Master Reset on your device. Make sure your contacts are saved in your G-mail account or through Back Up Assistance.
    Master Reset/Soft Reset:
    Factory Reset option 1
    From the main screen, touch menu tab
    Touch Settings
    Touch Privacy
    Touch Factory Data reset
    Touch Reset Phone
    Warning: This will erase all data from your phone, including:
    Your Google account
    System and application data and settings
    Downloaded Applications
    It will not erase: Current System software and bundled applications; SD Card files, such as music or Photos
    Factory Reset option 2  - Warning this will reset device back to original factory settings.
    Turn off the phone
    Press and hold "home" + "end" + "volume up or down" keys together for a few seconds when the device is power off
    Once device displays boot information, release keys.
    Soft Reset
    Press the Power key.
    Touch Power off.
    Touch OK.
    Press the Power key to power on the device.
    or
    Remove battery cover, remove battery and reinstall.Also there is a new update for LG Ally it will be the Froyo 2.2 but there is not release date available at this time it will post on your device when available. Hope this Helps. Leslie

  • I am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!

    i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
    When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
    Please HELP!!!!!! Getting second thoughts on Lion!!!!

    Hi b,
    Have you restarted yet?

  • How do I fix my ipod classic that says very low batter after I have charged it and the problem persists?

    I have an Ipod video 30g that says Please wait very low battery. I charged it for about a day and the problem persists. I've tried using some solutions on the internet and none of them worked including: holding the menu and select, holding select and play to put it in disk mode with no avail. Is there anyone who can help me!!!

    Have you read this post written by another forum member?
    The Sad iPod icon.
    However, as your iPod was purchased on Boxing Day, why not get it serviced under the warranty?
    You can arrange online service here.
    Service request.
    Or if an Apple store is near you, take it there and have them check your iPod.
    You can make an appointment by using this link.
    Genius Bar Appointments.

  • It's so annoying!! I have created a new Apple ID but after I click verify it just goes back to the previous page!!! It''s really frustrating I have tried for more than 4H, and the problem is not about the apple ID. I can download apps with the apple ID, w

    It's so annoying!! I have created a new Apple ID but after I click verify it just goes back to the previous page!!! It''s really frustrating I have tried for more than 4H, and the problem is not about the apple ID. I can download apps with the apple ID, which means IMessage is the problem! I restarted my iPad, I logged in and out of the apple ID in the store, AND YET IT STILL WON'T WORK, PLEASE HELP!

    Hi Vmanfromusa!
    It sounds like you are having an issue with activating your iMessage app on your iPad. An article outlining some troubleshooting steps for this issue can be found here:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

Maybe you are looking for

  • No Disk error/Exception Processing Message keeps appearing

    THIS IS A BUG! When I have a song listed in itunes but it can't find it on my hard disk, I get the message: WINDOWS - NO DISK Exception Processing Message c0000013 Parameters 75b6f9c 756bf9c 75b6f9c CANCEL TRY AGAIN CONTINUE This used to cause my sys

  • Final Cut Pro X - Multicam changes pitch (Help badly needed!)

    Hi everybody, I have big problems using Multicam. Basicly my problem is that pitch is not preserved. It is off with a semitone or so. Almost sounds like a samplerate issue (44.1/48 khz) What I do is: I have 4 shoot (with 4 cams) of a live-song. I hav

  • G5 wont identify my monitor?!?

    I just got my first G5, and i plugged in my old pc monitor for it through dvi to vga cord. Well the picture works, but i cant get my monitor to be identified so i could use my monitors 1440 x 900 resolution. I can choose from various resolutions but

  • Cannot connect to Tengo Internet at KOA

    I just rolled into the Santa Fe KOA and they use TENGOINTERNET.COM to provide WiFi services for guests. You first connect to their WiFi router and then when you access the Internet, you are moved to a special TENGOINTERNET.COM login screen where you

  • Not Responding

    I downloaded the trial version of adobe illustrator CS5.1. Whenever i open AI and click file->New AI shows not responding and gives a pop up to close program. I am using Windows 7. If nebody faced such problem kindly help.