Numeric value Problem

hi,
what i m trying to do is as follows:
String str = "5.00";
double db = Double.parseDouble(str);
then db = 5.0;
but i want the double value in two digits means like 5.00.
So how can i get the numeric value in two digit if value after decimal is 00
Thanking U

yes i have gone through the DecimalFormat class but
my problem is still the same..
i need the value in Numeric data type or any numeric
Object..
if the solution is possible then plzzzzzzzzz reply back.Please write normal words: it's not plzzzzzzzzzzzzzz but please. And you're not waiting very long for answers so there's no need to beg for a reply. Thanks.
But to answer your question: no it is not possible to store a float, double, java.lang.Float or a java.lang.Double so that it prints 5.00. They would all display themselves as 5.0. Period.

Similar Messages

  • Hi, I have big problems since 2 weeks with outline, fonts, size in Ai CS6 : Numerical value are so big

    Hi, I have big problems since 2 weeks with outline, fonts, size in Ai CS6 : Numerical value are so big and I can't change it with smaller. Apparently Ai said me that comes from AiPrefs... Could you help me please.
    I tried to initialize my preferences but nothing change.
    PS : Sorry for my English, I'm French
    Pierre

    Pierre,
    You may try the list and see how far down you need to go; you have probably been through 1) and 2), and 4) is both reversible and more thorough than 3); 5) is hardly relevant, so you may end up with 6).
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Numeric value variable problem with user exit

    Dear experts,
    I've created a variable (numeric value, user exit) and I want to get the value of variable from an user exit.
    Actually, I want to convert "0calyear" to a number to be albe to calculate (multiplying, dividing etc).
    If there is a possible solution only in FOX, the solution will be the best. However I couldn't find anything.
    So, the next solution I am trying is user-exit. But I am in stuck here.
    The problem is that I have no idea whether the numeric value variable has any sturcture like other variables(char. value) or not. If yes, what structure it has?
    I know, the characterisc value variables have the structure as blow,
        ls_varsel-chanm =
        ls_varsel-seqno =
        ls_varsel-sign  =
        ls_varsel-opt   =
        ls_varsel-low   =
    I've tried several times with the same way like above, but it doesn't work when I call the variable in "BPS0" or "UPSPL".
    How can I solve it? Please let me know.
    I am using SEM_BW 4.00.
    Many Thanks.
    Bruce

    Hi Ravi,
    Sorry, there's a correction. <b>var2 is used for getting the first month of the year selected by the user in var1</b>. If the user doesn't enter a value for var1, then var2 should take first month of current year from var1 which has by default last month of current year (populated in i_step1 from sy-datum). The user can select the value of var1 according to his requirement. Then var 2 should get first month of the year selected. That's why I'm using two exit variables.
    It works fine during the initial run of the query. But when the user clicks on the variable button in the toolbar and executes the query, var1 is not being displayed and an error message <i>No value could be determined for var2</i> is shown. All other variables used in the query are displayed except var1.
    Krzys, Is the option <i>Can be changed in Query Navigation</i>  available for Exit variables. I'll check that and get back to you.
    Boujema, Thanks for the OSS note.
    Thanks
    Hari

  • Numeric Value rounding problems in Materialized Views

    All numeric values are getting rounded in the materialized views. Is there any solution for this?
    Any help is greatly appreciated...
    Thanks,
    Satya

    Hi Bill,
    Actually the problem is with the Toad version I'm using, it is not interpreting the decimal values of MVs properly. They look good when I checked in SQLPLUS.
    Any way, thanks for your response.
    -Satya

  • Problem in spring rich client with numeric value

    I am facing a problem in spring rich client.
    I have a text field of NumericJTextField type which extends JTextField and it is storing value of long type.
    In one constructor of this NumericJTextField ,we are creating new instance of NumericDocument which extends PlainDocument.
    We are alos using document filter.
    My problem is that,when i enter a numeric value starting with 0 for ex: 0123 then at the time of saving,
    it automatically converts this numeric value into something else like 83 or 9 etc.
    I dont know how and where this is happenning?
    can anyone help mme in this?
    Thanks!

    It's happening somewhere in the Spring code, where it translates a string into a number. Apparently it treats strings of digits which start with a zero as octal. (You know what that means now, right?)
    I don't know much about Spring, but this isn't a Spring forum so I'm free to post my uneducated wild guesses here. Quite possibly this is a Spring FAQ which you would find on the Spring website.

  • Serious Problem In Oracle9i regarding numerical value error.

    Dear Experts,
    The below code gives numerical value error where cursor is fetching data(in the 'for' line).
    But the cursor's query is executing properly in a SQL window.
    Version is Oracle9i Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    Database Server created in Windows platform.
    Code------
    CREATE OR REPLACE Procedure INTGD.Ge_b_p_Test_Decode As
    Cursor c_Decode Is
    select decode(txt_party_sex,'M','MALE','FEMALE') Txt_Refund_Type
    from ge_b_motor_pool_policy_details
    Union
    Select 'P' From Gen_Proposal;
    lv_refund_type varchar2(10);
    l_Error_Msg Varchar2(500);
    Begin
    For i In c_Decode Loop
    Begin
    lv_refund_type := i.Txt_Refund_Type;
    Insert Into Ge_b_Test_Decode Values (lv_refund_type);
    Commit;
    Exception
    When Others Then
    l_Error_Msg := Substr(Sqlerrm, 1, 500);
    Dbms_Output.Put_Line(l_Error_Msg);
    End;
    End Loop;
    End;
    Please help ASAP.
    Regards,
    jishnu

    Dear Experts
    CREATE TABLE GE_B_MOTOR_POOL_POLICY_DETAILS
    TXT_RO_CODE VARCHAR2(10 BYTE) NOT NULL,
    TXT_OO_CODE VARCHAR2(10 BYTE) NOT NULL,
    NUM_POLICY_NUMBER NUMBER(25),
    NUM_ENDORSEMENT_SRL_NO NUMBER(3),
    NUM_SCHEDULE_CERTIFICATE_NO NUMBER(5),
    TXT_ENDORSMENT_POLICY_NUMBER VARCHAR2(23 BYTE),
    NUM_REFERENCE_NUMBER NUMBER(14) NOT NULL,
    DAT_REFERENCE_DATE DATE NOT NULL,
    NUM_XML_JOB_NO NUMBER(20),
    TXT_PRE_CAL_BASIS VARCHAR2(20 BYTE),
    CUR_NET_TP_PREMIUM NUMBER(20),
    CUR_TOT_TP_PREMIUM NUMBER(20),
    CUR_TP_SERVICE_TAX NUMBER(20),
    DAT_POLICY_EXPIRE_DATE DATE,
    NUM_POL_TERM NUMBER(3),
    TXT_POL_TERM_UNIT CHAR(1 BYTE),
    TXT_PARTY_TYPE CHAR(1 BYTE),
    TXT_PARTY_CODE VARCHAR2(30 BYTE),
    TXT_PARTY_FIRSTNAME VARCHAR2(60 BYTE),
    TXT_PARTY_MIDDLENAME VARCHAR2(60 BYTE),
    TXT_PARTY_LASTNAME VARCHAR2(60 BYTE),
    TXT_PARTY_SEX CHAR(1 BYTE),
    DAT_POLICY_START_DATE DATE,
    TXT_PARTY_ADDR1 VARCHAR2(100 BYTE),
    TXT_PARTY_ADDR2 VARCHAR2(100 BYTE),
    TXT_PARTY_ADDR3 VARCHAR2(100 BYTE),
    NUM_PARTY_PINCODE NUMBER(6),
    TXT_PARTY_STAKE_CODE VARCHAR2(10 BYTE),
    CUR_PAYMENT NUMBER(10),
    TXT_POL_INDICATOR VARCHAR2(10 BYTE),
    TXT_MAIN_POL_TYPE VARCHAR2(10 BYTE),
    TXT_POLICY_CATEGORY_FLEET_SCHD CHAR(1 BYTE),
    DAT_VOUCHAR_DATE DATE,
    TXT_PAY_MODE VARCHAR2(10 BYTE),
    TXT_PARTY_NAME VARCHAR2(60 BYTE),
    CUR_VOUCHAR_AMOUNT NUMBER(20),
    TXT_VOUCHAR_NUMBER VARCHAR2(30 BYTE),
    TXT_INSTRUMENT_NUMBER VARCHAR2(20 BYTE),
    DAT_INSTRUMENT_DATE DATE,
    TXT_NARRATION VARCHAR2(100 BYTE),
    DAT_INTIMATION_DATE DATE,
    DAT_INCEPTION_DATE DATE,
    TXT_PRODUCT_CODE VARCHAR2(10 BYTE),
    TXT_POLICY_EVENT VARCHAR2(10 BYTE),
    TXT_NIL_ENDORSEMENT_INDICATOR CHAR(1 BYTE),
    TXT_ENDORSEMENT_TYPE VARCHAR2(23 BYTE),
    TXT_REFUND_TYPE VARCHAR2(23 BYTE),
    TXT_CANCELLATION_TYPE VARCHAR2(23 BYTE),
    TXT_MEMBER_CODE VARCHAR2(10 BYTE),
    TXT_EVENT_SEQ_NO VARCHAR2(10 BYTE),
    TXT_MEMBER_POLICY_NO VARCHAR2(42 BYTE),
    DAT_VEHICLE_PURCHASE DATE,
    TXT_VEHICLE_NEW_SECOND_HAND VARCHAR2(10 BYTE),
    TXT_VEHICLE_CATEGORY VARCHAR2(10 BYTE),
    TXT_VEHI_COMMERCIAL_PASSENGER VARCHAR2(10 BYTE),
    TXT_VEHI_REGISTRATION_NO_1 VARCHAR2(3 BYTE),
    TXT_VEHI_REGISTRATION_NO_2 VARCHAR2(3 BYTE),
    TXT_VEHI_REGISTRATION_NO_3 VARCHAR2(3 BYTE),
    TXT_VEHI_REGISTRATION_NO_4 VARCHAR2(4 BYTE),
    TXT_REGISTRATION_NO VARCHAR2(15 BYTE),
    DAT_VEHI_REGISTRATION_DATE DATE,
    TXT_VEHI_REG_AUTHORITY VARCHAR2(30 BYTE),
    NUM_VEHI_MANU_YEAR NUMBER(10),
    TXT_VEHI_ENGINE_NO VARCHAR2(30 BYTE),
    TXT_VEHI_CHASSIS_NO VARCHAR2(30 BYTE),
    TXT_MAKE_MODEL VARCHAR2(10 BYTE),
    NUM_GROSS_VEHICLE_WT NUMBER(15),
    NUM_SEATING_CAPACITY_CABIN NUMBER(3),
    TXT_VEHI_FULE_TYPE VARCHAR2(10 BYTE),
    TXT_LPG_CNG_KIT_IN_BUILT VARCHAR2(3 BYTE),
    TXT_TYPE_OF_PERMIT VARCHAR2(10 BYTE),
    TXT_VEHI_USED_TUTION VARCHAR2(3 BYTE),
    TXT_VEHI_USED_COMMERCIAL VARCHAR2(3 BYTE),
    TXT_VEHI_DESIGNED_HANDICAPED VARCHAR2(3 BYTE),
    TXT_EXTN_OF_GEO_REQUIRED VARCHAR2(3 BYTE),
    NUM_CUBIC_CAPACITY NUMBER(5),
    NUM_LICENSE_CARRYING_CAPACITY NUMBER(8),
    TXT_NO_TRLR_TOWED_BY_TOW_VEH VARCHAR2(10 BYTE),
    TXT_TRAILERS_TOWED_BY VARCHAR2(10 BYTE),
    CUR_POL_RISK_PREMIUM NUMBER(20),
    CUR_POL_RISK_DISCOUNT NUMBER(20),
    CUR_POL_RISK_OVERLOAD NUMBER(20),
    CUR_TOT_POL_RISK NUMBER(20),
    TXT_WISH_TO_REDUCE_TPPD_COVER VARCHAR2(3 BYTE),
    NUM_NO_NON_FARE_PAY_PASSENGER NUMBER(3),
    NUM_NO_NON_FARE_PASS_EXCL_EMP NUMBER(3),
    TXT_WISH_TO_COVER_EMP_NON_FARE VARCHAR2(3 BYTE),
    NUM_NO_OF_LL_TO_DRVR_CLNR_CON NUMBER(3),
    NUM_NO_OF_WCL_TO_COOLIES NUMBER(3),
    NUM_NO_OF_PAID_DRVR_CLNR_COND NUMBER(3),
    CUR_TOT_SI_FOR_DRVR_CLNR_CON NUMBER(15),
    NUM_NO_UNNAMED_PERSNS_PRSNLACC NUMBER(3),
    CUR_TOT_SI_FOR_UNNAMED_PERSNS NUMBER(15),
    TXT_TYPE_OF_GOODS_TRANSPORTING VARCHAR2(10 BYTE),
    TXT_HOLD_VALID_DRV_LICENSE VARCHAR2(10 BYTE),
    NUM_PROPOSAL_TYPE NUMBER(5),
    NUM_MEMBER_ENDORSEMENT_TYPE NUMBER(5),
    NUM_VEHICLE_INTL_TYPE NUMBER(5),
    NUM_MEMBER_MAKE_CODE NUMBER(5),
    NUM_MEMBER_PAYMENT_MODE NUMBER(5),
    NUM_MEMBER_POLICY_CODE NUMBER(3),
    NUM_XID NUMBER(10),
    TXT_MULTI_PAYMENT CHAR(1 BYTE),
    TXT_POLICY_FLAG CHAR(1 BYTE),
    NUM_RECORD_SEQUENCE NUMBER(30),
    NUM_SCHEDULE_NUMBER NUMBER(5),
    NUM_SCHEDULE_ENTRY_NUMBER NUMBER(10),
    DAT_EVENT_DATE DATE,
    NUM_OUT_XID NUMBER(10),
    DAT_PROCESS_RUN_DATE DATE,
    TXT_HIRE_IMT35_APPLICABLE VARCHAR2(3 BYTE),
    DAT_ENDT_START_DATE DATE,
    TXT_OTHER_MAKE VARCHAR2(50 BYTE),
    TXT_TRANSIT_FROM VARCHAR2(30 BYTE),
    TXT_TRANSIT_TO VARCHAR2(30 BYTE),
    NUM_ACTUAL_DISTANCE NUMBER(15),
    TXT_TRAILER_ATTACHED VARCHAR2(1 BYTE),
    NUM_NO_TRAILER_ATTAH_TOWING_BY NUMBER(10),
    TXT_TRAILER_PURPOSE_TOWED_BY VARCHAR2(3 BYTE),
    TYPE_OF_OTHER_VEHI_MISC VARCHAR2(10 BYTE),
    NUM_NUMBER_OF_DRIVERS NUMBER(3),
    NUM_NUMBER_OF_TRADE_CERTIFI VARCHAR2(3 BYTE),
    TXT_WHETHER_TWO_WHEELER_OR_NOT VARCHAR2(3 BYTE),
    CUR_WAGES_IN_RS NUMBER(15),
    NUM_AREA_IN_SQUARE_METER NUMBER(15),
    TXT_TYPE_OF_PREMISES VARCHAR2(3 BYTE),
    NUM_AREA_OPENAIRCARPARK_IMT64 NUMBER(15),
    NUM_NO_PREMISES_BEYOND_450 NUMBER(3),
    TXT_LIABILITYWORKAWAYIMT65 VARCHAR2(3 BYTE),
    NUM_NO_LLPASSEXCLUDEMP_IMT46 NUMBER(3),
    TXT_WHETHER_VEHIUSEDDEMOIMT60 VARCHAR2(3 BYTE),
    TXT_WHETHERVEHICLETUITIONIMT61 VARCHAR2(3 BYTE),
    NUM_NO_LLDRIVERCLNRCONDUCIMT28 NUMBER(3),
    NUM_MISC_VEHICLECLASS_MEMBER NUMBER(10),
    TXT_PA_OD_COVER_REQUIRED VARCHAR2(1 BYTE),
    NUM_DISTANCE_TRAVELLED_VEHICLE NUMBER(10),
    NUM_NO_OF_DAYS NUMBER(10),
    CUR_TP_LOADING NUMBER(20),
    TXT_DUMMY_1 VARCHAR2(100 BYTE),
    TXT_DUMMY_2 VARCHAR2(100 BYTE),
    TXT_DUMMY_3 VARCHAR2(100 BYTE),
    TXT_DUMMY_4 VARCHAR2(100 BYTE),
    TXT_DUMMY_5 VARCHAR2(100 BYTE),
    NUM_DUMMY_1 NUMBER(2),
    NUM_DUMMY_2 NUMBER(2),
    NUM_DUMMY_3 NUMBER(3),
    NUM_DUMMY_4 NUMBER(4),
    DAT_DUMMY_1 DATE,
    DAT_DUMMY_2 DATE,
    DAT_DUMMY_3 DATE,
    DAT_DUMMY_4 DATE
    here txt_party_sex char(1) column is used in the pl/sql program
    CREATE TABLE GEN_PROPOSAL
    NUM_REFERENCE_NUMBER NUMBER(14) NOT NULL,
    DAT_REFERENCE_DATE DATE NOT NULL,
    NUM_POLICY_NUMBER NUMBER(20) DEFAULT 0 NOT NULL,
    NUM_POLICY_YEAR NUMBER(4) DEFAULT 0 NOT NULL,
    NUM_DEPARTMENT_CODE NUMBER(3) NOT NULL,
    NUM_POLICY_TYPE NUMBER(3) NOT NULL,
    NUM_ENDORSEMENT_NUMBER NUMBER(20) DEFAULT 0 NOT NULL,
    NUM_ENDORSEMENT_YEAR NUMBER(4) DEFAULT 0 NOT NULL,
    NUM_PROPOSAL_TYPE NUMBER(2) NOT NULL,
    TXT_PROPOSAL_STATUS VARCHAR2(2 BYTE) NOT NULL,
    NUM_COVERNOTE_NUMBER NUMBER(16),
    DAT_COVERNOTE_DATE DATE,
    TXT_NAME_OF_INSURED VARCHAR2(200 BYTE) NOT NULL,
    MEM_ADDRESS_OF_INSURED VARCHAR2(255 BYTE) NOT NULL,
    TXT_TELEPHONE VARCHAR2(30 BYTE),
    TXT_FAX VARCHAR2(15 BYTE),
    NUM_BUSINESS_CODE NUMBER(2),
    NUM_INDUSTRY_CODE NUMBER(4),
    NUM_PREVIOUS_POLICY_YEAR NUMBER(4),
    NUM_PREVIOUS_POLICY_NUMBER NUMBER(20),
    NUM_PREVIOUS_OFFICE_CODE NUMBER(6),
    NUM_PREVIOUS_POLICY_TYPE NUMBER(3),
    CUR_TOTAL_PREMIUM NUMBER(13,2) NOT NULL,
    CUR_PREMIUM_RECEIVED NUMBER(13,2) DEFAULT 0 NOT NULL,
    NUM_DEVELOPMENT_OFFICER_CODE NUMBER(8),
    NUM_AGENT_CODE NUMBER(14),
    NUM_SPECIAL_CLIENT_CODE NUMBER(8),
    DAT_DATE_OF_ISSUE_OF_POLICY DATE,
    DAT_DATE_OF_EXPIRY_OF_POLICY DATE,
    DAT_PREV_POLICY_EXPIRY_DATE DATE,
    TXT_OCCUPATION VARCHAR2(50 BYTE),
    NUM_NO_OF_CLAIMS NUMBER(8) DEFAULT 0 NOT NULL,
    NUM_ENDORSEMENT_TYPE NUMBER(2),
    DAT_HOURS_EFFECTIVE_FROM DATE,
    CUR_PREMIUM_COMPUTED NUMBER(13,2) NOT NULL,
    CUR_SERVICE_TAX NUMBER(13,2) DEFAULT 0 NOT NULL,
    CUR_ENDT_AMOUNT NUMBER(13,2) DEFAULT 0 NOT NULL,
    CUR_ENDT_SERTAX NUMBER(13,2) DEFAULT 0 NOT NULL,
    CUR_STAMP_DUTY NUMBER(11,2) DEFAULT 0 NOT NULL,
    YN_STAMP_DUTY_CHARGEABLE NUMBER(1) NOT NULL,
    CUR_SUM_INSURED NUMBER(16) NOT NULL,
    NUM_OWN_SHARE NUMBER(5,2) NOT NULL,
    NUM_AGENT_BILL_NO NUMBER(12) DEFAULT 0 NOT NULL,
    NUM_AGENT_COMM NUMBER(13,2) DEFAULT 0 NOT NULL,
    DAT_ENDT_START_DATE DATE,
    DAT_ENDT_END_DATE DATE,
    TXT_USER_ID VARCHAR2(8 BYTE),
    NUM_PC_ID NUMBER(2),
    NUM_SESSIO_ID NUMBER(5),
    NUM_PIN_CODE NUMBER(6),
    CUR_SPECIAL_DISCOUNT NUMBER(13,2),
    DAT_PROPOSAL_DATE DATE DEFAULT trunc(sysdate),
    CUR_ENDT_STAMP_DUTY NUMBER(11,2) DEFAULT 0 NOT NULL,
    NUM_ENDT_POLICY_NUMBER NUMBER(20) DEFAULT 0 NOT NULL,
    TXT_ENDT_FLAG CHAR(1 BYTE),
    NUM_INSTMNT_NO NUMBER(2) DEFAULT 0 NOT NULL,
    NUM_PREVIOUS_COMPANY_CODE NUMBER(6),
    NUM_COUNTRY_CODE NUMBER(3) NOT NULL,
    NUM_CURRENCY_CODE NUMBER(3) NOT NULL,
    NUM_AGENT_COMM_RATE NUMBER(4,2),
    NUM_SPECIAL_DISCOUNT_RATE NUMBER(4,2),
    DAT_COVERNOTE_RCVD_DATE DATE,
    TXT_SECTOR_CODE VARCHAR2(5 BYTE) NOT NULL,
    NUM_CLASS_CODE NUMBER(3) NOT NULL,
    TXT_MANUAL_CODE VARCHAR2(3 BYTE) NOT NULL,
    TXT_CUST_POLICY_NO VARCHAR2(20 BYTE) NOT NULL,
    TXT_CUST_ENDT_POLICY_NO VARCHAR2(20 BYTE) NOT NULL,
    DAT_LAST_UPDT_DTTM_DATE DATE DEFAULT sysdate NOT NULL,
    TXT_ARCHIVAL_STATUS CHAR(1 BYTE) DEFAULT 'F' NOT NULL,
    NUM_RENEWAL_POLICY_NO NUMBER(20) DEFAULT 0 NOT NULL,
    TXT_LAST_RECORD_STATUS CHAR(2 BYTE) NOT NULL,
    TXT_EMAIL_ADDRESS VARCHAR2(200 BYTE),
    NUM_SUB_CLASS_CODE NUMBER(3),
    CUR_STAFF_DISCOUNT NUMBER(13,2),
    CUR_GROUP_DISCOUNT NUMBER(13,2),
    CUR_LONGTERM_DISCOUNT NUMBER(13,2),
    CUR_TERRORISM_LOADING NUMBER(13,2),
    NUM_REINSTATEMENT_CLAIM_NO NUMBER(20),
    NUM_AGENT_MOD_COMM_RATE NUMBER(4,2),
    TXT_BUSINESS_FLAG VARCHAR2(3 BYTE),
    YN_SEZ NUMBER(1),
    TXT_PAN_NO VARCHAR2(15 BYTE),
    TXT_COMM_SHARE VARCHAR2(2 BYTE),
    TXT_CROSS_REFERENCE_NUMBER VARCHAR2(200 BYTE),
    DAT_CROSS_REFERENCE_DATE DATE,
    NUM_GROUP_CODE NUMBER(8),
    TXT_PRODUCT_TYPE VARCHAR2(2 BYTE),
    DAT_ACTUAL_EXPIRY_OF_POLICY DATE
    )

  • Error message - BSEG-WRBTR enter a numeric value

    Hi,
    I am having a problem with loading data using a abap program that calls RFBIBL00 program and the fb01 Transaction. The process is that the user enters the data in a excel sheet, saves as a tab deliminted txt file. The abap program reads the txt file, does some processing and submits the RFBIBL00 program with the FB01 code. When I check in SM35, it shows on the "incorrect " tab. When you display the log for the process, It is displaying "Formatting error in the field BSEG-WRBTR; see next message" and "Enter a numeric value".  I am not sure where to start looking to try to correct this problem. I am tracing the abap program that submits the RFBIBL00 process and I am not finding where this is occuring. I am new to the ABAP world and I am having a hard time figuring this out. Can someone please let me know if I am proceeding in the right direction or if there is another way of solving this. I am not sure what program is generating the above error messages. If there is more information that is needed, please let me know and I will try to get it for you.
    thanks in advance for the help on this

    Hi,
    There may be two possiblities for this issue.
    1. Incorrect data passed to the field BSEG-WRBTR
    2. Check the Decemial Notation(Menu Path->System->status->Own profile and Defaults Tab). If it is diffrent with the entered amount format, then it will trigger error.
    YOu can run the Bach in the fouground by  choosing fouground radio button option in the Pop up.
    Thanks,
    Ramakrishna

  • Question regarding creation of xml-elements with numerical values

    When i create xml-documents from xml stored in the database (xmltype table based on an xml-schema), i find that numerical values which were stored as 0.395 (with the "." as the decimal separator) are retrieved as .395.
    Is it possible to apply a format mask so that the numerical value is retrieved as 0.395?
    thanks, Bart
    N.b. Note that i select a complete xml-fragment. So my problem seems related to the storage or retreival of 'schredded' XML. I do not use SQL/XML-functions with relational data, in which case i know how to apply a format mask.

    I don't use XSLT, i just query the XML-documents stored in an XMLType column with a simple SQL-statement.
    I have posted a simple example over here Re: Is it possible to influence the creation of empty elements?

  • Non numeric value in numeric field giving error

    Hi All
    I am using BAPI for creating sales order. If user is giving non numeric value in Quantity field it is giving error. Because quantity field data type is Double.
    Please Help.
    Thanks
    Raktim

    Hi Banerjee,
                 Create a String/int/long Context variable and point it to UI Input element.Do the validation  for correct input value. once the validation is succesful assign that value to RFC BigDecimal variable by Explicit casting.
    Hope this might solve your problem .
    Thanks
    Madhan

  • How to get the numeric value of DocTotal from UI API

    When I hit the ADD button I need to get the DocTotal from the UI API !
    All I have is the EditText which gives it in string and the problem is to double.Parse it
    it's a pain to do it while there is CultureInfo related issue with it.
    So It would be wise to get the numeric value directly from the UI API instead of getting the DocTotal by string and trying to convert it.  So is there any way to get the numrci value of DocTotal from UI API ?

    Hello Marc,
    Here is a function which considering the Culture Info and always working. You can speed it up by using extending admininfo to global vairables, and loading the values at startup of the addon.
    Use the oEditText.value.ToString() to convert into into the doulbe number:
    Public Function _string2double(ByVal s As String) As Double
            Dim d As Double
    ' This part is fast, when regional settings equal to sap B1 settings:
            Try
                d = Convert.ToDouble(s)
                d = Math.Round(d, 6)
                Return d
            Catch
            End Try
    ' Speed up performance: extend CompaneService variables to global variables and query them at addon startup.
            Try
                Dim nfi As System.Globalization.NumberFormatInfo = System.Globalization.CultureInfo.CurrentCulture.NumberFormat
                Dim oCompanyService As SAPbobsCOM.CompanyService = oCompany.GetCompanyService()
                Dim oAdminInfo As SAPbobsCOM.AdminInfo = oCompanyService.GetAdminInfo()
                Dim sbodsep As String = oAdminInfo.DecimalSeparator
                Dim sbotsep As String = oAdminInfo.ThousandsSeparator
                If s.IndexOf(Space(1)) > 0 Then
                    If oAdminInfo.DisplayCurrencyontheRight = BoYesNoEnum.tYES Then
                        s = s.Substring(0, s.IndexOf(Space(1)))
                    Else
                        s = s.Substring(s.IndexOf(Space(1)), s.Length - s.IndexOf(Space(1)))
                    End If
                End If
                Dim s1 As String = s.Replace(sbotsep, nfi.NumberGroupSeparator)
                s1 = s1.Replace(sbodsep, nfi.NumberDecimalSeparator)
                d = Convert.ToDouble(s)
                d = Math.Round(d, 6)
                Return d
            Catch
                Return 0
            End Try
        End Function
    Regards,
    J.
    Edited by: János Nagy on Oct 7, 2009 8:55 AM

  • How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values?

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

  • How do I add numeric values as text in XML??

    HI,
    So, I've developed a 3d carousel using this tutorial and the  XML, and customized the XML in Dreamweaver.
    http://www.gotoandlearn.com/play?id=33
    Now,  I've got the carousel set up exactly the way I would like, but the only  trouble, is how do I add numeric values as the text for the xml file???
    Here's an example to the working carousel and where text is loaded for each item on it.  (put your sound on mute if you don't want to hear the video)
    http://iongeo.com/collaboration_test_dev/video_arctic_imaging.html
    For  example, in my XML, if I would like the text to be "3d images", when I  export the FLA, only "d images" comes through because the numeric  values can't be added as the text for the tooltip.
    Does anyone  have any ideas?
    Here is an example of how the XML is loaded into  the .swf - the text loads great, but just not the numeric characters.
    The  same story can be said for special characters, I would like to know how  to add a "&" sign too.
    <icons>
    <icon  image="images/Subsalt_E_P_Partnerships.png" tooltip="3D Images"  content="Text Copy.">
    </icon>
    </icons>
    Any  help would be greatly appreciated.
    Thank you.

    Hi Randy,
    Thanks a lot for the reply.  Your post got me thinking that it's actually a flash problem, as the actual descriptor text shows 123,etc and "&".
    The trouble is that the icons are dynamically loaded from the XML to movie clips on the flash file.  I've asked the flash forum to see if they could take a look.
    Thanks again.
    Mike

  • How to get the day as numeric value without formatting the date?

    Hello,
    to reduce the costs of a sql-statement I need to get the day of a date-value as number (to compare it to a numeric value) without any formatting. Every formatting results in a full table scan of the table with the date field. Is there any function to solve this problem?
    Oracle version is 11g.
    Thanks Carsten

    CarstenDD wrote:
    select T1.SYSID from T2,T1
    where T2.SysT1 = T1.SYSID
    and T2.Date1 < '01.03.2011' --German date format
    and to_number(to_char(T2.Date2,'DD')) = 1
    and T2.Inactive = 0
    The explain plan shows a full table scan on T2. With EXTRACT(DAY FROM T2.Date2) there is no difference.It probably would and should in any case.
    Look at your predicates, which of them would reduce the resultset to a fair size compared to the total number of records in the table?.
    - You may have a huge number of records when you say date less than
    - Of these perhaps one seventh have day = 1
    - My guess is that most have Inactive = 0
    Besides, you should not rely on implictit char to date conversion, always use TO_DATE
    How many records are in the table? - How many will that query return?
    Regards
    Peter

  • How to pass a numeric value without its format to a subsequence?

    I have a sequence with a numeric parameter that is interpreted as a 16-bit bit mask. The numeric format of the parameter of that sequence is therefore "%#.16b".
    I also have a Sequence Call step in a second sequence (in the same file) that calls this first sequence. That second sequence passes literal values for that bit mask in the Sequence Call. My specific problem at this point is that, while debugging, I don't see the parameters in the numeric format I explicitly specified for them, but rather in one of three possible formats:
    - Literal values seem to come with a "system"-wide (maybe sequence-file-specific?) default format, which is decimal instead of binary.
    - Variable values (e.g. from the Locals) have their specific (and also explicitly defined) numeric format, which can be anything instead of binary.
    - If I don't pass a value but use the parameter default, this default is shown in the parameter's actual numeric format, binary. This is the only case that works as intended.
    How do I get the parameters to *always* keep the numeric format I specified for that sequence?
    The attached file tries to reproduce the problem and the intended result using only Sequence Calls and Message Popups. My version is TestStand 3.1f1.

    I just want to debug my subsequence and see its parameter represented as "0b0000000000011010" when I supply a literal value of 26.
    Ok, I try to be more explicit and show my problem using your suggestion: (The resulting sequence file is attached.)
    - Create a new sequence file.
    - Insert a new sequence "Sequence".
    - In "Sequence", create a parameter "Parameter" of type "Number".
    - Change the numeric format of "Parameter" to Binary with a minimum of 16 digits and *without radix*, ie. "%.16b". (In the other sequence file I used "%#.16b".)
    -> Intention: I want to see the supplied parameter value in this numeric format when debugging or converting to a string using Str().
    - Still in "Sequence", create a local "Local" of type "Number".
    - Change the numeric format of "Local" to the same as above, "%.16b".
    -> Intention: I want to demonstrate your way here, which actually works (I can use it as the "reference string" of the yet-to-be-defined message box), but does in an indirect way what I want to do directly using only sequence parameters.
    - Insert a "Statement" step in "Sequence".
    - Of "Statement", "Edit Expression" and use "Locals.Local = Parameters.Parameter" as the expression.
    - Insert a "Message Popup" step in "Sequence".
    - Of "Message Popup", do "Edit Message Settings", and use the following expression as the Message Expression:
    "I have this: " + Str(Parameters.Parameter) + "\n" +
    "I want this: " + Str(Locals.Local)
    - Insert a "SequenceCall" step in MainSequence.
    - Point "SequenceCall" to sequence "Sequence" of the current file and supply exactly the literal value 26 for the parameter.
    - In "MainSequence", create a local "Local" of type "Number".
    - Change the numeric format of this "Local" to something very dangerous, eg. "%9.16o".
    - Assign the exact numeric value 4616 to this "Local" variable.
    -> Intention: I want to demonstrate that there are cases where a propagation of numeric formats to subsequences can actually be more than a mere nuisance.
    - In "MainSequence", insert a second Sequence Call step, "SequenceCall_2".
    - Let "SequenceCall_2" call the same sequence "Sequence", but supply Locals.Local for the parameter.
    - Now run the sequence file in "Single Pass" mode.
    - In the first popup, you see that I get the (binary!) representation 0000000000011010 only for the local variable, but I also want it for the parameter value.
    - In the second popup, you see that I get the (octal!) representation 0000000000011010 for the parameter value, which would be correct (for what I want) if I had supplied the decimal literal 26 again. You see that the binary representation is something entirely different here!
    I hope you now get the point. Thanks for answering!
    Attachments:
    numeric-format-02c.seq ‏35 KB

  • Error: Enter numeric values

    Dear All,
      I am creating a company code in ECC5 IDES, but shows an error
    the error message is :enter numeric value only
    what can be the problem, please guide me

    hi,
    if you are trying copy the company code say from 1000 and getting this error then try copying from 0001 company code or vice versa. It should copy for one of this properly.
    Thanks
    Sadhu Kishore

