Input maximum for field type numeric

my coldfusion page will not let me input 1000000 into my
database (field type in DB is numeric), any thoughts on this
please?
error is
"Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver][SQLServer]Arithmetic
overflow error converting numeric to data type numeric.
many thanks in advance for any help

I'm not sure what you mean by "length" as the two parameters
for the NUMERIC type are precision and scale:
PRECISION: Specifies the maximum total number of decimal
digits that can be stored, both to the left and to the right of the
decimal point.
SCALE: Specifies the maximum number of decimal digits that
can be stored to the right of the decimal point. The default scale
is 0; therefore, 0 <= s <= p.
Are you referring to "length" as the number of bytes? A
number with a precision of 10 would take 9 bytes, otherwise if you
had a scale of 9, such as in a column of type NUMERIC(10, 9), it
would be a number of 10 digits, 9 of which would be to the RIGHT of
the decimal point.
A value of 1000000 should fit into a NUMERIC(10) (default
scale=0) column without raising an exception. What does your insert
statement look like? Are you applying any kind of function to the
value such as using CAST() or CONVERT()?
Phil

Similar Messages

  • Input Help for TIME type field

    I saw below discussion regarding a dropdown for a "TIME" type field.
    Re: Time Search Help
    It's a resuable component (that Thomas Jung created) and find it very slick.
    I just couldn't make it to work. I'm getting a dump when I pressed the dropdown on the "TIME" field.
    I was wondering, has anyone used this in conjunction with select-options (WDR_SELECT_OPTIONS) ?
    I'm getting a system-dump, "Component usage VALUE_HELP does not exist". I double checked the name that I used on the "USED COMPONENT" tab and it is VALUE_HELP.
    During method ADD_SELECTION_FIELD (for IF_WD_SELECT_OPTIONS) I'm using two parameters I_VALUE_HELP_TYPE = 'APPLDEV' and I_VALUE_HELP_ID = 'VALUE_HELP'.
    Maybe I'm not using the right parameters ?
    Anyway, I would appreciate if anyone could give me directions to correct the problem.Or maybe there is another and better way of having an input help for a "TIME" type field on select-option.
    Thanks.
    Vic

    That is because the TIME is a freely programmed value help and freely programmed value helps are not supported by the Select-Options component.  That limited is listed in the online help:
    Type of input help specified as type IF_WD_VALUE_HELP_HANDLER.
    Note that only ABAP Dictionary-based input help and OVS input help are supported; freely programmable input help is not supported.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/bf07361248003de10000000a11466f/frameset.htm
    The reason for this is that the freely programmed value help is accessed via a component usage.  The Select-Options however are a separate component. They have no declaration to your components, component usages.  Therefore they produce the error that the component usage doesn't exist - which is correct.  It doesn't exist in the Select-Options Component.

  • Static input help for DATS type

    Hello,
    I'd like to link static input help for screen field of DATS type. If I click on help linked to this screen field I get CONVT_NO_NUMBER error: 'Unable to interpret "=2" as a number.'
    My steps:
    - In Screen Painter I selected desired screen field and selected DATS type and "1 Show at selection" in its details.
    - I defined global variable with same name as desired screen field
    What's the problem?
    Best regards,
    Josef Motl

    Hi,
    do this way.....
    first declare the variable in program as
    1. data: date type sy-datum.
    2. now go to your screen,(click on F6) use get from Program
    now choose date form it , and say ok, now save it and activate it.
    delete the old one..
    now you will be able to get all the things which you want.
    automatical validation also possible, and F4 also possible.
    Regards
    vijay

  • Change field alignment for field type currency / float

    Hello Experts.
    I have a requirement : I want to align the field in the webUI on the right, not the label.
    Actually for the attribute type currency or float, it is at aligned at the right position.
    I see the configuration description and the XML file. I try to modify that XML file to add the attrinute ALIGN = "LEFT" for the field
    But it is too hard and I want to know if there is another solution that reading/modifying this XML file.
    Thanks and regards.

    Hi,
    I had seen the method get_parameter but how to do this? As I know it, it only change the value returned not any kind of format.
    I think the value is correct but the layout of the field is not correct.
    I can change the *.htm of the class and put some css code but I think it is not the solution.
    Can you help me please? it is urgent.
    Thanks and regards

  • Convert position of sign for field type curr from (2-) into (-2).

    Hello Gurus, i need to have the sign in front of the number without using char type or string fields.
    Can i save a number like -2 to the transparent table in that form.
    All the numbers i work with must have the sign in front.
    The function CLOI_PUT_SIGN_IN_FRONT won`t help.
    Please help. I will reward points.

    Hi
    Try this.
    data : shkzg type c value 'E'.
    data: p type p decimals 2 value 100.
    data: c(18) type c.
    if shkzg = 'E'.
    p = p * -1.
    c = p.
    concatenate '-' c into c.
    condense c no-gaps.
    else.
    c = p.
    endif.
    write:/ c.
    Rgds
    Anversha

  • Hi ,i want provide a input help for a Selection input field

    Hi Experts,
    I want to provide  a input help for field in selection-screen ,
    this field is non primary key Custom Table(Z) selection input field .
    how we can get ,f4 help for this field.
    how to get f4 help Suppose field Link s_mtart-low,s_mtart-high,
    What are the function moduled available for this >
    Thanks in Advance.
    Regards,
    Hitu.

    Hi,
    refer to below code.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_usnam-low.
    **//To provide F4 help to S_USNAM-LOW
    PERFORM f_f4help_usnam USING 'S_USNAM-LOW'.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_usnam-high.
    **//To provide F4 help to S_USNAM-HIGH
    PERFORM f_f4help_usnam USING 'S_USNAM-HIGH'.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_wbs-low.
    **//To provide F4 help to S_WBS-LOW
    PERFORM f_f4help_wbs USING 'S_WBS-LOW'.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_wbs-high.
    **//To provide F4 help to S_WBS-HIGH
    PERFORM f_f4help_wbs USING 'S_WBS-HIGH'.
    *&      Form  f_f4help_usnam
        To provide F4 help to username
         -->P_0019   text
    *FORM f_f4help_usnam  USING    value(p_0019) TYPE any.
    **// To retrieve username from mkpf.
    SELECT bname
            FROM usr01
            INTO TABLE it_usnam.
    SORT:  it_usnam  BY usnam.
    DELETE ADJACENT DUPLICATES FROM it_usnam COMPARING usnam.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = ' '
          retfield            = c_retusnam
      PVALKEY                = ' '
        dynpprog              = c_dynpprog
        dynpnr                = c_dynpnr
         dynprofield          = p_0019
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
         value_org            = c_s
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
      IMPORTING
      USER_RESET             =
        TABLES
          value_tab           = it_usnam
        field_tab            = it_usnam.
      return_tab             = l_it_ret
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    *ENDFORM.                    " f_f4help_usnam
    *&      Form  f_f4help_wbs
        To create F4 help for wbs element
         -->P_0039   text
    *FORM f_f4help_wbs  USING    value(p_0039) TYPE any.
    **// To retrive wbs element from mseg
    SELECT pspel
            FROM pspl
            INTO TABLE it_wbs.
    SORT:it_wbs   BY  wbs.
    DELETE ADJACENT DUPLICATES FROM it_wbs COMPARING wbs.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
      DDIC_STRUCTURE         = ' '
         retfield               = c_retwbs
      PVALKEY                = ' '
       dynpprog               = c_dynpprog
       dynpnr                 = c_dynpnr
        dynprofield            = p_0039
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
        value_org              = c_s
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
       TABLES
         value_tab              = it_wbs
      FIELD_TAB              =
      return_tab             = l_it_ret1
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    *ENDFORM.                    " f_f4help_wbs

  • Timeout on input help for variable

    hi all,
    in a selection screen of a report i have material and material type(navigational attribute of material) as input.
    the report is built on cube.
    only material is coming in cube.
    when i click on input help for material type the screen hangs on the report times out.
    whereas on the other hand if i am clicking help for material i am getting the values.
    this variable is used in other queries on different infoprovider and is running fine there.
    How do i get the values for input help for material type.
    all the standard settings have been maintained(such as query filter selection etc...)
    regards,
    Arvind.

    Hi,
    Activate 0material masterdata.and Regenerate your query in RSRT.
    If the problem still exists then debug the query using RSRT for the perticular field output.
    Thanks
    Kumar

  • Field type for Screen Field

    Dear all,
    Actually i want to store Numeric Value with '+' or '-' sign in module pool's Screen Field.
    how can i store that type of data.
    currently i m declared as a decimal type variable.
    but when value is coming with negative sign in internal table. dum error is occured like this...............
    There was a conversion error in the output of fields to the screen.                                                                               
    The formats of the ABAP output field and the screen field may not match.                                                                               
    Some field types require more space on the screen than in the ABAP                            
        program. For example, a date output field on the screen requires two                          
        more characters than the corresponding field in the ABAP program. When                        
        the date is displayed on the screen, an error occurs resulting in this                        
        error message.                                                                               
    Screen name.............. "ZPPI_SCRAP_RECORD"                                   
                      Screen number............ 9000                                                  
                      Screen field............. "T_ITAB-DIFF"                                         
                      Error text............... "FX015: Sign lost."                                   
        Other data:                                                                               
    Plz help me

    Hi Anshuman Singh,
    Is there any possiblity to adopt the following logic for your requirement?
    Just declare a character field with length of maximum number of digit you want to input plus one.
    Now input with '+' or '-' sign.
    Before processing this value, check for only numbers except sign.
    Now except that sign, assign or write the remaining value to the temprary varibale for processing.
    Regards,
    R.Nagarajan.

  • Controlling of Input width for Password Item Type

    can we control the Input Width of
    password Item Type when the form creation.
    If the Item Type is Password for any field during the form creation, i want to control the Input Width for that field for good
    appearence.Pls tell me the solution.
    Thanks

    Through Functional configuration, this is not possible.  Please carry out coding corrections in USEREXIT_COBL_RECEIVE_VBAP as recommended in the following note.
    Note 1739319 - Cost center in Sales order item
    G. Lakshmipathi

  • Field selection for movement type 601 account 894025 differs for cutomer

    While posting goods after saving delivery merror message
    Field selection for movement type 601/aact 894025 differs for customer goods movement
    I tried OMJJ>Mvtmt Type>601>Field selection enjoy>601  KONTO  Optional field
    Now this is only happening in the cases where I have assigned free goods Inclusive 10MT. If the order is less than 10MT (that is if no free goods attached) posting is accepted & billing & account determination is processed successfully.
    I am unable to identify the reason though I have worked a lot on MM/Fico on the system.
    Please provide your valued inputs why this is happening?
    Thanks for your time.
    Rajiv

    Hi Raja,
    Thanks for prompt reply.
    I shall appreciate if you elaborate how to check
    check the Field selection goup in control tab for that GL 
    I tried OBC$--> (Is this correct?)
    I checked cost center field G004 -->Addl Act assignemtn -->Cost center which is Optional entry. Should I check any other items on the screen as I am unable to understand which field is applicable on a/c field.
    Profit center, cost object are  in G004 as supressed field.
    So should I make optional? So thing will work.
    Other Q should I also consider G025 Inventory adjustment account? As per error this a/c is not shown. So pl advise me steps or heading which I should consider.
    Thanks for yr time.
    Rajiv

  • Input help for a selection screen field

    I have a selection screen with field species and checkoff activity .
    For a given species('sc','sb' or 'ss') , the input values allowed for the
    check off activity must be 'SCCK' for species 'SC' ,'SBCK' for species 'SB' and so on.
    I need to provide input help for check off activity based on the value of the species.How do i do that?

    PARAMETER : p_val(10) TYPE c ,
                p_val2(10) TYPE c.
    AT SELECTION-SCREEN on p_val.
      IF p_val = 'SC'.
        p_val2 = 'SCCK'.
      ENDIF.

  • CAST Not working for me - Arithmetic overflow error converting int to data type numeric - error

    GPM is DECIMAL(5,2)
    PRICE is DECIMAL(11,4)
    COST is DECIMAL(7,2)
    Trying to update the Gross Profit Margin % field and I keep getting the "Arithmetic overflow error converting int to data type numeric" error.
    UPDATE SMEMODETAIL SET SMD_GPM = (SMD_PRICE-SMD_COST) / SMD_PRICE * 100
    FROM SMEMODETAIL WHERE SMD_PRICE<>0 AND SMD_QUANTITY<>0
    Example record:
    SMD_PRICE    SMD_COST    GPM%
    1.8500            1.62                12.4324324324324300
    I added cast and I still get the error.
    How do I format to get this to work?
    Thanks!

    Hi GBerthume,
    The error is caused by some value such as 1000.01 of the expression (SMD_PRICE-SMD_COST) / SMD_PRICE * 100 exceeds the
    precision of the column(DECIMAL(5,2)). The example data doesn't cause the overflow error for the value of the expression is 12.43 which is in the scope of DECIMAL(5,2).
    USE TestDB
    CREATE TABLE SMEMODETAIL
    SMD_PRICE DECIMAL(11,4),
    SMD_COST DECIMAL(7,2),
    SMD_GPM DECIMAL(5,2)
    INSERT INTO SMEMODETAIL(SMD_PRICE,SMD_COST) SELECT 1.8500,1.62
    UPDATE SMEMODETAIL SET SMD_GPM = (SMD_PRICE-SMD_COST) / SMD_PRICE * 100
    FROM SMEMODETAIL WHERE SMD_PRICE<>0-- AND SMD_QUANTITY<>0
    SELECT * FROM SMEMODETAIL
    DROP TABLE SMEMODETAIL
    The solution of your case can be either scale the DECIMAL(5,2) or follow the suggestion in Scott_morris-ga's to check and fix your data.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Input tax 0 for material type ROH

    MM Experts,
    My client is asking that for material type ROH, input tax always zero which cannot be changed even by purchaser while making purchase order.
    Did anybody have worked on similar requirement. Pl. let me know what are the possibilities are there to accomplish the said requirement.
    Waiting for your quick response.
    Thanks.
    Vijay

    maintain a tax code with FI help having value = 0 (i think that is done via FTXP)
    do you have purchase inforecord for all the materials having mat type = ROH, if yes then maintain tax code with zero value here and it will be default in PO
    if not using info record check below thread
    Default Tax Indicator in PO line item for a Material
    Also to make tax code field un editable while in ME21N (once it is defaulted based on above rules) you can use define screen layout at document level setting in SPRO for PO. SPROmm-purchasing-PO-- define screen layout at document level -select ME21NGR/IR control-make tax code as display
    yogesh
    Edited by: Yogesh Lohiya on Jan 20, 2012 12:07 AM

  • Enable Amount field (KOMV-KBETR) in VA01 for Documen type DR (Debit Note)

    Hi All,
    Is it possible to enable the input of Amount field in item level at the VA01 screen?
    I can input it in item level at VA01 screen for Normal order, but not found when input the Debit note...
    The user want to input it in the main screen not want to input in Condition screen...
    Please help.
    Thanks.
    Terry

    Hi Raja,
    Thanks for your reply.
    I found that the field exist in Document type OR, when I change the Screen sequence group from GA to AU,
    the field KOMV-KBETR appear.
    But is it possible to change my own Screen sequence group, and assign usable fields in the group?
    Terry

  • Input Masks for one field

    Hi,
    Can I assign different input masks for one field on a presentation?
    Thanks

    Hi vijay,
    1. U have not given proper parameters
       while calling the FM.
    2. have a look at this (just copy paste)
    3.
    REPORT ABC.
    DATA : BEGIN OF ITAB OCCURS 0,
    UNAME LIKE USR01-BNAME,
    END OF ITAB.
    data : RETURN_TAB LIKE DDSHRETVAL occurs 0 .
    data : RETURN_wa LIKE DDSHRETVAL .
    PARAMETERS : A(12) TYPE C.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR A.
    ITAB-UNAME = 'U01'. APPEND ITAB.
    ITAB-UNAME = 'U02'. APPEND ITAB.
    ITAB-UNAME = 'U03'. APPEND ITAB.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    retfield = 'ITAB-UNAME'
    PVALKEY = ' '
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'A'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    tables
    value_tab = ITAB
    FIELD_TAB = FTAB
    RETURN_TAB = return_tab
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    break-point.
    regards,
    amit m.

Maybe you are looking for

  • I need Photoshop 7 or later for my charity work

    I am a Senior Citizen from the UK and I spend a lot of time fundraising for a Deaf/Blind/Rubella Children's Charity. I recently bought a web graphics package which basically needs the Photoshop v7 or later package, to customise the graphics. I was to

  • No internet on Windows 7

    Hi, I just downloaded Windows 7 onto my 17'' Macbook pro via boot camp, however when in Windows it doesn't pick up any wireless networks to even attempt to connect too. However, when in Mac it automatically connects to the wireless connection in my h

  • Af:collectionDragSource and drop not working in Firefor 3

    Hi, Collection Drag and drop is not working in firefox 3 (dint checked in firefox2), its working fine in IE7, not sure if this is bug in firefox or adf components or am I missing something? You can check by going to the following link, try "Table wit

  • Which security risks can be exploited bij opening a routed port on a windows network

    Which security risks can be exploited by opening a routed port on a windows network Our company is implementing a web application with potential security issues we have never dealt with before. The situation is  as follows: Network •A LAN with intern

  • What is all this garbage in my keychain?

    There are 72 of these in my keychain. Why? Thanks