Number Field - Decimal Sign

Hi,
i have a number field. When the user inserts a value for example 5,2 it should be automatically converted to 5.2 and inserted in the database. Instead it's inserted as 52.0
When the user inserts 52,2 into the field, the error 'MTTRi [months] does not match number format 90D0 (Example: 3.5).' is shown. Why is this error not shown when the user is inserting the value 5,2?
The format mask is 90D0.
Has anybody an idea how to achieve this?
Best Regards,
Martin

Hi Martin,
the TO_NUMBER format mask conversion tries to fix user errors. If you want to have a more restrict format mask handling, try to use the FX prefix.
From the online doc at http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements004.htm#i170559
FX Format exact. This modifier specifies exact matching for the character argument and datetime format model of a TO_DATE function:
-) Punctuation and quoted text in the character argument must exactly match (except for case) the corresponding parts of the format model.
-) The character argument cannot have extra blanks. Without FX, Oracle ignores extra blanks.
-) Numeric data in the character argument must have the same number of digits as the corresponding element in the format model. Without FX, numbers in the character argument can omit leading zeroes.
When FX is enabled, you can disable this check for leading zeroes by using the FM modifier as well.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Similar Messages

  • Number field does not display trailing zero after decimal

    Hi,
    I have a Text Item of type number with size set to 6.
    if the database value = 19.10, the
    number field displays 19.1
    I want to display the complete 19.10 in the field.
    How do I do it?

    SET FORMAT MASK property of text item to 990D00.
    If the value is just "10" ie without decimal, displayed will be "10.00".

  • How to get the number of decimal places configured for a site column

    Hi,
    I have a column 'SampleNumCol' of type Number, the number of decimal places to be displayed is configured as 2.
    The column conatins a value, but when retrieved programatically is displayed as 5.00000000  instead of 5.00.
    I am retrieving this column using listitem.Properties[field.InternalName].
    I need to trim the decimals based on  number of decimal places configured for the site column.
    How to get the number of decimal places configured for a site column?
    Thanks in advance,
    dhijit

    Get the field as SPFieldNumber and then check DisplayFormat which returns
    SPNumberFormatTypes
    SPFieldNumber numberField = list.Fields.GetFieldByInternalName("YourNumberFieldName") as SPFieldNumber;
    SPNumberFormatTypes numFormatType = numberField.DisplayFormat;

  • Change number of decimal in general settings after working .

    Hi,
    My customer was upgarded to sap2007 and changed the number of decimal in the "Amount" field to 4 ( it used to be 2)
    now after working a while he needs to change it back.
    Do you know what are the consequences of updating this field using an update query?
    thanks.

    Disaster - first SAP does not permit direct updates to the database it is a violation of agreement with both customers and partners.
    Second - even if you were to update the field your reports, fiancials, etc would never match due to rounding and display differences.
    I am guessing that the client does not like the 4 decimals on the forms and if this is the case they could be changed to display a rounded field by creating a new field, linking to the old field and using a formulae such as round(field_123,2). You would then die the old field.
    It is for this reason that SAP clearly warns you that setup of decimals are critical and cannot be changed after transactions are entered.

  • How to prevent users from entering '+' or '0' in front of country code in the phone number field?

    Requirement:
    How can I prevent guest users from entering '+' sign or '0' in front of country-code in the visitor phone number field during self registration?
    Few SMS service providers are not looking for '+' sign or '0' or '00' in front of the international phone numbers to trigger the sms. Providing these values in front of country code during self-registration may fail to deliver the sms to recipient.
    Solution:
    Using a simple regular expression, you can validate the entered phone number during the guest registration. 
    The below regular expression will help you to validate the phone number and allows to register only  when the phone number is not staring with '+' or '0'. 
    ^[1-9][0-9](\d{7}|\d{8}|\d{9}|\d{10}|\d{11}|\d{12})$
    It also performs the below validations.
    only numbers are allowed.
    first digit of the entered phone number should be 1 to 9, so '+' or '0' is not allowed. 
    numbers from 0 to 9 are allowed from the second digit.
    also validates phone number length, the length of the phone number should be 9 to 14.
    Configuration:
    To add the above regex in the visitor_phone number filed, please navigate to ClearPass Guest >> Configuration >> (Pages)Guest Self-Registration >> select the self-registration page and go to Edit >> Register Page >> Form >>  select the filed visitor_phone and set the Validator to " ISRegexMatch" and enter the above regex in the Validator Argument filed as shown below.
    Note:  Edit the Validation Error as per your requirement.
    Verification
    Adding the given regex will validate the phone number and prevent the guest user from registering the phone number starts with '+' or '0'.
    Please find below the sample outputs for your reference.
    Result when phone number starts with '+' or '0'.
    Successful registration.

    Is this a Mac Preview issue?

  • BEx Analyzer displays wrong number of decimal places after implementing BW patch

    Hey folks,
    we patched our BW 7.31 from PL10 to PL15 last weekend and now we got some issue with the number of decimal places shown in BEx Analyzer 7.x.
    One example for KF X
    Settings Info Object X
    Decimal Places:                         Not defined
    RSRT - Display X
    Shows 3 decimal places
    Query Designer Settings using KF X
    Number of Descimal Places:     0  [Use Default Settings: NO]
    BEx Analyzer Properties for KF X
    Decimal Places:                         0
    Resulting in BEx Analyzer workbook shows 3 decimal places instead of 0!
    Anyone with an good idea about that?
    Thanks,
    Andreas

    Hi Andreas,
    Have you used the list calulation like "Calculate Result As Average" or "Calculate Single Values as normalization of result" in the relevant key figures?
    For "Calculate Single Values as normalization of result",iIt is the known design that it is always displayed with three decimal places for normalized values, and the setting in Query Designer for
    decimal place doesn't take effect.
    For "Calculate Result As Average", the following note maybe relevant.
    2096911 - Decimal places in query result is wrong, if average is used and display precision is set to less than 3, it will always show 3 decimal places.
    Another clue is to check if the key figure is a Quantity type with unit, and what's defined in table
    T006 field ANDEC for this unit.
    Hope this helpful.
    Regards,
    Ceciclia

  • Web Forms Number Field - Not processing decimals!

    We have created a monster web form on a clients site. As it is, we have had to setup an API to deal with the data after its been generated by BC and modify it before sending it on to the client. The client saw no reason for fields that did not have anything entered against them to be sent through in the workflow notification - and I agreed. 
    Now after all these other problems have been resolved, I discover that all my  "number" fields cannot process a decimal place, and they round up or down. BC have suggested I need to recreate the form and just make them all 'text strings'.
    Not good enough. Its an EPIC form with over 100 fields in it. We, in good faith, read the instructions that can be found here: http://kb.worldsecuresystems.com/478/bc_478.html?bc-partner
    that state "Number - a text box that must have a number entered into it". No note about NOT using decimals!
    The confusing thing is, it lets you enter the decimal from the front end, even displays the web form confirmation page correctly with decimals. But when it creates a case in BC, it rounds the numbers. So its only at this late testing stage that we have discovered the issue
    Does anyone have any ideas about faster ways of re-creating this entire form ?
    I did submit a support ticket, and was told to switch to the old UI and then just change the type of the fields. But when we try to change a form field from 'number' to 'string' it brings up the message "WARNING: Field updated successfully but type not changed as field has associated values.". Then they said to:
    Copy that specific webform change the type fields of the form and then remove the old webform and re-name this one copy with the first webform name. The copy option is available under the link I have provided to you.
    However this still means we need to change *all* the fields and then get every field' s ID and insert it into the javascript. Very very time consuming
    So A) everyone else be warned and B) Does anyone have a shortcut?
    Thanks!!

    Thanks for confirming my fears
    Its a shame that since its such a long standing thing, it hasnt actually been added to the knowledgebase... which when we started this project (long before this schmozzle of a new system was introduced) was the most relevant place to look.  When I start something, I tend to look in the KB.... not think "oh perhaps I should check the FAQ's in case there is a long standing issue that isnt contained in the KB".

  • Entering a letter in a number field

    Hi there,
    I am using structure binding for many of the contexts in my application to get all the data types automatically. It works ok, but when the data type is decimal, like a currency field, and if the user types in any letter in that field, it is looking at parsing the Decimal and raises a nullpointer exception. You cannot catch the exception on an action because it does not reach to the action code, and the application is terminated before that. I thought that just like in R/3, where the system automatically gives an error if a letter is input in a number field, the error handling should be automatic here as well.
    Does this mean that I cannot have decimal types in webdynpro, referencing corresponding decimal types in R/3 just because it gives up an exception if the user enters wrong data?
    Is the only solution to change all my data types to Strings without referencing any data element?
    Any help would be appreciated,
    Thanks,
    LM

    Hi,
    Please refer to the messages in the thread. Opened OSS message. SAP got back saying that it is resolved in SP17 and have to upgrade. Thats not very handy for me at this stage because there is no plan of upgrade.
    Meanwhile, I noticed that another field, which is currency as well, does not throw up the exception, and SAP also validates the field and asks u to enter the data in the desired format. Which is good. But what I cannot figure out is why this field is working and why a similar field is not working.
    Even stranger, I assigned this field to all the currency fields in my application,which worked fine one day, but this morning I find that it has stopped working!!
    Any idea why
    1) One particular currency field is working, whereas others dont? (The only difference I can see in this currency field is that it is a Z field and not refer to sap std domain).
    2) Why it worked one day and then stopped working when I changed the data type to this field.
    I know these questions are vague, and you maynot have a readymade answer, but just checking..you could have faced a similar issue..
    Many Thanks,
    LM

  • Decimals added when to_char is used on number field

    Hello Forum Experts,
    When I do a to_char to number field sometimes I see decimal values appended.
    Can you please explain me about the following:
    SQL> select regid,to_char(regid) from region where rownum < 3;
    REGID TO_CHAR(REGID)
    420080813073001 420080813073001
    420080813073001 420080813073001.1
    Thanks

    Hello Damorgan,
    Apologies for insufficient information.
    I am using oracle 10g.
    SQL> desc m_region;
    Name Null?
    Type
    RegID NOT NULL
    NUMBER
    REGNAME NUMBER
    VARCHAR2(50)
    SQL> select regid,to_char(regid) from region where
    rownum < 3;
    REGID TO_CHAR(REGID)
    420080813073001 420080813073001
    420080813073001 420080813073001.1The object you described is m_region but the object you queried is region
    Btw from the description it looks like you created the column RegID as case-sensitive. If so, you would need to enclose all references to this column in double quotes.

  • Count number of decimal

    Hi all,
    I have the table
    List
    flag_circ char(1)
    impo number(11,3)
    and I have to update flag_circ, if the number of decimal of the field impo, are 0 or 1
    For example
    Impo value
    123,444 --> no update
    123,44 --> no update
    123,4 --> yes update
    123 --> yes update
    I'm trying those functions like round, mod, trunc, but don't work!
    Some suggestions?
    Thank's form Madrid
    Paolo

    Hi,
    Try this
    UPDATE list
    SET flag_circ = somthing you want
    WHERE INSTR(impo,'.',1,1) = 0
    OR
    LENGTH(SUBSTR(impo,INSTR(impo,'.',1,1)+1,2)) = 1
    My tests:
    SQL> WITH data_Set AS
    2 (
    3 SELECT 1 row_no, 1221.4554 text_col FROM dual
    4 UNION ALL
    5 SELECT 2 row_no, 1221.4554 text_col FROM dual
    6 UNION ALL
    7 SELECT 3 row_no, 1234 text_col FROM dual
    8 UNION ALL
    9 SELECT 4 row_no, 2343.5 text_col FROM dual
    10 )
    11 SELECT row_no FROM data_set
    12 WHERE INSTR(text_col,'.',1,1) = 0
    13 OR
    14 LENGTH(SUBSTR(text_col,INSTR(text_col,'.',1,1)+1,2)) = 1
    15 /
    ROW_NO
    3
    4
    Regards,
    Raj
    www.oraclebrains.com

  • Filter Accounts With Required Personnel Number Field

    Hello, SAP experts.
    I have a task to make a report which will list all the G/L accounts which have required Personnel Number field.
    I know one way to do this:
    First of all, I run SE16N , enter table name T004F, and then I can see all the field status groups.
    My company has a field status variant with 3 field status groups which have mandatory Personnel Number field - Z040, Z073 and Z074
    I can see that all the three groups have the + sign at the 18th place in the Field Selection field. This marks the Personnel Number field.
    Then I go back to the beginning of SE16N, choose the table SKB1, enter those three groups in the Field Status Group multiple selection screen, and hit the Execute button. Now I have the list of the accounts that I was looking for.
    I was wondering if there is simpler way to do this. It would be perfect if I could make a custom report (using SQVI for example) with the algorithm which will do something like this:
    FOR ALL G/L ACCOUNTS
         GET THE ACCOUNT'S FIELD STATUS GROUP
         IF FIELD_SELECTION[18]=='+' THEN
              ADD THE ACCOUNT TO THE LIST;
         END IF;
    END FOR;
    Thank you very much for any help you can provide

    Thanks for your answer, Vikas.
    Of course, I don't insist on using SQVI. I could as well make a custom report using SQ01..03, but I'm not sure how to check if a particular field_selection character is equal to '+'. To be more precise, I would like to know how to translate the pseudo-instruction...
         IF FIELD_SELECTION[18]=='+' THEN
              ADD THE ACCOUNT TO THE LIST;
         END IF;
    ...into "real" ABAP instructions.
    If you or anybody else can help me with that ABAP part, I'd be grateful

  • Can not change the number of decimal places in the normalization of result

    dear all
        i want to see the proportion of some data, for example, the income of May is 300, and the total income is 1000, i need to display it like 33.33% . so i set the
    Calculate single values as normalization of result, and then it display 33.333%, i like to display only two number of decimal places, so i set the number of decimal places as 0.00, but i doesn't work, it still display three decimal numbers.
        maybe you say i can use the percentage function like %CT %GT %RT, but i need to allow external access to my query, so the i can not use those functions.
        can somebody helps me ? your advice is appreciated.

    hi,thanks for your advice, but that doesn't suit for my problem.
    before i set the normalization of result, i can change the decimal values. After that i cann't.
    In your thread, someone proposes use the T-code OY04. but this wouldn't help. As i change to other key figure, such as user quantity, when i set normalization of result, it still display 3 decimal values.
    i think the point maybe lie in the normalization of result. please advise... thanks...

  • Address Book/iSync - email addresses moving to phone number fields

    I'm not sure what is causing this, but I'm noticing that email addresses in my cards are moving to phone number fields. I originally thought this had something to do with cards that had no phone number in them, only an email address, but now I"m realizing that's not the case.
    I fixes all cards last night and just a minute ago, when I was in Address Book I noticed some or all of the email addresses had moved again. I reverted to my backup from last night and it fixed things, but I'm wondering what's going to cause those addresses to move again.
    I do use iSync to sync my AB contacts to my Motorola phone (I think I have it set up where it's one way, computer to phone) and I have Entourage that's using my AB contacts to populate its address book.
    Any thoughts about what in my environment is causing this?
    -John

    Thank you for the suggestion. I did this, but noticed that some cards were still messed up. So I reverted back to a clean copy of my address book from last night. Then I went to iSync and synchronized with my Motorola phone. That's when iSync says that it's going to modify over 5% of my contacts in AB (122) at which point I said okay. Problem appears to be that the cards it modifies is random.
    Now to make matters worse, it appears that if I repeat this process over and over (revert, iSync, look through cards), there is no pattern to which cards are changing. I don't even know how to troubleshoot this. I'd love make iSync go one way - computer to phone - so that the phone can never write information to the computer. Is that possible?
    I'm sure this needs to go to a different section...
    -John

  • MIGO tr Serial number field and table?

    Hi guys,
                  can anybody tell me how to find the field name and table for Serial number in MIGO tr Code?
                     in MIGO the Serial number field and Structure are GOSERIAL-SERIALNO.but i was not able to find the Actucal Field name and table where i can get the values based on PO and Asset Number's?
    Thanks,
    Gopi.

    Hello,
    I'm looking at the same problem here. I found the table SER03 in which you can enter the the material document. This returns 1 line in this table and from this one you need the OBKNR element
    You can copy this data and paste it into table OBJK element OBKNR and this returns all serialnumbers for the relevant material document.
    My problem is that i can't get these items on the sapscript. (WESCHEINVERS 1,2 or 3)
    Greetings
    Edited by: Lode Vandecruys on Apr 9, 2008 11:04 AM
    Edited by: Lode Vandecruys on Apr 9, 2008 11:09 AM

  • Serial number field and table

    Hi,
    I want Serial number field and table,
    Scenario like this,for returnable packging material we have assigned serial numbers,mtrl type is LEIH,so for tracking of RTP material now we are going to Develop one Report for this i need ur Help.
    Logic is:1)Matrl doc at the time of Delievery.
                Qty,Posting Date,Customer,Mvt type,Serial numbers for all.
                 Beacause at the time of Del we are mentioned all serial numbrs.
                2)Material Document at the time of GI.
                Same field as mentioned as above.
    After that,3)System is to Calculate How many Matrl are deliever to Custmer upto current  Period.Say  10.
    4)Calculte  How many Matrl are Recieved from the Custmer upto current  period.say 5
    5)Del - Issue=Total Number of Material is in Customer side.Say 5
    6)According to the Serial Number wise system has to calculate in which month delieverred matrl is in still customer side.
    (Ex PGI date 20.02.2007  3 qty
    Serial Number    1,2,3
    Issue date    20.03.2007   2 qty
    Serial Number    2,3
    Serial number  1 still is in Customer side.
    Age is 2 month)
    I am giving simple ex.
    so pls any body is having this idea pls Shared with me.
    Thanks
    Raghu

    Hi Raghu,
    Check table SER01(Document Header for Serial Numbers for Delivery).
    OBJK is the object table and you will have SERNR as serial number in this table.
    check table EQUI
                          EQUI -SERGE
                          EQUI-GERNR.
    EQUI-SERGE is Manufacturer serial number.chk if this is the one u r looking for.
    MARC-SERNP.
    key in plant and material in this table to fetch the Serial number profile of the material.
    Check in IKPF AND ISEG Tables... ( inventory )
    MSEG~EQUNR
    Hope it will hep u
    Regards
    Hareesha

