Change a standard Warning message

Hello all,
Here is my issue :
I'm using a type BigDecimal which is formated like this : 0.# so as to not allow the use of the " , " as a decimal separator.
Actually when a user use this " , " there is a warning message which is :
"Enter the value in the format -2733.3"
And I'd like to have a warning message such as : "Please use a number between 0 and 99.9"
I know I have to add a part of code to realize my own check but I don't know exactly how.
Thank you for your answer and your help.
Warm Regards

One dificult solution its that you make those elements Strings instead of BigDecimal.
then youll have to check whether or not the String its a propper Decimal. You could do that making your own definition using the String.match(). If its not what you want then you put your custom message.
Or you can use the libraries that ninit gave you for validation
public BigDecimal validate(String value, Locale locale)
Validate/convert a BigDecimal using the specified Locale.
Parameters:
value - The value validation is being performed on.
locale - The locale to use for the number format, system default if null.
Returns:
The parsed BigDecimal if valid or null if invalid.
After you check if it is a propper Decimal you have to convert the String to BigDecimal.
Its really nasty doing this ...
Also when you show the BigDecimal values, that must be for a currency, you have to change the . for , and viceversa so you have to use a String type again with a replace function or the java.util.Currency class
Another solutions are wellcome
Edited by: Jean Carlo Abreu on Jun 16, 2009 7:31 PM

