Salary again!

i got the salary thing working fine for 1 mentee added to a mentor but if i add more than 1 the calculation isnt shown correctly for the mentor!
salary increasement for the mentor = 5% for every mentee they have
so if i have a basic salary of the mentor as 1100 and we add 1 mentee - the salary is 1155 - perfect
but if we add another i should expect the salary to be 1212 - not 1331 as it is showing
what the heck is happening?
i made another small method in the Programmer class called getJavaSalary - returns super.getMonthlySalary - this will only work if the programmer object is a Mentor and does Java otherwise it will call the normal getMonthlySalary() method which basically adds a bonus for ppl who do java
as for the Mentor - get monthly salary is this method:
       int monthlySalary = super.getMonthlySalary();
        int bonus = 0;
        int numberOfProgrammers = theMentorings.size();
        bonus = (int) (numberOfProgrammers * 0.05 * monthlySalary);
        return monthlySalary + bonus;
        any ideas????

problem solvedGentlemen, I have discovered a source of anti-Zulfi
particles!!
Whoops apologies for not addressing the ladies!But then again, you've probably got your minds on makeup and kittens!

Similar Messages

  • Remove object and doesnt update salary

    i was testing my app today and found out that for some reason, when i unattach and object from each other - it doesnt update the mentor's salary for some reason :-/
    it kinda does but not properly
    for every java programmer the salary increased by 5% - thats done. so lets say we start with basic salary of 1000 - 10% of it is 1100
    it does that fine
    then if a mentor has a mentee - 5% increase PER mentee
    so if we have 1 mentee to a mentor it should be 1155
    if we remove the mentee from the mentor - the mentors salary should be 1100
    but it doesnt do it :-/
    must be invalid calcs in my program but dont know what
    if we add a mentee to a mentor - mentors salary is 1270
    then if we remove the mentee from mentor - the mentors salary is 1210
    any ideas?
    //this is in the programmer class:
        public int    getMonthlySalary() {   
            int monthlysalary = super.getMonthlySalary();
            int bonus = 0;
            if(theLanguage.equals("Java") == true || theLanguage.equals("java") == true)
                 bonus = (int) (monthlysalary * 0.1);
            return monthlysalary + bonus;
        }  this is in the mentor class:
            int monthlySalary = super.getMonthlySalary();
            int bonus = 0;
            int numberOfProgrammers = theMentorings.size();
            bonus = (int) (numberOfProgrammers * 0.05 * monthlySalary);
            return monthlySalary + bonus;and the toString method in the mentor class:
            int thesalary = 0;
            String thesalfin = null;
            String menteesdetails = "";
            //ConsoleIO.out.println("\nMentees: \t");
            Iterator mentees = theMentorings.iterator();
            while(mentees.hasNext() == true)
                 Programmer mentee = (Programmer)mentees.next();             
                // increase the salary
                thesalary = thesalary + this.getMonthlySalary();
                menteesdetails = menteesdetails + "\n" + mentee.toString() + "\n\n";
            thesalfin = new Integer (thesalary).toString();
            return "<----------------------------------->\n" + super.toString() + "\n\n\tMentors Mentee's:\n<=>\n" + menteesdetails + "\n<=>\n<----------------------------------->\n\n"; //+ "\n\nThe MENTOR monthly salary: " + thesalfin + "\n";

    i have done that but found where the problem is
    when adding mentee and mentor method in Softwarehouse - if the programmer is NOT an instanceof Mentor - it creates the mentor object, removes programmer and adds the mentor object in the softwarehouse - if they obviously do java it increases the salary AGAIN by 10% - thats the problem it does it twice :(
         anotherage = mentorage;
         foundMentor = true;     
    mentorname = prog.getName();
    mentorproglang = prog.getCertainLang();
    mentorpn = prog.getPayrollNumber();
    mentorage = prog.getAge();
    mentoryob = year - mentorage;
    mentorsal = prog.getMonthlySalary();     
    if(prog instanceof Mentor)
    ((Mentor)prog).addMentee(mentee);
    else
    createit = true;
    mentorjavalang = prog.getCertainLang();
    mentortemp = prog;
    if(createit == true)
    theStaff.remove(mentortemp);
    Mentor mentormain = new Mentor(mentorname, mentorpn, mentorsal, mentoryob, mentorjavalang);               
    theStaff.add(mentormain);
    mentormain.addMentee(mentee);               
    }

  • Extremely simple but baffling to me: Constructors.

    I haven't a clue what they are. I've read about them online and in the Java API, and I still have no idea what they are.
    My current understanding is this: a constructor is code dedicated towards defining how to treat a variable.
    But...I have to write two programs using constructors and I have no idea what to put in them. And in fact everything I've tried gives compiler errors. I'm sure all of you know the quiet desperation and frustration I'm feeling.
    Anyway, the assignments are:
    1) Create a class called Employee that includes three pieces of information as instance variables - a first name (type String), a last name (type String) and a monthly salary (double). Your class should have a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, set it to 0.0.
    Write a test application named EmployeeTest that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.
    2) Create a class called Date that includes three pieces of information as instance variables - a month (type int), a day (type int), and a year (type int). Your class should have a constructor that initializes the three instance variables and assumes that the values provided are correct. Provide a set and a get method for each instance variable. Provide a method displayDate that displays the month, day, and year separated by forward slashes.
    Write a test application named DateTest that demonstrates class Date's capabilities.
    It all seems extremely vague, to me.
    For the first assignment I've got:
    public class Employee
         public String FirstName;
         public String LastName;
         public double Salary;
    Which I think is right. But all attempts to create a constructor that have failed...I don't even know what one does. It seems kind of absurd for my first two labs to be so simple, basically logic exercises, and this to be so mind-destroying.
    There's got to be an if/then to see if the salary inputted is negative, which is simple, no problem.
    But the set and get methods...there's no data inputted into this program, so what the hell is it setting and getting, and how would the syntax work?
    Like:
    public void setFirstName( String FirstName )
    FirstName = FirstName;
    Doesn't work. And I think it's because it refers to itself for its own definition, which is nonsense. But I can't figure out what's right.
    The second assignment is simpler, but it also makes no sense to me. The day, month, and year are not variables. And even if they are variables, the user doesn't input them only to have them displayed, right? So what is the assignment even asking for? This is all taken directly out of the book.
    Any help is appreciated. =/

    FuneralParlor wrote:
    I haven't a clue what they are. I've read about them online and in the Java API, and I still have no idea what they are.That's not a good sign.
    My current understanding is this: a constructor is code dedicated towards defining how to treat a variable.No. They initialize an object.
    When you buy a new XBox, you have to spend some time taking it out of the box, removing the packaging, and plugging the wires together. It's like that.
    But...I have to write two programs using constructors and I have no idea what to put in them. You don't necessarily need to put anything in them. Does your class require initialization on the objects created for it?
    And in fact everything I've tried gives compiler errors. I'm sure all of you know the quiet desperation and frustration I'm feeling.It sounds like you're trying random stuff, hoping something will work. Don't do that.
    Anyway, the assignments are:...
    >
    It all seems extremely vague, to me.It doesn't give you the answers, but it tells you how to do them. It's pretty specific.
    For the first assignment I've got:
    public class Employee
         public String FirstName;
         public String LastName;
         public double Salary;
    Which I think is right.Well, generally fields shouldn't be public; they should be private. Also, you're not following Java naming conventions. Fields should start with a lower-case letter ("firstName" not "FirstName").
    But all attempts to create a constructor that have failed...I don't even know what one does. It seems kind of absurd for my first two labs to be so simple, basically logic exercises, and this to be so mind-destroying.It's simple stuff. I find it hard to believe that you've read your textbook.
    I'll give you a hint. The assignment says:
    Your class should have a constructor that initializes the three instance variables. This means that the constructor will need to take arguments, so you can use the arguments's values to assign to the fields (instance variables).
    But the set and get methods...there's no data inputted into this program, so what the hell is it setting and getting,The assignment tells you exactly what's going to be invoking the setter and getter methods:
    Write a test application named EmployeeTest that demonstrates class Employee's capabilities. [etc]
    and how would the syntax work?
    Like:
    public void setFirstName( String FirstName )
    FirstName = FirstName;
    Doesn't work. And I think it's because it refers to itself for its own definition, which is nonsense. But I can't figure out what's right.Right. In this case, the parameter name is obscuring the field name. This is where the "this" keyword comes in handy:
    this.Firstname = Firstname;Your textbook and teacher should have mentioned this.
    The second assignment is simpler, but it also makes no sense to me. The day, month, and year are not variables. What do you mean they're not variables? The assignment clearly says to make them so.
    And even if they are variables, the user doesn't input them only to have them displayed, right? So what is the assignment even asking for? It's just a super-simplified example. You're right; it's worthless in terms of real-world practicality. It's just something pointless but simple for you to get practice with. Don't worry about it.

  • Forms, $_POST and showing data between to numeric values

    Hi.
    Really stuck with my SQL query.... pretty new to SQL so struggaling with this... heres my scenario..
    I have a Form on a .php page that has drop down menus for a user to select options based on location, type of job and min. salary and max. salary. This then submits using the POST method the results of the options (using $_REQUEST) to a results.php page.
    The text field queries work great.... with this query:-
    SELECT jobs.clocation, jobs.Ref_id, jobs.RefCode, jobs.jobtitle, jobs.blurb, jobs.Consultant, jobs.Salary, jobs.tlocation, jobs.Sector, jobs.Type
    FROM jobs
    WHERE jobs.clocation = '$_REQUEST[clocation]' AND jobs.Sector  = '$_REQUEST[Sector]' AND jobs.Type = '$_REQUEST[Type]'
    Where I'm having problems is getting it to work with the values... I'd like them to be able to choose a Min Salary.. (the drop down menu includes options of 10000 , 20000, etc) and a Max Salary (again 10000 , 20000 etc) and then the results show any data between those values.
    Cant figure out where I am going wrong.. please help
    Thank you

    loopynutter wrote:
     The text field queries work great.... with this query:-
    Sure. And it works even better for a hacker. That is, perhaps, the most insecure piece of code I have seen in a long time.
    First off, $_REQUEST is insecure because it contains POST, GET, and cookie values.
    Next, you're injecting $_REQUEST values directly into your SQL query. Hackers will have a field day trashing your database. Take a look at http://en.wikipedia.org/wiki/SQL_injection to see the danger you're exposing yourself to.
    If you're using the PHP mysql functions, you must pass your values first to mysql_real_escape_string(). You should also use $_POST or $_GET instead of $_REQUEST.
    As for getting results between different values, use BETWEEN ... AND (http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#operator_between).

  • Duplicate fields in af:query search

    Hi Experts,
    I am using af:query, in order to search record from database.
    For example,Consider I am having three fields to search in basic(Employee Id, Employee Name,Gender ).
    In the advanced mode, if i add another field 'Salary', it will be added. If I hit to add 'Salary' again, it added below the 'Salary' again.
    Simply, it allows me to add a single filed multiple times again and again. How can I restirct this.
    I am using Jdeveloper 11.1.1.5.0
    -Thanks

    The af:query is based on a View Criteria from a PVO, so i wrote the following code to set the value for the criteria items in the View criteria.
    I wrote it in view object's getter in the AMImpl.java
    public ResourcePickerVOImpl getResourcePicker(){
    ResourcePickerVOImpl vo = findViewObject("ResourcesPicker");
    ViewCriteria vc = (ViewCriteria)vo.getViewCriteria("ResourcePickerSearch");
    ViewCriteriaManager vm = vc.getViewCriteriaManager();
    Row rows[] = vc.getAllRowsInRange();
    for(Row row : rows){
    List<ViewCriteriaItem> cit = ((ViewCriteriaRow)row).getCriteriaItems();
    Iterator<ViewCriteriaItem> itr = cit.iterator();
    while(itr.hasNext()){
    ViewCriteriaItem vtr = itr.next();
    vtr.setValue("Mathew");
    System.out.println("Column name: " + vtr.getColumnName() + " Value: " + vtr.getValue());
    I changed the contextDelivery = immediate and childrenCreation = immediate since the popup was always showing empty search fields.
    After changing this property i am seeing a new issue -> First time when i open the popup nothing is shown in the search fields. Then from the subsequent times it is showing the values defaulted through the above code.
    Any idea!
    Edited by: [email protected] on Aug 26, 2010 4:30 AM

  • Element link problem!

    Hello Gurus, I need a bit of advice.
    In my organization, we have a single element link for basic salary. Now we have a requirement to cost the Basic Salary element as per 2 different assignment category. I tried the following steps
    1. Date tracked to 01Sep 2010
    2.Tried to create a new element link for Basic salary, but not able to bcoz the elemnt is already linked to all employees thru the existing element link.
    MSG : Element link is not mutually exclusive.
    3. I tried to delete the existing element link for Basic Salary, but I am not able to. MSG "APP PAY07134 You cannot delete links which have entries within the deletion period."
    The recommended action is delete the element entry after the session date.
    3. I try to delete the Basic Salary from element entries, but not able to do that, as the delete button does not get enabled for Basic salary.(It is enabled for the other elements).
    Pls advise how to proceed.
    Thanks
    George

    There are a lot steps involved with this one.
    1. End date salaries for all employees/ contingent workers with basic salary
    2. End date old element link
    3. Create new element link
    4. Upload salary again for all employees.

  • Not able to Post Salary

    Dear Experts,
    I am trying to post salary for the month of august to System through PC00_M99_CIPE.
    When I run in simulation mode the result I get is ->
    Posting Run
    Posting Run type - PP
    Posting Run Number - 401
    Doc. Creation - No Errors
    Statistics
    Messages   Personnel Numbers 
    Selected   587 
    Evaluated   587 
    Rejected   0 
    Skipped   0 
    When I run in LIVE Posting Run the result I get is ->
    Posting Run 
    Posting Run Type   PP 
    Posting Run Number   402 
    Doc. Creation   No Documents Created 
    Statistic 
    Messages   Personnel Numbers 
    Selected   587 
    Evaluated   0 
    Rejected   0 
    Skipped   587 
    Please help on how to resolve the problem. Thanks
    Edited by: simonjohn on Sep 6, 2011 1:48 PM

    Hi,
    Run Live Posting again for one employee again - with Ticke mark on display Log
    There you'll get the message the"The employee details have already been posted in Run XXXX"
    Delete teh Posting Run XXXX using PCP0.
    Redo the posting.
    Hope this helps.
    Param

  • ESS Salary issue

    Hi,
    in SPRO under under IMG-> Personnel Management -> ESS -> Service Specific Settings -> Benefits and Payment -> Salary Statement....
    there are two options
    Form Using HRForms Workplace (HRFORMS)
    Form Using HRForms Editor(PE51)
    under PE51, the feature of EDTIN & HRFOR is configured fully.
    As  I need to add logo to this,the 3 setting,Provide Salary Statement in PDF in internet,I have copied the FM to ZHR_ESS_PAYSLIP_TO_PDF,accd to my req  for logo,but when i run the application from portal,the PDF is all same,so I am thinking the EDPDF feature is not triggering up here.
    Secondly if I clk on the EDPDF feature than two line items 1. Edit Feature EDPDF & 2. Call SAP Smart Forms comes,on which I clk than first is set,but the second option I am not able to check perfectly,as i move out the screen both the options are again reset to blank.
    if any one have worked on this thing,pls advice how to set both as checked & make it working to display the salary with logo in ESS.
    Pls if any other thing to do for inserting the logo pls advice too.
    Regds
    vipin

    Bala,
    Is the debug for the forms done on the portal side? I work on the functional side.
    Thanks,
    Brian

  • Overview Link of ESS Salary Stat application

    Hello,
    We are using few ESS applications in our environment. We were using the ESS applications without any customization so far. Now, we have some requirements for customizing a few things. I would really appreciate your help in the following requirement.
    (We have the NWDI setup and track created I have imported the configuration into NWDS and created the appropriate project for ess/rem and ess/rep).
    (We are on EP 7.0 using Webdynpro Java XSS 600 components)
    Our requirement is:
    In the ESS pay (Remuneration) statement application:
    1. Display the Overview screen by default (This is hidden now and will only be displayed if you click on the link "Show Overview")
    I really have very limited idea about this webdynpro application and am having difficulty finding the exact piece of code to be modified.
    I will appreciate your help.
    Thank You,
    Kalyan B

    Dear Kalyan,
         I have not done anything, try to check the table properties and redeploy it again.
        Please find my coding
    // This file has been generated partially by the Web Dynpro Code Generator.
    // MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.
    // ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
    package com.sap.xss.hr.rem2.selection;
    // IMPORTANT NOTE:
    // ALL IMPORT STATEMENTS MUST BE PLACED IN THE FOLLOWING SECTION ENCLOSED
    // BY @@begin imports AND @@end. FURTHERMORE, THIS SECTION MUST ALWAYS CONTAIN
    // AT LEAST ONE IMPORT STATEMENT (E.G. THAT FOR IPrivateSelectionView).
    // OTHERWISE, USING THE ECLIPSE FUNCTION "Organize Imports" FOLLOWED BY
    // A WEB DYNPRO CODE GENERATION (E.G. PROJECT BUILD) WILL RESULT IN THE LOSS
    // OF IMPORT STATEMENTS.
    //@@begin imports
    import com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDTable;
    import com.sap.tc.webdynpro.progmodel.api.WDVisibility;
    import com.sap.xss.hr.rem2.selection.wdp.IPrivateSelectionView;
    //@@end
    //@@begin documentation
    //@@end
    public class SelectionView
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(SelectionView.class);
      static
        //@@begin id
        String id = "$Id$";
        //@@end
        com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
    Private access to the generated Web Dynpro counterpart
    for this controller class.  </p>
    Use <code>wdThis</code> to gain typed access to the context,
    to trigger navigation via outbound plugs, to get and enable/disable
    actions, fire declared events, and access used controllers and/or
    component usages.
    @see com.sap.xss.hr.rem2.selection.wdp.IPrivateSelectionView for more details
      private final IPrivateSelectionView wdThis;
    Root node of this controller's context. </p>
    Provides typed access not only to the elements of the root node
    but also to all nodes in the context (methods node<i>XYZ</i>())
    and their currently selected element (methods current<i>XYZ</i>Element()).
    It also facilitates the creation of new elements for all nodes
    (methods create<i>XYZ</i>Element()). </p>
    @see com.sap.xss.hr.rem2.selection.wdp.IPrivateSelectionView.IContextNode for more details.
      private final IPrivateSelectionView.IContextNode wdContext;
    A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
    Represents the generic API of the generic Web Dynpro counterpart
    for this controller. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;
    A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
    Represents the generic API of the Web Dynpro component this controller
    belongs to. Can be used to access the message manager, the window manager,
    to add/remove event handlers and so on. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
      public SelectionView(IPrivateSelectionView wdThis)
        this.wdThis = wdThis;
        this.wdContext = wdThis.wdGetContext();
        this.wdControllerAPI = wdThis.wdGetAPI();
        this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
        // Added here to Call methods When the Application is loaded.
        if(wdContext.currentVCDATAElement().getLINK_ENABLED()){
           try{ 
                   wdContext.currentContextElement().setTable_visible(WDVisibility.VISIBLE);
                   wdContext.currentVCDATAElement().setOVERVIEW_SEL("99");
                   wdThis.wdGetVcRem2SelectionController().execAction(wdContext.currentVCDATAElement().getACTIONID_LINK());
                   wdThis.wdGetVcRem2SelectionController().execAction(wdContext.currentVCDATAElement().getACTIONID_DDSEL());
             }catch(NullPointerException e){               
                   wdComponentAPI.getMessageManager().reportWarning("Salary Statement does not Exists in database for You : " + e.getMessage());
        }else{
              wdContext.currentContextElement().setTable_visible(WDVisibility.NONE);
              wdComponentAPI.getMessageManager().reportWarning("Payroll data does not Exists, Check with HR Team");
        //@@end
      //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
        //@@end
      //@@begin javadoc:wdDoModifyView
    Hook method called to modify a view just before rendering.
    This method conceptually belongs to the view itself, not to the
    controller (cf. MVC pattern).
    It is made static in order to discourage a way of programming that
    routinely stores references to UI elements in instance fields
    for access by the view controller's event handlers etc.
    The Web Dynpro programming model recommends to restrict access to
    UI elements to code executed within the call to this hook method!
    @param wdThis generated private interface of the view's controller as
           provided by Web Dynpro; provides access to the view controller's
           outgoing controller usages etc.
    @param wdContext generated interface of the view's context as provided
           by Web Dynpro; provides access to the view's data
    @param view the view's generic API as provided by Web Dynpro;
           provides access to UI elements
    @param firstTime indicates whether the hook is called for the first time
           during the lifetime of the view
      //@@end
      public static void wdDoModifyView(IPrivateSelectionView wdThis, IPrivateSelectionView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
         //wdContext.nodeVCTABLE().getNodeInfo().addAttributesFromDataNode();     
         //wdComponentAPI.getMessageManager().reportWarning("Check Status : " + wdContext.currentVCDATAElement().getOVERVIEW_VISIBLE());
        IWDTable viewTab = (IWDTable) view.getElement("OverViewTab");
        wdThis.wdGetVcRem2SelectionController().assignTable(view, viewTab, wdContext.nodeTABLE0(), firstTime);
        if (wdContext.currentVCDATAElement().getOVERVIEW_VISIBLE() == WDVisibility.VISIBLE) {
             // overview is already shown - enable close
                  wdContext.nodeCONTENT_TABLE0().setLeadSelection(wdContext.currentVCDATAElement().getSELECTED_TABROW());
                   wdContext.currentRemLocalElement().setLinkOverviewLabel(wdThis.wdGetAPI().getComponent().getTextAccessor().getText("CloseOverviewLabel"));
                   wdContext.currentRemLocalElement().setLinkOverviewTooltip(wdThis.wdGetAPI().getComponent().getTextAccessor().getText("CloseOverviewLabel"));
              } else {
                  wdContext.nodeCONTENT_TABLE0().setLeadSelection(-1);
                   wdContext.currentRemLocalElement().setLinkOverviewLabel(wdThis.wdGetAPI().getComponent().getTextAccessor().getText("OpenOverviewLabel"));
                   wdContext.currentRemLocalElement().setLinkOverviewTooltip(wdThis.wdGetAPI().getComponent().getTextAccessor().getText("OpenOverviewLabel"));
        //@@end
      //@@begin javadoc:onActionOverViewRowSelection(ServerEvent)
      /** declared validating event handler */
      //@@end
      public void onActionOverViewRowSelection(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionOverViewRowSelection(ServerEvent)
         wdContext.currentVCDATAElement().setSELECTED_TABROW(wdContext.nodeCONTENT_TABLE0().getLeadSelection());
        wdThis.wdGetVcRem2SelectionController().execAction(wdContext.currentVCDATAElement().getACTIONID_TABSEL());
        //@@end
      //@@begin javadoc:onActionToggleVisibility(ServerEvent)
      /** declared validating event handler */
      //@@end
      public void onActionToggleVisibility(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionToggleVisibility(ServerEvent)
         wdThis.wdGetVcRem2SelectionController().execAction(wdContext.currentVCDATAElement().getACTIONID_LINK());
        //@@end
      //@@begin javadoc:onActionSel_ListSelection(ServerEvent)
      /** declared validating event handler */
      //@@end
      public void onActionSel_ListSelection(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSel_ListSelection(ServerEvent)
        wdThis.wdGetVcRem2SelectionController().execAction(wdContext.currentVCDATAElement().getACTIONID_DDSEL());
        //@@end
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      //@@end
    Regards
    Ponnusamy

  • What is Field User for Annual Salary

    Hi All,
    I want to fetch data of Annual Salary of an employee. I can see them in PA20 but when I go to the table PA0008 to find the value of this ( Field - ANSAL ) its not stored all the time.
    Where can i find the value of Annual Salary if its not present in PA0008 but its appearing in PA20 display.
    Regards,
    Vidya.....

    hi vidya,
    if indirect valuation is being used, the annual salary field ANSAL also may not be populated. Again, there are some SAP function modules to help us out:
    RP_ANSAL_FROM_PERNR - Use this one if all you have is PERNR
    RP_ANSAL_FROM_INFOTYPE - Good if you have already data for infotypes 0001 & 0008
    RP_ANSAL_FROM_WAGETYPES - It requires a list of wage types used in 8
    Regards
    Anup.

  • Strange problem when validating XML agains DTD file.

    Dear experts,
    I'm write a simple code snippet that validates my XML file agains a given DTD.
    It allways report the following error:
    org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)Althought, my xml file is OK with Xmlspy.
    My code is:
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
                             "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
          DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
          factory.setNamespaceAware(true);
          factory.setValidating(true);
          factory.setAttribute(
              "http://java.sun.com/xml/jaxp/properties/schemaLanguage",
              "http://www.w3.org/2001/XMLSchema");
          factory.setAttribute(
              "http://java.sun.com/xml/jaxp/properties/schemaSource", SchemaUrl);
          DocumentBuilder builder = factory.newDocumentBuilder();
          Validator handler = new Validator();
          builder.setErrorHandler(handler);
          builder.parse(new java.io.FileInputStream(new java.io.File(XmlDocumentUrl)));And here are the xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE capsule SYSTEM "c:/SampleFiles/capsule.dtd">
    <capsule>
         <header>
              <name>Capsule 1</name>
              <author>Author</author>
              <company>Company</company>
              <last-save-time>Fri Apr 01 14:59:21 GMT+07:00 2005</last-save-time>
              <description>description</description>
         </header>
         <datasets>
              <dataset type="input">
                   <name>dataset1</name>
                   <description></description>
                   <columns>
                        <column type="fromsource">
                             <name>partno</name>
                             <data-type>varchar</data-type>
                             <length>80</length>
                             <precision/>
                             <scale/>
                             <allow-null>false</allow-null>
                             <default-value/>
                        </column>
                        <column type="notfromsource">
                             <name>balanceonhand</name>
                             <data-type>integer</data-type>
                             <length/>
                             <precision/>
                             <scale/>
                             <allow-null>false</allow-null>
                             <default-value/>
                        </column>
                   </columns>
                   <rule>LET a=update; LET b=employye set salary = 100; print a + b</rule>
                   <!--output: update employee set salary = 100-->
                   <command>inmemory (getvalue_dataset("dataset1".rule))</command>
                   <params>
                        <param>
                             <name/>
                             <type/>
                        </param>
                   </params>
              </dataset>
         </datasets>
    </capsule>What I can do now? Change my xml file?
    Please provide some hints.
    Thanks in advance.

    I tried to remove the DOCTYPE, but the problem stayed the same.
    Thanks.

  • Payroll Stop( Salary Stop)

    Hello,
            My client side one Sales Division is available Every time  Three/Four employees not reporting to office Two, Three  months. Payroll is live,
             Then they come after Two Three months.
    Eg. 
           Oct-2008 Presend
           Nov-2008 Presend
           Dec-2008 Not Reporting
           Jan-2009 Not reporting
           Feb-2009 & He is Coming
    Please let me know How can i stop Dec-2008 & Jan-2009 Payroll ( Salary Stop)
    Please Advised
    Regards
    MHPO

    Hi,
    1.  With the helo of actions, we can stop the 2 months  payment to him.  Just run the action, copy the action from leaving, change the description, maintain the 0000,0001 infotypes to action. When he is not reporting to office, at that time run actions to him, so this person goes to inactive, When he is coming to office, giving the report, again run the action with the active status.
    For this you need to configure the 2 action, one for active, second inactive status.
    2. When he is not reporting to office, change  the payroll area 99 to him.
    But, any how you need to think about the statutory payments, deductions.
    Good luck
    Devi

  • Salary Statement doesnot work

    Dear all:
    we met a very urgent issue about our sap portal configuration.
    i installed a sap portal 7.00 SP11 and the backend system is ECC6.0.
    others functions are working now , but "salary statement" doesnot work.
    i got this following error after pressed salary statement , so pls help me !
    <b>The initial exception that caused the request to fail, was:
       java.lang.ArrayIndexOutOfBoundsException: -1
        at com.sap.mw.jco.JCO$Record.getString(JCO.java:12761)
        at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsString(JcoBaseTypeData.java:669)
        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsString(DynamicRFCModelClass.java:427)
        at com.sap.xss.hr.rep.model.rfwmodel.Hrxss_Ser_Rfw_Rfc_Get_Form_Output.getHeight(Hrxss_Ser_Rfw_Rfc_Get_Form_Output.java:179)
        at com.sap.xss.hr.rep.fcrfw.FcRepFramework.callRfcGetForm(FcRepFramework.java:395)
        ... 45 more</b>
    best Regards
    scott

    Dear James:
    thank you very much for your feedback !
    i reconfigured the ESS in the backend system , now the error info disappeared.
    but i got the other error info:
    <b>Error when calling method INIT of class CL_HRXSS_REM </b> 
    i have no idea for this error info now .
    can you give me some instruction?
    thanks again!
    best Regards
    scott

  • Not able to see Add'l Salary Admin DFF in salary Admin form( HTML)

    Hi,
    I am not able to see the DFF (Add'l Salary Admin Details in the Salary Administration form which is in Self Service screen)Can anyone guide me to identify that pls..
    with regards
    Surya

    or set the profile option so that the applications uses the old forms screen again.

  • Base salary deferral and bonus deferral benefits

    Hi All,
    Our Legacy system has only one inbound feed for benefits which has base salary deferral and bonus deferral. I am assuming in SAP it should have two Plan types with base Salary Deferral and Bonus Deferral with two benefit Plans in infotype 169. we are planning to use infotype 169. Can anyone advise, in SAP it requires two Plan types? Appreciate your help.
    Regards,
    Fred

    Hi,
    The value of HCSLC in V_T511P table is 0.00
    I changed to 1.00 and it stopped catch-up contributions in the pay period when the salary is reaching the limit. But in the next payroll and/or for EE who has already reached the limit, I get the BIG RED line with no error message during IT0169 processing.
    The payroll stops at
    BAdI "Evaluate Ee Contrib" implemented
    Anyways, what should be the value for this constant so that it stop catch-up and payroll to work properly without issues after the limit is reached.
    Thanks again for the info.

Maybe you are looking for

  • Replaced hard drive, need to re-link Time Machine

    Please, before you start typing any response, read my entire post. I recently upgraded my internal HDD. I used Carbon Copy Cloner to clone the old drive to the new one, and when I booted up my computer after physically installing it, it worked fine.

  • Need to repair disk - what do I do????!!!

    I've done a check on the disk utility and it says the following: "Volume Header needs minor repair The volume Apple Hardrive needs to be repaired. Error: The underlying task reported failure on exit 1 HFS volume checked Volume needs repair" However i

  • Photo Downloader freezes while Devicelist is loading

    Hi there, on my iMac (OSX 10.5.8) the Photo Downloader works well when the system is "freshly started". At any uncertain point in time, when I launch Bridge and the Photo Downloader, the window "Device list is loading" (actually "Geräteliste wird gel

  • Integration with Weblogic Server 10.3.x

    Hello! When I use mod_oc4j in OAS 10.1.2., then I can use the directive Oc4jMount configured OHS. If you use this directive html-code that is returned to the client will contain only the URL that hosts the portal. Get some opaque proxy (much like mod

  • Transducer LVDT interface for medical application

    I am working on a project in miomedical engineering in which i use as a transducer an LVDT for displacement measurements. I would like to ask if i can simply use an ADC circuit to feed the serial port with the measurements or i need to buy the DAQ sy