In search of a 'special' number range of validator

Hi,
I am developing a JSF based web page with a text field that can hold numbers.
I want to add number range to this text field so that user does not enter more than a allowed range of numbers.
I am aware of multiple options JSF and its various flavors provide and below is the option I am considering -
Add a validator which will be called upon typing the numbers and the validators returns with an error message shown on the UI.
However, I was wondering if there was any validation any of the JSF flavors provide that can validate number range on typing and automatically truncate the number to the range provided.
As an example, if the range is 0.0 to 99.00, as soon as the user types 100, the validation truncates the value to 10 by removing the leading 0. A error message would be even great but not mandatory. Similarly,upon typing 99.999, the leading 9 would be truncated making the value 99.99.
The reason I am looking for such a feature is because I have a editable datatable with the date split into multiple pages with a richfaces scroller in between.
I am using a doublerangevalidator facelet which does validation and shows error message alright. But I want the error message to persist even after going to the next page in the scroller, which is not happening right now.
The idea is to have the user see all text fields that violate the number range as a comprehensive list of errors on the page.
Since I am not able to achieve this using any of the validators provided by JSF RI or Richfaces, I am looking to atleast prevent the user from typing invalid data.
Thanks for the help.

anand_sridhar wrote:
As an example, if the range is 0.0 to 99.00, as soon as the user types 100, the validation truncates the value to 10 by removing the leading 0. A error message would be even great but not mandatory. Similarly,upon typing 99.999, the leading 9 would be truncated making the value 99.99. Sounds like you need a converter instead of a validator. A validator is meant to validate the data, not to change the data.
Have you looked in the converters corner anyway? Implementing one yourself isn't that hard.