Maybe you are looking for

  • How do I edit more than 1 photo at a time?

    How do I edit more than 1 photo at a time using the same editing actions.  For example: selecting 50 photos and pushing the fix red-eye button to fix all 50. Specifically I usually enhance, fix red eye and then vinette my pictures then create a slide

  • Can't get printer to work

    I have a new Dell laptop with Windows 7 on a wireless network and I want to print on a HP laserjet 1320 connected to another computer on the network. My laptop sees the 1320, but cannot print. The error message says "Windows cannot connect to the pri

  • Lync 2010 not saving IM messages to Outlook

    We have a small number of users who have issues with their Lync communicating with the exchange, they do not get any flagged errors however their IM messages are not being saved & they do not have the folder within Outlook. The Exchange server is hos

  • How to manualy delete histograms in 10.2.0.3 .

    Hi, I've got serious issue with my 10.2.0.3 4 node rac . The problem is rowcache size in particular dc_histogram_defs : CACHE#     TYPE     SUBORDINATE#     PARAMETER     COUNT     USAGE     FIXED     GETS     GETMISSES     SCANS     SCANMISSES     S

  • How to use Form?

    Hi, I got some problems when using Form: java.lang.ClassCastException at com.sun.faces.taglib.html_basic.FormTag.setProperties(FormTag.java:160). Here is my jsp: <%@ page contentType="text/html; charset=ISO-8859-1" %> <%@ taglib uri="http://java.sun.