Similar Messages

  • Standard warning messages in Vendor Request Form

    Hi All,
    Please let us know, how are the standard warning messages in Vendor Request Form while creation/search are displayed.
    For example, I am getting an soft warning message text, at vendor creation which says "Some of the records were not found; for more information, check the log".
    Here we don't have any log traces to be checked for, and we have verified the back end record resultset count which is same, irrelevant of the warning message being shown.
    These messages are displayed only at two places:
    1) The search navigation page, where all the searched record results are displayed and we continue further for creation of vendor workflow.
    2) When the workflow of vendor creation is completed, along with the "Workflow has been completed" success message, this warning message is also shown.
    I want to know, from where these messages are being populated and how to suppress these messages.
    Kindly suggest.
    Thanks in advance!
    Message was edited by: Oxana Noa Zubarev

    Hi All,
    Attaching the screen shot for refernce:
    After we click on "continue with create/edit" button, after few details have been entered, the work flow completes.
    There are we are getting these error message as highlighted above.
    Let me know if any info from my end would help in getting the root cause.
    Thanks in advance.

  • Changing the password warning message

    The password component of our credit card statement comprises of upper case alphabets only. However, if i enter an incorrect password, it gives us a warning message that "Please make sure your caps lock is not on by mistake". This is an incorrect message for us since the password works only with the upper case in our scenario. Please help in changing this warning message while trying to open the PDF. Am also attaching the screen shot.

    This is just a general 'incorrect password' warning, with a suggestion for a very common mistake.  I don't think the checking mechanism actually checks for upper/lower case characters.

  • Is there a way to change the Pending warning message

    I am working on an enterprise wiki site collection, and for the versioning setting i defined that the content requires approval, and any user can see the pending pages. so when users add/edit a wiki page they will get the following message at the top of
    the page:-
    so my question is how i can modify the message text, because i defined that any user can read the pending pages, so the default warning text become misleading "Visitiors can not see this page until it is approved.."?.
    so is there a way to modify the warning message ?

    Changing that message would change it everywhere in the farm, which is probably not what you want.  I would suggest creating a short JQuery script that executes on page load and swaps out the message in the DOM to what you want the message
    to say.  That way you can do it only within the context of your Enterprise WIKI.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.
    so is there any helping links to write such a jQuery ? as seems this is a bug in sharePoint , as the warning message will not be consistent with the versioning settings (if we specify to allow all users to see pending contents!!)

  • Is there a way to change the standard email message?

    Hi,
    I'd rather not have the message "Russ Conte has invited you to ..." as the message that is sent out for each invitation. Is there a way to change that without having to go in and change every single time it is used? Is there a preference for the text that is used, so I can edit it to be what I want?
    I'm using iCal 2.0.5
    Mac OS X 10.4.11
    MacBook Pro 2.33 GHZ, 2 MB RAM
    Any help or advice is most appreciated.
    Thanks,
    Russ Conte

    At your own risk ...
    Ctrl-click on the iCal.app file in Applications and select Show Package Contents. Locate the English.lproj folder in the Resources folder of the Contents. Find file ITIP.strings and make a duplicate (so we can restore if things go badly). Open ITIP.strings with a text editor (BBEdit, TextEdit or whatever you use yourself). Scroll down to find
    /* Mail body when sending an invitation to an event (IP 56) */
    "%@ has invited you to the iCal event: %@, scheduled for %@ at %@ (%@). To accept or decline this invitation, click the link below.\n" = "%@ has invited you to the iCal event: %@, scheduled for %@ at %@ (%@). To accept or decline this invitation, click the link below.\n";
    The text that is used (and that you can change) is the text to the right of the "=". You may need to restart iCal after saving any changes. It is quite possible that your changes, if they work, will not survive software updates.
    AK

  • Need to change the standard error message when no data found in a window

    Hi All,
    We have a button in our screen, on clicking we show a window with details from a view for the selected record in the screen using master-detail relationship.
    But, if i dont have any data to display, it is giving standard message,
    " FRM-40350 Query caused no records to be retrieved " in a seperate window,
    And if i click on Ok then the window is opening up with no records/data.
    My Requirement is to
    1. I need to show a custom message(some user friendly mesg) instead of standard mesg
    2. And the window should not open at all.
    I tried putting with :system.message_level=5 to suppress the standard mesg. But how we can achieve other two requirements.
    And this should happen at block level only not at form level.
    Please suggest me in this.
    Thanks
    Pavan

    Hi,
    No, I have just put my original code.
    This is what i have tried based on our suggestion.
       BEGIN
              IF event = 'WHEN-BUTTON-PRESSED'
                   --AND cnt <> 0
              THEN  
              GO_BLOCK('XXSCP_GBL_CUST_PEG_V');
          EXECUTE_QUERY;
          l_chr_so := :xxscp_gbl_cust_peg_v.sales_order_number;
          fnd_message.DEBUG('SO:'||l_chr_so);                                                                    
          :parameter.p_excep_detail:='FALSE';
              IF l_chr_so IS NOT NULL
                   THEN
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_CON');
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_STK');
              app_window.set_window_position('XXSCP_GBL_CUST_PEGGING_WIN',
                                             'CASCADE',
                                             'XXSCP_GBL_EXCEP_DETAILS_WIN');     
          fnd_message.DEBUG('xx');                                                                    
          END IF;                                        
          ELSE
              NULL;
              END IF;
        EXCEPTION
             WHEN OTHERS
             THEN
             NULL;
       END;I can see, its not going to IF conditon, stil the window pops up.
    Thanks
    Pavan

  • Change Standard SAP Messages

    Hi,
    how can I change the standard SAP messages in Web Dynpro Java?
    Thanks in advance.
    Elvez

    Hi Maksim,
    thanks for your fast reply.
    With "Standard SAP message in WDJ" I refer to, for example, the messages you get when you enter "asdf" into an inputfield binding a context attribute of type date.
    /Elvez

  • Disable a standard AMImpl Warning message through Customization

    Hi Team,
    Through Customization apporach, can we disable standard Warning Message(in AMImpl) through Custom Manage Bean.
    If so can you please tell me approach & sample code to be written.
    Thanks,
    Anil

    Anil
    I am not sure of the exact use case you have in mind. However, AMImpl or any other java file is not customizable by any means.
    Hope this helps
    Thanks
    Vik

  • Convert Error message to warning message

    Hi Experts ,
    At the time of creating RFx we are getting an Error message "Delivery date is before the submission deadline 19.07.2011; check item 0001"
    Now I want to change the Message type from Error to Warning ..
    How can i convert the message type as it i s a standard one .
    Thanks ,
    Sandeep .

    Dear Ricardo Cavedini,
    I feel that this message cannot be switched to warning, since it is against the RFX process to publish it with an earlier delivery date.
    I also 100% agree with you that, it should be a error message and it may not be changed to a warning message...
    However I have a similar issue with some other message, could you please visit How to remove warning message "you are offerring itemxxxx for free"? and put your valuable answer?
    Ganapathi

  • Is there a way to expand the text area of the login/lock screen for the warning message?

    I put our company's standard warning message in the Security & Privacy system preference ("Show a message when the screen is locked.") and it overflowed the allotted text area for the warning message text on the login screen and lock screens.  It seems that the area allows about 250 character messages and I need to provide about 500 characters.  Is there any way to expand the text area allotted for this purpose?
    Bob Reed

    To be a little more specific about the challenge I'm facing, I want to increase the allotted text space for the field I've outlined in the attached image.  Seems like there ought to be a NIB file that could be edited to accomplish this task:
    I would appreciate any advice on which file should be edited to expand the text field.
    Bob Reed

  • Change error message to warning message

    Hi Experts,
    How can we change error message to warning message.
    Eg: T-code : SE91 shows the message. If i want to change message class PG, message no 26 error to warning what will be the process.
    Regards
    Ratan

    Hi Ratan,
    Message class PG is used in the below mentioned Standard SAP Methods and Includes, So it is not suggested to change the SAP standard code.
    Regards,
    Raja Sekhar

  • BOMBOS interface "warning" message after changes saved in the BOM.

    Hello,
    We our client is facing an issue, regarding BOM change / Modification in CS02.
    After any modifications saved in the BOM (transaction CS02), in SLG1 transaction system gives u201Cwarning messageu201D as given below.
    1.     Entry already exists in the work list
    For components, system is giving following message.
    2. Item material PPA_FORM_NU001 (Material number) is not assigned to a specification
    We found one note for this u2013 u201Csapnote_0000893616_BOMBOS_Specification not foundu201D, this note is already applied in the program by SAP at 2005.
    Because of this note, program creates the message in SLG1.
    We also found that, in the IMG customization >>>
    Environment Health & Safety > Product Safety > Bill Of Material Transfer > Specify Environment parameter & condition for the parameter u201CBOMBOS_WL_DIALOGu201D parameter value is u201CXu201D. If we remove this value, then system gives error message in the SLG1.
    We want to know,
    1.     Why we have such entries in SLG1?
    2.     What is the goal of this standard BOMBOS interface?
    3.     What is the impact of this warning message in the process of the transaction?
    4.     To solve this, is there any solution?
    Please confirm us.
    Thanks in advance.
    Edited by: Hemant Baviskar on Apr 27, 2009 11:25 AM
    Hello, Can any body help me on this?
    Thanks

    Hello,
    To rectify this issue, please refer the SAP Note - sapnote_0000683420 and make the changes accordingly.
    Thanks
    Best Regards

  • Issuing a warning message while changing the payment terms in FB02

    Hi Gurus,
    The requirement is as follows:
    For a particular payment terms meant for customer only when we change the payment terms in FB02, the system should give an warning message.
    For example - A customer has the payment terms 0001in his master data and thus in the accoutning document as well after releasing billing to accounting. An user wants to change the payment terms to 0070 being in FB02. As and when he puts the payment terms 0070, the system should give an warning meesage saying 'bla bla bla ........' or the same message at the time of saving the document.
    How to make this possible. Please help.
    Rgds,
    BABA

    Mr. Tiwari,
    This is the standard feature of SAP!!!  You get below messages
    1)
    Net due date on 05.10.2007 is in the past
    Message no. F5149
    Effects on Customizing
    You can define when this system message is to be issued in accordance with your requirements.
    You do this in Customizing as follows: Cross-Application Components -> Bank Directory -> Change Message Control.
    The application area and message number can be taken from the technical documentation.
    2)
    Net due date on 05.10.2007 is in the past
    Message no. F5149
    Effects on Customizing
    You can define when this system message is to be issued in accordance with your requirements.
    You do this in Customizing as follows: Cross-Application Components -> Bank Directory -> Change Message Control.
    The application area and message number can be taken from the technical documentation.
    Terms of payment changed; Check
    Message no. F5231
    Effects on Customizing
    You can define when this system message is to be issued in accordance with your requirements.
    You do this in Customizing as follows: Cross-Application Components -> Bank Directory -> Change Message Control.
    The application area and message number can be taken from the technical documentation.
    Regards
    Santosh Hegde

  • To change the warning message to error message in VA01.

    I want to change the warning message into error message in the standard VA01 transaction..
    The steps I follow :
    order type -->
    enter
    sold to part -->
    ship to party -->
    Purch order no -->
    Req deliv date -->
    Material -->
    Order quantity -->
    SU -->
    enter.
    The warning error dispayed is
    No add. vendor / customer data maint. for 16320340 - please maintain J_1IMOCUST...
    Want to change the above into error so that it shud not go further.

    Hi Arif,
    Click on Save  Icon.
      System will give information: No add. Vendor / Customer data maint. For INJ95C01 -Please maintain J_1IMOCUST.<b> Ignore it.</b>
    Result
    System will calculate Price of the Material creates Schedule Lines and saves the document. System will give a message: Standard Order has been saved.
    <b>**REWARD IF THIS HELPS WITH POINTS**</b>
    Regards
    AK

  • It is possible to change any warning message type to error message type?

    Dear All,
    Kindly do your need full efforts to solve this problem;
    For T code iw32, material avaibility checks works but it gives warning message as per error message required at this point.
    It is possible to change that message 281 i.e. Order & has missing parts to an error message rather than a warning message.
    Kindly provide your valueable suggestions regarding it.
    Do tell about any badi or echancement spot or user exits where error message can be incooperated.
    Thanks in advance.
    Regards,
    MAA

    Dear Rohan,
    Problem not facing problem due to any code, i think u r not getting wht i am saying.
    Let me explain in detail.
    While creating order from t code iw31, material avability checks works and it is working fine and generating a warning mess in case of out of stock case. Requirement is to transform that warning mess to error mess.
    Just need to know how can i change standard warning mess to error mess so that error mess displays in place of that warning mess.
    Kindly suggest its solution for it .
    For any query free feel to contact.
    Thanks.
    Regards,
    MAA

Maybe you are looking for

  • Changing the default view for material

    Hi, I am trying to add views using MM02.  It is showing me just 5 views ...BASIC DATA1, BASIC DATA2 etc..... I want to add other views eg, Quality Management but am not able to do it. I tired doing the following: Go to mm01      - Enter the material

  • Indesign CS6 - PDF = Fuzzy, Redish Text

    Hello folks, I am looking for some assistance with printing a PDF I've created from InDesign.  I've scoured these and other fourms, but to no avail.  Here's a copy of the PDF for anyone to analyze: http://www.nhceh.org/GL%20Sponsorship%20Packet.pdf H

  • HT3680 how to free up space if startup disk is full

    How do I free up space when the startup disk is full?

  • How do I export or print a batch of Contacts?

    It's easy enough to export or print individual Contacts from one user to another. But how can you export an entire library of Contacts, as from one family member to another?

  • Querying user information fails 711..?!!!!

    Hi, my phone is Asha 303.... I get crrrrrrazy with noka's problemss,, i need help i feel that i bought my phone to solve its problems!!! Now with the new problem that when i open site in many times there is message ((bad Fu...in message)) say ((Query