Similar Messages

  • About a special number range

    Hi experts,
    I'm doing the initial download of customers from R3 to CRM4.0. One of the KTOKD has assigned the following number range:
    From T001  To V999
    My question: Is possible to configure the same number range in CRM? My customer wants to maintain the same number customers but I don't know how to set this number range in CRM (I tried but the system alert me that this range is not a numerical one.)
    It's an issue very urgent. Please help me, I'll reward all useful tips.
    Thanks in advance
    Javier Merino

    Hi Jörn,
    thank you for the answer.
    I want to download customers from R3 to CRM but my problem is that I can't create a number range in CRM which be the same used in R3 (T001 to V999).
    This range must be external in CRM as I know but it's impossible to create this range with this notation.
    Hope you understand me.
    Thanks
    Javier

  • Document number range object

    Hi
    Please tell document number range object . T-code :FBN1
    PLEASE URGENT
    Thanks
    Krishna

    Hello
    A number range must be assigned to each document type in the SAP System. Via the document types, you distinguish the postings according to the different business transactions, for example customer payment, vendor credit memo, and so on. To store documents separately according to document types, you must assign a separate number range to each document type, for example to invoices or to credit memos.
    In the following activities:
    You define your document number ranges.
    You can determine which intervals of document number ranges are to be copied from one company code into another.
    You can determine which intervals of document number ranges are to be copied from one fiscal year into another.
    Define Document Number Ranges
    In this IMG activity you create number ranges for documents. For each number range you specify (among other things):
    a number interval from which document numbers are selected
    the type of number assignment (internal or external)
    You assign one or more document types to each number range. The number range becomes effective via the document type specified in document entry and posting.
    You can use one number range for several document types. This means you can differentiate documents by document type but combine them again for filing the original documents, provided you store your original documents under the EDP document number.
    Note
    The type of number assignment is of special importance. For each document type you should check whether a separate number range must be used and which type of number assignment is most appropriate.
    One example of a case where external number assignment would be suitable is when you transfer documents into your SAP system from a non-SAP system. The numbers must be unique. The number range is not displayed with external numbers. You must therefore ensure that you do not skip any numbers when entering numbers manually (for organizational reasons).
    You should use internal number assignment if the original documents do not have a unique document number. This is the case, for example, with vendor invoices.
    Number ranges for documents are company code-dependent. You must therefore create your number ranges for each company code in which the document type is used, namely with the same number range key.
    The number intervals must not overlap. If you use year-dependent number ranges, you can specify the same interval with the same key several times for different to- fiscal years  (the limit up to which a number range is still valid). If you want to define number ranges which are independent of the to-fiscal year, enter 9999 in the to- fiscal year field.
    Caution
    For sample documents, use a number range with key X2, for recurring entry documents with key X1. These keys may not be used for other number ranges.
    Recommendation
    Store your original documents (paper documents) under the EDP number of the SAP System. You should write the EDP document number on the original document. In this way, the original document for a business transaction can be found at any time.
    Activities
    1. Determine how document filing is to be carried out in your company codes.
    2. Define your number ranges accordingly.
    3. Make sure that the number ranges are assigned to the corresponding document types.
    Copy to Company Code
    In this activity, you can copy intervals of document number ranges from one company code to other company codes. To do this, you have to store the following information:
    Intervals which are copied
    To fiscal year(s) (validity limit up until which the number range is valid)
    Company code from which you copy (source company code)
    Company code(s) into which you copy (target company code(s))
    Activities
    Make all necessary specifications for copying the number ranges.
    Note
    The number ranges are only copied into a target company code if no number ranges exist there within the selected "To fiscal year" interval.
    Notes on transporting
    The documentation for the step "Define document number ranges" describes how to transport document number ranges.
    Copy to Fiscal Year
    In this activity, you can determine which intervals of document number ranges are to be copied from one fiscal year into another per company code. To do this, you have to define the following information:
    Company code(s) within which you copy
    Number range number(s) which are copied
    Fiscal year from which you copy (source fiscal year)
    Fiscal year into which you copy (target fiscal year)
    Activities
    Make all necessary specifications for copying the fiscal years.
    Note
    The number ranges are only copied per company code into the target fiscal year if no intervals exist there for this fiscal year.
    Reg
    *assign points if useful

  • About Number range object

    Hi All,
    what is Number range object and what is the purpose of this.?
    thanks in advance ...

    Hi,
    1) Goto Tcode SNRO
    2) select ur concerned OBJECT there.
    3) Click on Number Ranges Push Button.
    4) then click on Display Interval Button over there.
    Document:
    A number range must be assigned to each document type in the SAP System. Via the document types, you distinguish the postings according to the different business transactions, for example customer payment, vendor credit memo, and so on. To store documents separately according to document types, you must assign a separate number range to each document type, for example to invoices or to credit memos.
    In the following activities:
    You define your document number ranges.
    You can determine which intervals of document number ranges are to be copied from one company code into another.
    You can determine which intervals of document number ranges are to be copied from one fiscal year into another.
    Define Document Number Ranges
    In this IMG activity you create number ranges for documents. For each number range you specify (among other things):
    a number interval from which document numbers are selected
    the type of number assignment (internal or external)
    You assign one or more document types to each number range. The number range becomes effective via the document type specified in document entry and posting.
    You can use one number range for several document types. This means you can differentiate documents by document type but combine them again for filing the original documents, provided you store your original documents under the EDP document number.
    Note
    The type of number assignment is of special importance. For each document type you should check whether a separate number range must be used and which type of number assignment is most appropriate.
    One example of a case where external number assignment would be suitable is when you transfer documents into your SAP system from a non-SAP system. The numbers must be unique. The number range is not displayed with external numbers. You must therefore ensure that you do not skip any numbers when entering numbers manually (for organizational reasons).
    You should use internal number assignment if the original documents do not have a unique document number. This is the case, for example, with vendor invoices.
    Number ranges for documents are company code-dependent. You must therefore create your number ranges for each company code in which the document type is used, namely with the same number range key.
    The number intervals must not overlap. If you use year-dependent number ranges, you can specify the same interval with the same key several times for different to- fiscal years (the limit up to which a number range is still valid). If you want to define number ranges which are independent of the to-fiscal year, enter 9999 in the to- fiscal year field.
    Caution
    For sample documents, use a number range with key X2, for recurring entry documents with key X1. These keys may not be used for other number ranges.
    Recommendation
    Store your original documents (paper documents) under the EDP number of the SAP System. You should write the EDP document number on the original document. In this way, the original document for a business transaction can be found at any time.
    Activities
    1. Determine how document filing is to be carried out in your company codes.
    2. Define your number ranges accordingly.
    3. Make sure that the number ranges are assigned to the corresponding document types.
    Copy to Company Code
    In this activity, you can copy intervals of document number ranges from one company code to other company codes. To do this, you have to store the following information:
    Intervals which are copied
    To fiscal year(s) (validity limit up until which the number range is valid)
    Company code from which you copy (source company code)
    Company code(s) into which you copy (target company code(s))
    Activities
    Make all necessary specifications for copying the number ranges.
    Note
    The number ranges are only copied into a target company code if no number ranges exist there within the selected "To fiscal year" interval.
    Notes on transporting
    The documentation for the step "Define document number ranges" describes how to transport document number ranges.
    Copy to Fiscal Year
    In this activity, you can determine which intervals of document number ranges are to be copied from one fiscal year into another per company code. To do this, you have to define the following information:
    Company code(s) within which you copy
    Number range number(s) which are copied
    Fiscal year from which you copy (source fiscal year)
    Fiscal year into which you copy (target fiscal year)
    Activities
    Make all necessary specifications for copying the fiscal years.
    Note
    The number ranges are only copied per company code into the target fiscal year if no intervals exist there for this fiscal year.
    http://help.sap.com/saphelp_47x200/helpdata/en/2a/fa02e3493111d182b70000e829fbfe/frameset.htm
    Regards,
    Shiva Kumar

  • Whare we assign number range fi document

    Hi Friends,
                                Iam posting J1is but in this Fi document is not genarated  where assign the mumber ranges for this Fi document

    Hi Kavitha,
    In the SAP System, every document is assigned a number that identifies it uniquely within a fiscal year and company code.
    There are two types of number assignment:(i) External- By the user (ii) Internal- By the system
    Number range in SAP system can be defined in following way.You can define number ranges for each company code. Thus, each company code can use the same number interval.You can define number range intervals as year-specific.
    You define number ranges in the system separately for master records and documents. You can therefore use the same number range keys for both master records and documents.
    In the Financial Accounting (FI) component, you can also define alphanumeric number ranges. In this case, however, the document numbers can only be assigned externally.
    In Customizing for Financial Accounting, carry out the activity Define Document Number Ranges under Financial Accounting Global Settings -> Document ->Document Number Ranges.
    For every number range, you must specify the following parameters:
    A key, a validity date (a year value) until which the number range is valid and an interval from which the numbers are chosen. The intervals for number ranges must not overlap. Whether the number range is used in internal or external number assignment.
    Kindly award poits if I had been of help to you.
    Rgds
    manish

  • Material Documents number range

    Can set number range for Material documnets as a year dependent ?
    How to set it?
    In our system I am not able to set new number range for the new Fiscal Year . There are predefined number ranges . with validity year 9999. and year field displays gray . Also there is no optin for new entries
    I need new number range for new current fiscal year .
    Pls help . If possible in some detailed way

    Hi,
    Go to OMBT, click on Group in change mode, select the material doucment which you want. Then click Shift + F5, then select the line which shows year as 9999, then click F6. Now specify the year & give the number range interval as per your need.
    Save & then transport the number range to your production system.
    Regards,
    Vivek

  • How to control Held documents number ranges

    Hi Gurus.,
    pls tell me How to control Held documents number ranges.,
    its urgent .one of my client asking separate number ranges for held documents
    with regards
    ramesh

    Dude,
    I understand you are refering Hold Document not Park document. Becoz Park document use the same number range which is used for normal document posting. However, for Hold Document Number ranges, i advice you to liaise with your Abaper for BADI/Exit/ or etc etc.....for maintaing a specific number range or validation of number given.
    pls assign point if useful

  • Special Ledger- Number Range

    I am in the midst of preparing year end closing. Please advise , how to create number range for Special ledger and Profit center
    Very urgent Please
    Thank you

    Hi
    T.codes to create Special Purpose Ledger number ranges
      Local Ledgers  : GB04
      Global Ledgers : GB05
    For profit center there is nothing like maintaining number range but, we will assing number ranges to the Business transactions, T.code for maintaining number ranges for CO Business transactions : KANK
    Let me know if you require any further info
    Kalyan
    Assign points if helpful

  • How to find next number range for project definition in tcode CJ20N

    Hai Experts,
          Please help me 'How to find next number range for project definition in tcode "CJ20N". I was trying in function module NUMBER_GET_NEXT. Is it right function module? If its right what input i need to give for this tcode and for the field project definition?
    Note: I searched in forum before posting, but couldn't find the solution.
    Thanks
    Regards,
    Prabu S.

    Hi,
    For project defination internal number is assigned by system.
    When you saves's project then system allocate one number to project defination, you can view it,
    SE11 >>> table  PROJ >> Click on contents >>> execute,
    here you will get your project defination & number is assigned to project defination.
    kapil

  • CRM ISA R/3 Edition on AP 7.0  Pricing Routine Number range error

    Hi Experts,
    For our R/3 ISA Secenerio I have developed a Pricing Prepare Routine (PRP). I have uploaded this routine into AP 7.0 ( which runs my IPC 5.0). Now when I try to register my PRP routine I'm not able to do so because of Number range not defined for Application V Scenerio A and Routine Type PRP.
    My question are:
    <b>1)</b> For a PRP type Routine( Multiple Implementation) is it important to assign a
        routine number?    ***( according to pricinguserexit manual dummy routine no
                                      has to be assigned)******
    <b>2)</b> If yes then how can i assign Number range for this combination.
    NOTE: AP 7.0 has SP 7 ( So it fullfills requirment for Special scenerio)
    I have never recieved a reply for my query from this forum... hope someone helps this time. <b>:)</b>
    Regards,
    Dipender Singh

    go to http://www.configuration-workgroup.com/ and find technical doc about IPC 5.0 that i presented at Marco Island in 2006.

  • Accounting document number range by division

    We have a customer that has the following scenario: One company with two divisions, for differente countries.
    Company code: 200
    Divisions 281 and 284
    When trying to release to accounting in VF02  a document created in division 284, is it possible to assign it to a different number range than the one used by division 281 ?

    Hello,
    If this a real scenario?
    Ideally speaking for operations in each Country we create a seperate Company code. (except for Euro one)
    Secondly Division is a two character field not three character as you have mentioned.
    Further I feel your requirement is not possible with SAP Standard settings.
    But if you sales Invoice number ranges are seperate for each Division, then there are couple of threads in the forum explaining the process to have same Sales Invoice & Accounting Number Ranges. Request you to search the forum & you will find a solution.
    Thanks,
    Jignesh Mehta

  • Excise invoice number range - for selling to SEZ

    Dear All,
    While creating excise invoice for selling in SEZ unit, Excise invoice type is taking Deemed instead of LOU.  Because of this system is asking to allocate number range using J_1IEXLOC number object. Series group is 12 for EXPORT. As selling to SEZ is export under LoUwe would like to use number range in combination series group 12 and   number object J_1IEXCEXP which is already maintained for export under LoU.
    Please give solution as soon as possible.
    Regards,
    Sagar

    Dear Sagar,
    Because in case of SEZ, they get a special status by the Tax authorities in which various Tax scenarios doesn't come into picture, they can be a export oriented org and so get exempted from duties like Excise etc in normal scenarios but the SAP system picks the number range object J_1IEXLOC or J_1IEXCEXP based on your ship to party..and some other factors...so obviously in deemed export your ship to party will be within India, check with your ABAPer...that is why in case of deemed export J_1IEXLOC is getting picked by the system.
    In case you want to change..you need to write a exit..say for these kind of customers..maintain a seperate customer group..and from that system should check which number range object should be picked.
    Thanks,
    N

  • Excise invoice number range for Depot

    Hi All,
    Pls guide me to assgin excise invoice number range for Depot.
    My client asking me to assgin domestic and export excise number range for Depot.
    pls clarrify:
    What are the purposes of the number range objects  J_1IEXCLOC and J_1IEXCINV? In which conditions 
    1. either of the two, or  2. both the objects should be used?
    Thanks,
    Muru..

    Dear Murugan
    Please search in forum you can have ready made answers available.
    System will always assigns one number for excise(where user can use Official document number) also an internal number for statistical purpose.(internal number for excise)
    You can see all these numbers in tables J_1IEXCHDR/J_1IEXCDTL.
    Just enter one excise Invoice number in the above tables & compare these with the objects J_1IEXCLOC/J_1IEXCINV...you will get more clarity
    Hope this helps.
    Phanikumar

  • How to change Number range to Contact Person in Customer Master Record

    Dear all,
    We are maintaining contact person details under contact person tab in customer master record.
    Currently contact person is being created using VAP1 transaction.
    Can we automate this contact person creation by entering the data in contact person itself?
    and where can we change the number range of contact person.
    I have searched a lot to find the solution for this. Please help me to resolve this issue. Your suggestions will be highly appreciated.
    Best regards
    Venkat

    Hi Venkat,
    To your first question: "Can we automate this contact person creation by entering the data in contact person itself?"
    Yes, you can enter the contact person directly in the customer master in the contact person tab. A number is generated automatically.
    To your second question, go to transaction SNUM, and there use object "PARTNER". Here you can configure number range for contact persons.
    Hope this helps,
    Regards
    Nikhilesh

  • Number ranges for Business Partner

    Hello experts,
    Can you please guide how to define different number ranges for differenet different parner functions such Bidder and Employee.
    Presently when I create a new employee for a Business partner who has newly registered with SRM, they both are getting same range of BP number, which makes the user list very long to manage/search while creating BID/Auction invitation.
    Please guide me. Thanks in advance
    Vijay

    Hello,
    find below the settings of table T77S0 in our system. We use grouping Z4 for org units. Be aware of the fact that number range and grouping have to have the same ID in this case.
    Regards
    Wolfgang
    GRPID SEMID GSVAL      ETEXT
    HRALX HRAC  X          Activate HR Integration
    HRALX MERID X          Enter Integration Error in IDOC
    HRALX MSGRE 0          Recipient of Error Message When Creating BP
    HRALX OADBP            Business Partner of Standard Address
    HRALX OADRE            Address Necessary for Business Partner?
    HRALX OBPON ON         Integration O-BP Activated
    HRALX OBWIG X          Ignore Business Partner Warnings
    HRALX ONUMB 2          Business Partner Number Assignment (Org. Unit)
    HRALX OPROL BUP004
    HRALX OSUBG Z4         Business Partner Subgroup (Organizational Unit)
    HRALX PALEO            Log: Organizational Units in ALE
    HRALX PALEP            Log: Employees in ALE
    HRALX PBPHR OFF        Employees Are Replicated from HR System
    HRALX PBPON ON
    HRALX PCATS            Integration P-BP for CATS Activated
    HRALX PINAC            Activate ALE Distribution of Inactive Employees
    HRALX PLEVE 3          Log: Detail Level of Error Messages (1 - 5)
    HRALX PNUMB 3          Business Partner Number Assignment (Employee)
    HRALX PPROL BUP003
    HRALX PQUAL            Import Qualifications
    HRALX PRTON            Log Active
    HRALX PSUBG            Business Partner Subgroup (Employees)
    HRALX PSYNO            Log: Organizational Units in Dialog
    HRALX PSYNP            Log: Employees in Dialog
    HRALX USRAC X          Create Relationship to User

Maybe you are looking for