Maybe you are looking for

  • Calendar events on iphone won't sync to ical on Mac since iphone 7.0.2 upgrade

    Help! Some events - but not every one -  entered into new Iphone SW 7.0.2 do not sync back to the Calendar (v 4.0.4 from ILife 2009).  I have tried rebooting my systems (computer and phone), as well as re-creating the problem by adding new test event

  • Apple Mail, IMAP messages are mangled

    I have just connected to my IMAP account with Apple Mail. It appears that there is an encoding problem. (It was using Outlook for Mac before because of work obligations, but I'd really prefer to use Apple Mail.) These messages still look okay in the

  • Hyperlink to a Detail Page

    Just looking for some help, not coding, for a site I'm planning. I want keywords in my articles to be hyperlinks that link to the record in the database that they are associated with. For example, if you view espn.com, and you click on any article of

  • Web sites containing mms links work in IE but not Firefox 4.0

    Web sites containing mms links work in IE but not Firefox 4.0. when I play the video in IE, I go into IE, and locate the mms link under properties, when I right click. If I copy the mms link form IE directly into firefox, it will work. There ought to

  • Albums and events in iPhoto

    Does anyone know how to create and delete events and albums in iPhoto for iOS? I want to migrate my iPhoto lybrary from the desktop to my iPad but i cant find a way to do such basic managing.a