Need to display without decimal places

hi
i database two fields are defined as fltp10) and fltp16 i need to display them as num (10) and num (12) and without decimal places
please suggest i will definately rewards points to helpfull answers
regards
arora

Hi Arora
Do you mean, you need to display ignoring the decimal value???
If so you can declare a variable of same lenght of type N and move the value, that will do the task.
By default when we move numerical values it brings leading ZEROES.
If the requirement is to remove the leading zeroes move to a integer type variable.
Kind Regards
Eswar

Similar Messages

  • Displaying 2 decimal places in BI Answers column, using SQL_TSI_HOUR

    Hi,
    Would anyone know why the following code refuses to display 2 decimal places in a BI answers report:
    ' case when "- Job Detail"."Date Delivered" is null or "- Job Detail"."Date Received" is null then 'Not Available' else cast (ROUND(cast(timestampDiff(SQL_TSI_HOUR, "- Job Detail"."Date Received","- Job Detail"."Date Delivered") as double),2) as char) end '.
    Thanks,
    - Jenny

    instead of * 1440
    do with
    * 1440.00
    btw: why you need to cast to date? why cant be timestamp?
    Discard it

  • Download amount value without decimal place but element with decimal place

    Hi all,
    to display the amount without decimal places in classic report, i can use this way which is wa_wrshb NO-ZERO CURRENCY wa__waers.
    may i know,
    1) how to display amount in ALV where amount value (which using dmshb/wrshb) has no decimal place like JPY?
    2) what should i do if i want to download the amount value which field using dmshb or wrshb that the value has no decimal place like JPY?
    Thanks

    Hello,
    You can display the ALV output according to the decimal point in the currency.
    When creating the field catlog for the amount field add the currency parameter also.
      wa_fieldcat-fieldname     = <amount_field>.
      wa_fieldcat-tabname       = <output_table>.
      wa_fieldcat-seltext_l     = <column_heading>.
      wa_fieldcat-outputlen     = p_olen.
      wa_fieldcat-currency      = wa_waers.              " This will work same as CORRENCY wa_waers
    Regards
    DKS

  • I need help moving a decimal place

    Good morning all. I have the following that needs
    manipulating. The first set of numbers is the raw data I have
    access too.
    Latitude: 3.13929
    Longitude: -8.14461
    I need it formatted like this:
    Latitude: 31.3929
    Longitude: -81.4461
    I need to move that decimal place to the right one spot. Any
    ideas? I have thought of REPLACE, create new value and insert but
    my head hurts. I just need some ideas.
    Thanks
    Terry

    Multiply it by 10:
    <cfset Latitude = 3.13929>
    <cfset NewLatitude = Latitude * 10>
    <cfset Longitude = -8.14461>
    <cfset NewLongitude = Longitude * 10>
    Ken Ford
    Adobe Community Expert Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Fordwebs, LLC
    http://www.fordwebs.com
    "WhozitsPop" <[email protected]> wrote in
    message
    news:ga3elo$1ju$[email protected]..
    > Good morning all. I have the following that needs
    manipulating. The
    > first set
    > of numbers is the raw data I have access too.
    >
    > Latitude: 3.13929
    > Longitude: -8.14461
    >
    > I need it formatted like this:
    >
    > Latitude: 31.3929
    > Longitude: -81.4461
    >
    > I need to move that decimal place to the right one spot.
    Any ideas? I
    > have
    > thought of REPLACE, create new value and insert but my
    head hurts. I just
    > need
    > some ideas.
    >
    > Thanks
    > Terry
    >
    >

  • BED & AED Round up or down without decimal places

    Dear Gurus,
    My client wants BED & AED Round up to nearest value without Decimal places.
    I am using taxinn procedure and JMOP for BED and JAOP for AED As a condition.
    I tried to tick round up in condition , but it is not workig.
    Please help.

    Hi,
    In TAXINN   T code : OBQ3  against ur condition in alternative calculation type (Calty ) column put 17.
    At the same time OB90 against ur company code put 100.
    Then ur problm will be resolved.
    Biswajit

  • How to display 2 decimal places using DecimalFormat?

    Hi, i would like to display an account balance from database using child.getAccountBal(). Before that, i want to use DecimalFormat to display 2 decimal places. I would like to know whether the codes below are correct. Can anybody guide me? Thanks.
    public static double roundTo2DecimalPlaces(double value){
              DecimalFormat df = new DecimalFormat("0.##");
              double d = df.format(value);
              System.out.println(d);
              return value;          
    And inside the jsp page...is that how i call the values?
    Account Balance: <%=roundTo2DecimalPlaces(child.getAccountBal())%>

    DecimalFormat's format method returns a String not a double,
    os you must return a String instead of a double.
    public String roundTo2DecimalPlaces(double value)
         DecimalFormat df = new DecimalFormat("0.00");
         String stringValue = df.format(value);
         return stringValue;
    <%= roundTo2DecimalPlaces(child.getAccountBal()) %>

  • DIsplaying WRBTR (AMOUNT FIELD)WITHOUT  DECIMAL PLACES

    Dear all,
    I am facing a problem in displaying amount field  in alv report. I have two currency keys (US dollar and Japan yen). if it is japan yen I should not have to show decimal places and if it is US dollar I should show decimal places.
    How can I do it in a alv report if I have only one output amount field?
    thanks
    Ranjan.

    Hi chittaramjan,
    1. use this kind of funda (just copy paste in new program)
    Important things
    a) one extra field in internal table
      declared in the same exact fashion
    waers LIKE tcurc-waers,
    b) Populate this field
    c) REST THE System will take care
       (based upon country settings)
    2.
    REPORT abc.
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA  : BEGIN OF itab OCCURS 0,
            f1  LIKE P0008-BET01,
            waers LIKE tcurc-waers,
            END OF itab.
    START-OF-SELECTION.
      itab-f1 = '-4.15'.
      itab-waers = 'KRW'.
      APPEND itab.
      itab-f1 = '4.68'.
      itab-waers = 'GBP'.
      APPEND itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name     = sy-repid
          i_internal_tabname = 'ITAB'
          i_inclname         = sy-repid
        CHANGING
          ct_fieldcat        = alvfc.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = sy-repid
          it_fieldcat             = alvfc
        TABLES
          t_outtab                = itab
        EXCEPTIONS
          OTHERS                  = 2.
    regards,
    amit m

  • Displaying 3 decimal places?

    Hi,
    I have a bespoke program which picks up lines from bsis and displays them on a screen, the user then selects a few lines and the program posts them using program RFBIBL00. 
    Currently this program is working perfectly but I have a few countries which work with 3 decimal places instead of 2 and the program isn't picking this up.
    I've found that table TCURX holds currencies which have 3 decimal places but I want to know how I change all my internal tables and screen fields to suddenly have 3 decimal places instead of 2?  My internal tables and screen fields are all based on fields from BSIS and I have ALV grids and individual screen fields.  Do I need to duplicate all of the amount fields, one set to have 2 decimal places and the other to have 3?
    Any suggestions welcome.
    Gill

    OK, I've figured this out.
    If you define your screen fields (on the screen not in your data declarations) as CURR not DEC as mine were then you can put in a field as a reference.  I defined a new field (not a screen one) which held the currency for the screen.  If I define all my currency amount fields with 3 decimal places but refer them all to the currency field then they appear as 2 or 3 decimals places depending on the currency.
    Thanks for all your suggestions, they got me thinking on the right track.

  • Issue with display of decimal places

    Hi,
    In our custom built components we are facing a strange issue with the display decimals  where the data type of an element is "QUAN - Quantity field, points to a unit field with format UNIT".
    If the element has a value of 3000.000 KG the value is displayed as 3000. Where as for an element which has a value 3000.123 KG the same is displayed as it is with the decimals. We tried to resolve the issue by using Text editor or Input field as read only but in vain. The display property in the context are set to default.
    If we change the element data type reference to "Dec - Counter or amount field with Comma and Sign" then all the values are displayed with the decimal places even if decimals are zero.
    As a result we are facing alignment issues for the various quantity related elements displayed on the screen.  To change the underlying data type of the element is a not a solution for us as the data type quan is required for conversion from one unit to another unit.
    Can someone please advise how we could resolve this issue.  We are on NW 7.0 + EHP4 + NW 7.01 SP4, kernel patch level 55 for 7.01
    Regards
    Rohit Chowdhary

    Jameel, Thanks for the answer but this is a not a solution for us. We have around 40-50 webdynpro components and with mutliple views referring to this data element / domain combination. More so the context are bound to database tables / structures . 
    I hope to get a reply from Thomas on possible solution for this. I am not sure if I can open an support ticket for this issue.
    Rohit Chowdhary

  • I need to get 2 decimal places when using a formula for a quotient and Numbers will only give me whole integers which is useless since most items will be less than 1. How can I change this?

    How do I get 2 decimal places when using a formula for a quotient? It only gives me whole integers. Most of the results will be less than 1 so I need 2 decimal places

    the quotient function returns only whole number portion of the dividing two numbers.  If you want the actual decimal value use the divide operator.  you enter this as:
    A/B
    if the numerator is in A1 and the denominator is in B1 you can enter the formula like this:
    =A1/B1

  • Legend display and decimal places

    Hi all,
    I'm using mapviewer to create thematic maps and the Ranged Bucket Advanced Style (XML below) with whole numbers but when I generate the legend each range has a ".0" on the end of it. Is there a way of turning this off?
    <?xml version="1.0" standalone="yes"?>
    <non_map_request>
    <add_style name="V.POLK THEMATIC" >
    <AdvancedStyle>
    <BucketStyle>
    <Buckets>
    <RangedBucket low="57" high="146" style="SCOTT:C.IMQ_1"/>
    <RangedBucket low="146" high="307" style="SCOTT:C.IMQ_2"/>
    <RangedBucket low="307" high="504" style="SCOTT:C.IMQ_3"/>
    <RangedBucket low="504" high="714" style="SCOTT:C.IMQ_4"/>
    <RangedBucket low="714" high="1359" style="SCOTT:C.IMQ_5"/>
    </Buckets>
    </BucketStyle>
    </AdvancedStyle>
    </add_style>
    </non_map_request>
    The legend however has these ranges :
    57.0 - 146.0
    146.0 - 307.0
    307.0 - 504.0
    504.0 - 714.0
    714.0 - 1359.0
    Any thoughts anyone? Forgive me if this has been posted before but the forum search doesn't appear to be working right now!
    Thanks
    Steve

    Hi Steve,
    at this time there is no way to turn this off.
    Joao

  • Decimal places in form

    Dear Gurus.
    I need to display dinamic decimal places in my form.
    for example if I have a variable containing value:
    1.500  - need to display it as 1.5 (omitting trailling zeroes)
    1.520  - need to display it as 1.52,
    1.000  - need to display it as 1
    please help.
    Thanks & Regards,
    William Prawira.

    Hi,
    you need to write program lines in order to check the first,second and thrid decimal places with the following code and then display accrodingly the values.
    LV_DEC_PART = FRAC( TABLE-FIELD ).
    then in insert three text nodes with the same field with offsets.
    &TABLE-FIELD.0&  with the condition LV_DEC_PART+0(1) = 0.
    &TABLE-FIELD.1&  with the condition LV_DEC_PART0(2) = 0 AND LV_DEC_PART0(1) # 0.
    &TABLE-FIELD.2&  with the condition LV_DEC_PART0(3) = 0 AND LV_DEC_PART0(1) # 0 AND LV_DEC_PART+0(2) # 0.
    Hope this is clear.
    Regards,
    Ram

  • Decimal places in MD04

    Hi
    In MD04 , we are getting decimals for  the quantity.  Is there any settings or config change involved to remove display of
    decimals.
    Regards
    Mani

    Dear,
    If the database contains an amount with decimal places for an MRP element, the system also displays this value this way in MD04, because this is the value relevant for MRP purposes.This does not depend on the settings for the unit of measure in transaction CUNI (table T006).In case of values without decimal places, the system displays the value according to the setting in the unit of measure (T006-DECAN).Therefore, the decimal places of the MRP elements can vary. Check CUNI setting for rounding the values.
    Regards,
    R.Brahmankar

  • Trunc 2 decimal places

    I have a report that has the option of dispalying pdf or excel. I have the pdf version working fine but i am having a little trouble on the excel version. I have a grand total and department total. Basically I need help formating two decimal places. Both dept_total and grand_total are numbers that both display. I have another column that displays what percent of the total is from each dept.It currently returns a number such as 10.23383547957459973 which i need to display as 10.23 How can i incorporate the trunc function into this code?
    ...to_char((dept_total/grand_total) *100)
    The query looks similar to this.
    select
    to_char(a._grand_total)
    ,to_char(a.dept_total)
    ,to_char((dept_total/grand_total) *100)
    from(
    select sum(xxxx) grand_total,
    sum(xxxx) dept_total
    from table)a

    Use ROUND:
    select to_char(round(10.23383547957459973, 2)) from dual;
    10.23

  • Trunc percentage two decimal places

    I have a report that has the option of dispalying pdf or excel. I have the pdf version working fine but i am having a little trouble on the excel version. I have a grand total and department total. Basically I need help formating two decimal places. Both dept_total and grand_total are numbers that both display. I have another column that displays what percent of the total is from each dept.It currently returns a number such as 10.23383547957459973 which i need to display as 10.23 How can i incorporate the trunc function into this code?
    ...to_char((dept_total/grand_total) *100)
    The query looks similar to this.
    select
    to_char(a._grand_total)
    ,to_char(a.dept_total)
    ,to_char((dept_total/grand_total) *100)
    from(
    select sum(xxxx) grand_total,
    sum(xxxx) dept_total
    from table)a

    Hi,
    Since you're calling TO_CHAR anyway, you can add a 2nd argument, specifying two decimal places:
    select
         a._grand_total
    ,     a.dept_total
    ,     to_char ((dept_total/grand_total) *100,       '999999999.99')     AS pct
    from     (
             select  sum (xxxx) grand_total,
                      sum (xxxx) dept_total     -- Why have two copies of the same value?
             from    table
         )a If you're not using a 2nd argument, why use TO_CHAR at all in this query?
    This will round the value, not truncate it. That is, if the value is 10.23<b>5</b>83547957459973, it would display '10.2<b>4</b>', not '10.2<b>3</b>'. If you always want to round toward 0 (rather than to the nearest multiple of .01), then use TRUNC.

Maybe you are looking for