Restrict the hours to be integer in timesheet

While submitting timesheet, can I restrict that the user must input hours in integer without digits?
Thanks.
Kevin Li

Kevin --
Nope, this is not possible using the default features in Project Server.  Users can enter time in full hour units, such as 2 hours, or in decimal units, such as 5.25 hours.  There is no way to restrict this.  Instead, you would need to establish
a process or methodology to restrict it.  Teach your team members to only enter time in full hour units, and then ask your project managers to watch for anyone who disobeys the methodology.  Hope this helps.
Dale A. Howard [MVP]

Similar Messages

  • How to restrict the user input textfield to an Integer?

    Hello there;
    Here is my problem, and i need your help.
    I have a mssql 2005 server as my back end database;
    I have designed a web application from which i can load a specific table in my database.
    One of my table column is of integer type and i want to restrict the user to only entered an integer in the textfield.
    I have try the integer converter from the "converters" section of the pallete. The result is that its actually restrict the user input to be an integer, but i can't load the database, obtaining a java.lang.Int error message.
    Next i have tried using int theid=int.parseInt........ but i am receiving a syntax error of the type cannot find symbol parseInt.
    I can't just work this out!
    Could anybody help please.

    As has been stated in previous replies you can check that the value in the TextField is parseable as an Integer by using Integer.parseInt(fieldVariable.getText()). However, you can also restrict what characters can be entered into the text field, like so:
    Assume your field variable is textField1 then the KeyTyped event for the text field:
    private void textField1KeyTyped(java.awt.event.KeyEvent evt) {
         if (evt.getKeyChar() < '0' || evt.getKeyChar() > '9') {
              evt.consume();
    }will only allow the numeric characters (i.e., 0-9) to be typed into the field. Keep in mind that in this case the backspace, delete, home, arrow, etc, keys will not delete characters, move the cursor, etc, so if you want those you have to test for them as well.

  • Restrict the Sales Order Quantity in Integer

    Hi All,
    our system need to restrict the Sales Order Quantity in having no decimal value.  
    We have got the OSS reply as:  
    "Unfortunately I regret to tell you that it is not possible to
    restrict the order quantity number to integer in standard system.
    The number of allowed decimals is defined in the system via SE12.
    In SE12, you can see that for VBAP-KWMENG, the number of allowed decimals is 3. I'm sorry but this is the standard system behavior."
    But we need to avoid programming. Can you anyone suggest any work around methods, like define rounding profile to do the restrictions.
    Regards,
    Simon

    Hello All,
    Thanks for the excellent answere.
    Please anybody can provide us the SAP OSS Note for the same as the reply received from SAP Support.
    We have got the OSS reply as:  
    "Unfortunately I regret to tell you that it is not possible to
    restrict the order quantity number to integer in standard system.
    The number of allowed decimals is defined in the system via SE12.
    In SE12, you can see that for VBAP-KWMENG, the number of allowed decimals is 3. I'm sorry but this is the standard system behavior."
    But we need to avoid programming. Can you anyone suggest any work around methods, like define rounding profile to do the restrictions.
    Regards,
    Farhan

  • Restrict the timesheet entry period in portal

    Hi,
    The requirement is  to restrict the timesheet entry period (2 weeks) in the portal. ie the user should be allowed to edit previous or  next two weeks timesheet only.
    The r/ 3 configuration is done and in it is working fine in r/3. Please let me know if any settings to be done in portal
    Regards,
    Muthu

    @Siddharth: I remember we went over this a while ago but am posting it here for the benefit of a renewed discussion.
    The validation in the CATS User exit will kick in only when the user clicks on the Check & Refresh button, which I believe isn't user friendly. What if the user enters a bunch of entries only to realize that he/she shouldn't be doing so, wouldn't it be frustrating? I would rather expect the restriction to occur at a higher level, i.e. the user should not be allowed to pick a date that the business logic decides (could be 'n' pay periods going back from system date). As you we know, there are at least 3/4 ways a user can pick a date in the past on the Record Working Time Application.
    ~Suresh

  • How to restrict not more than 9 hrs in Timesheet

    Hi
    Is there any way to restrict not more than 9 hrs in Timesheet in PWA 2010
    Regards
    Santhu

    Hi Santhu,
    In server settings, timesheet settings, set the maximum hours per timesheet:
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Performance Issue-;How to restrict the total output of the report.

    Hi Experts
    I need your advise to resolve one performance issue in my BI Publisher report.
    My report query is extracting more than 80000 records at once. To load these records into the report template it is taking all most 14 to 15 hours. Unfortunately i cannot change my logic to put some more filter to restrict the query output, as this is the requirement from the client.
    Is there any way i can restrict my report so that it will extract the first 1000 record and on the event of pressing next it will extract the next 1000 record and so on from the point when it left in last time.
    Kindly let me know if you have any solution for this.
    Thanks in advance.
    Regards
    Srikant

    Hi experts...
    Any update on this...

  • How to restrict the cell selection in JTable based on cell contents...

    Hi all,
    I have some problem related to table cell selection.
    I have a table that represets the calendar of some month and year.
    I have the restriction that at one time only one cell could be selected.
    Now i want the cell seletion like this,
    I want only those dates to be selected if that date is after 'today'.
    that is I want to restrict the selection of previous dates.
    how can i do this.
    I have overridden the table methods like this, still no use.
    table = new JTable(model) {
    setOpaque(false);
    setSurrendersFocusOnKeystroke(false);
    setRowHeight(20);
    JTableHeader header = getTableHeader();
    header.setOpaque(false);
    getTableHeader().setReorderingAllowed(false);
    setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    getTableHeader().setResizingAllowed(false);
    setCellSelectionEnabled(true);
    setFocusable(true);
    setBackground(new Color(247, 251, 255));
    setFont(newFont);
    public boolean isCellEditable(int row, int col) {
    return false;
    public boolean isCellSelected(int row, int col) {
    int r = getSelectedRow();
    int c = getSelectedColumn();
    String val = (String)getValueAt(r,c);
    Calendar cal = Calendar.getInstance();
    cal.set(currentYear+1900, month,Integer.parseInt(val));
    Date d = cal.getTime();
    Date currentDate = new Date();
    if (d.before(currentDate)) {
         return false;
    } else {
         return true;
    Someone please help...
    -Soni

    Try overriding the changeSelection(....) method of JTable.
    public void changeSelection(int row, int column, boolean toggle, boolean extend)
         if (d.after(currentDate)
              super.changeSelection(row, column, toggle, extend);
    }

  • How to restrict the duplicate values in lov column of VO based Adv Table

    Hi Gurus,
    I want to restrict the duplicate values at lov which is a colunm in an Adv Table.
    If user enters duplicate values then first it should show an error msg that Duplicate values have been entered.
    After the duplicate values have been removed, then the user can save all the values in the table.
    My Adv Table is based on a VO.
    The link how to restrict the duplicate values at form level
    talks about Adv Table based on a EoVO, which doesnot work in my case.
    My Approach,
    I am iterating through RowSetIterator and committing through PROCEDURE.
    I am able to avoid duplicate entry through a function checkRespId. (given below)
    Below code is for iterating and committing.
    public void saveline(String reqid,String userid)
    System.out.println("RequestId/saveline"+reqid);
    System.out.println("UserId/saveline"+userid);
    OAViewObject vo = (OAViewObject)getRespLineVO1();
    RespLineVORowImpl row = null;
    int fetchedRowCount = vo.getFetchedRowCount();
    RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");
    if (fetchedRowCount > 0)
    deleteIter.setRangeStart(0);
    deleteIter.setRangeSize(fetchedRowCount);
    for (int i = 0; i < fetchedRowCount; i++)
    System.out.println("Inside the for LOOP");
    row = (RespLineVORowImpl)deleteIter.getRowAtRangeIndex(i);
    String respoidid = row.getAttribute("ResponsibilityId")+"";
    String respname = row.getAttribute("ResponsibilityName")+"";
    String stdate = row.getAttribute("StartDate")+"";
    String enddate = row.getAttribute("EndDate")+"";
    String linestatus ="A";
    if(userid!=null)
    if(!(respoidid.equals("null")) && respoidid!=null)
    String checkingrespid=null;
    checkingrespid = checkRespId(userid,respoidid);+contains no if not duplicate and yes if its duplicate+
    System.out.println("checkingrespid for Resp with ID :"+respoidid+"exists or not "+checkingrespid);
    if(checkingrespid.equals("No"))
         String message, result = null;
    Connection txn = getOADBTransaction().getJdbcConnection();
    try
    calling PROC ...
    catch(Exception e)
    message = "Error in Inserting into line" + e;
    throw new OAException(message, OAException.ERROR);
    else
    throw new OAException("You have entered duplicate no. of values", OAException.ERROR);
    else
    System.out.println("respoidid is null");
    break;
    deleteIter.closeRowSetIterator();
    public String checkRespId(String userid,String respoidid)
    String createRow="No";
    OAViewObject vo = (OAViewObject)findViewObject("CheckRespVO1");
    if (vo != null)
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0, userid);
    vo.setWhereClauseParam(1, respoidid);
    vo.executeQuery();
    System.out.println("ROW COUNT IS "+vo.getRowCount());
    if(vo.getRowCount()>0)
    createRow="Yes";
    else
    createRow="No";
    return createRow;
    Problem:
    I remove the duplicate entries and click on save and get this error.
    Unable to perform transaction on the record. \nCause: The record contains stale data. The record has been modified by another user.
    \nAction: Cancel the transaction and re-query the record to get the new data.
    Thanks,
    Sombit

    Hi Anil,
    I am trying out your code but stuck in inserting the rows
    using your code in URL: http://oracleanil.blogspot.com/2010/09/oaf-passing-table-type-object-to-oracle.html
    I am always getting the same exception i.e COde blast in when I run.
    My modified code is:
    String[] as = null;
    Number[] vNumber = null;
    Number[] vNumberrespid = null;
    Number reqidnumber = null;
    reqidnumber = new Number(Integer.parseInt(reqid));
    Connection txn = getOADBTransaction().getJdbcConnection();
    String mCreateSearchRequestStatement = null;
    OAViewObject vo = (OAViewObject)findViewObject("RespLineVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new Number[j];
    vNumberrespid = new Number[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = (reqidnumber);
    vNumberrespid = ((Number)vo.getCurrentRow().getAttribute("ResponsibilityId"));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ResponsibilityName")).concat(String.valueOf(""));
    System.out.println("Request ID "+reqidnumber[i]);//getting null even there is some value selected
    System.out.println("ResponsibilityId "+vNumberrespid[i]);//getting null even there is some value selected
    System.out.println("Resp Name "+as[i] );//getting null even there is some value selected
    i++;
    CallableStatement cs = txn.prepareCall("{call XX_PassTableType.XX_PassTableType_prc(:1, :2,:3)}");
    ARRAY array = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumber);
    ARRAY arraynew = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumberrespid);
    ARRAY array1 = new ARRAY(new ArrayDescriptor("APPS.JTF_VARCHAR2_TABLE_100", txn), txn, as);
    cs.setArray(1, array);
    cs.setArray(2, arraynew);
    cs.setArray(3, array1);
    cs.registerOutParameter(3, 2003, "JTF_VARCHAR2_TABLE_100");
    cs.execute();
    ARRAY error = null;
    error = (ARRAY)cs.getArray(2);
    if ((error != null) && (error.length() > 0))
    System.out.println(String.valueOf("Error is ").concat(String.valueOf(error.getArray())));
    String[] retError = new String[j];
    retError = (String[])error.getArray();
    System.out.println(String.valueOf("Error in saving data").concat(String.valueOf(retError[0])));
    cs.close();
    catch (Exception exception)
    throw new OAException("code blast", OAException.ERROR);
    Thanks,
    Sombit

  • How to restrict the user to enter only numeric values in a input field

    How to restrict the user to enter only numeric values in a input field.
    For example,
    i have an input field in that i would like to enter
    only numeric values. no special characters,alphabets .
    reply ASAP

    Hi Venuthurupalli,
    As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
    On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
    The attribute which you are binding to value property ;make its type as simple type which you made
    Hope this helps you
    Regards
    Rohit

  • How can I to restrict the amount of messages in XI 3.0 ?

    Hi @all,
    in our company we use sap xi 3.0. Actually, we research a method to restrict huge amount of messages that we process in the integration server (IS). Is there any possibility to restrict the amount of messages int the IS? (e.g.  a parameter (sxmb_adm) which define the maximum messages to process per hour or day..if the maximum is reached than the IS blocked ensuring message requests for a while..)
    Best regards
    Alex

    Hi @all,
    thanks for your replies.
    @Rajesh
    to use message packaging for improve system performance is an interest possibility. I've just read an implement guide from Daniel Horacio.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10b54994-f569-2a10-ad8f-cf5c68a9447c?quicklink=index&overridelayout=true
    But it seems there is no option for  early version sap xi 3.0. Is it possible to use package messaging on xi 3.0 ?
    Best regards
    Alex

  • How to Configure CATS Profiles in order for the Hours to be posted to CO

    Hi All,
    I have quick question for you all, how do I configure the CATS Time Entry Profiles so as to enable me to post the Hours (Different Receiving Cost Centers & Receiving Internal Orders) to CO.
    Currently I enter time using TCODE: CAT2 and a CATS Profile and Save the Timesheet.
    Following which I Approve Times using CAT4.
    Then when I try to transfer time to both HR and CO using TCODE: CATA time gets transferred to HR Time Management Infotypes but not to CO.
    I tried a couple of other TCODES as well i.e: CAT7 & CAPS and tried posting to CO but I am getting a message saying that "NO DATA TO TRANSFER" despite there been ample data fit to be transferred to CO.
    So, my question to you all is how do you handle this situation in your implementation/organization.
    Looking forward to hear from you soon.
    Regards,
    Aslam

    Hi Aslam,
    Im not sure why this isnt working.
    Try approving timesheets using CATS_APPR_LITE
    And check whether the timesheets are approved.
    Once that is done.
    Run CAT7
    This would post the data from CATS to controlling.
    Regards,
    Brinda

  • How to restrict the columns order movement at runtime in 7.3

    Hi Experts
    We are using EP7.3 Portal.
    We have modified the  Cats table in a customized ESS Cats DC . We have added a another table
    say subTotals table (This table does not have header) to calculate the hours as per business requiremnt just below the cats table with proper allignment.
    Now at run time i.e when launched through Iview in the portal, the user can able to
    personalize the columns order of Cats Table (Moving columns from one place to other) by Right click on the
    table>User settings->other-->Re Arrange the columns
    We have 2 tables so moving the first table column order will effect the second table which displays the totals (This is readonly)
    Our requirement is we should not allow the user to change the column order at run time (At least we need to restrict 8 columns outof 13 to 14 columns)
    How can we restrict the columns order through code i.e by controlling the property if any
    Regards
    KALYAN

    nwa->configuration management->infrastructure  --->application modules
    filter the name column with "tcwddispwda"
    select the entry(should be only one after filter)
    select the "web dynpro properties" tab
    select the "default" in the table
    AllowUserPersonalization----->false

  • How can we restrict the planned effort overiding in project workplan ?

    Hi,
    I have some requirement to restrict the planned effort in workplan so that the resource cannot book more hrs than the actual planned effort .
    is there a restricton available in oracle projects for this or any standard feature ?
    Regards,
    Skg

    Hi
    I'm not sure if you are asking about restricting the plan or restricting the actual time.
    Assuming the last, please note, there is no standard functionality to restrict employees from charging their time to a project once they hit the workplan budget.
    Assuming employees are entering their time on Pre-approved batch form or OTL, then system will call validations for each project entry. You could use the transaction control client extension. In the client extension develop the logic to check the balance of work-plan budgeted quantity minus accumulated quantity of hours already charged. Then compare the balance to the quantity entered on the form. If that quantity exceed the balance raise an error message and prevent saving that transaction.
    Dina

  • Restrict the input string length

    Hi, how do I restrict the input string length in a JTextField. Suppose if I want my text field to accept only 4 characters, the fifth character I try to enter shouldn't be accepted in the field.
    Thanks,
    Kalyan.

    This is for 6 characters limit
    //create a JTextField that is six characters long
    JTextField textField = new JTextField(new FixedNumericDocument(5,true),"", 6);
    Here boolean true means only numeric. set to false to take in alphanumeric.
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    public class FixedNumericDocument extends PlainDocument {
    private int maxLength = 9999;
    private boolean numericOnly;
    public FixedNumericDocument(int maxLength, boolean numericOnly) {
    super();
    this.maxLength = maxLength;
    this.numericOnly = numericOnly;
    //this is where we'll control all input to our document.
    //If the text that is being entered passes our criteria, then we'll just call
    //super.insertString(...)
    public void insertString(int offset, String str, AttributeSet attr) throws BadLocationException {
    if (getLength() + str.length() > maxLength) {
    return;
    else {
    try {
    if (numericOnly) {
    Integer.parseInt(str);
    //if we get here then str contains only numbers
    //so that it can be inserted
    super.insertString(offset, str, attr);
    catch(NumberFormatException exp) {
    return;
    return;

  • In Free goods how to restrict the quantity to not to alter.

    Dear All,
    I have maintain condition record for free goods in VBN1.EX.102.While creating sales order for 20 quantities system populates 204.But if am changing this as 152 or 205,system is allowing to do.Same is the case at delivery.How can we restrict the system to not to allow the changes in sales order in case of free goods .Please guide me.
    Regards,
    Deepti

    Hi
    KIndly check the  below user exit and make the free goods item as in display mode
    MV45AFZZ 'USEREXIT_FIELD_MODIFICATION'
    to change the SCREEN-INPUT = 0 to make it display  for free goods item category Tann
    By doing above if any one changes main item  system will accordingly change the free goods item also
    Regards
    Damu.

Maybe you are looking for

  • Sales Order - Create With Reference

    Hi, Plz look into the below scenario, I Create a Sales Order 1 (Manufacturing Order) with Qty 10. When i create a Sales Order 2 (Call of Order) with reference to SO1, automatically Qty 10 comes up in the Qty Field. Assume i created a SO2 with Qty 3.

  • How to keep waiting time between processed messages !!

    Hi Folks, I have got one scenario required waiting time between processed messages. The problem as follows !! File --> Proxy scenario. I receive 15 messages from sender side (same messages structure) so working with one interfaces. File picking and t

  • While printing RDLC Report ,Report viewer also get printed with the report

    hi When i take the Printout of RDLC Report,Report viewer is also get printed which should not be done, How should i overcome while printing the RDLC record Thanks in advance, Radhika

  • ORA - Maximum Connections Reached

    Dear All Even after implementing Connection pooling in our Application , we very often get this error "150 process exceede- Maximum Connection reached" ? How do we handle this? Our application is about to GoLive in another month .Please help us. Than

  • Cannot install NMH300

    I have an NMH300 Media Hub and I cannot get it to install via the setup application on Windows Vista x64. The setup application always complains that the device cannot be found. However, the device boots up OK and I can reach it via http://mediahub.l