Calculated field with decimal place

Hello,
if I create calculated field in a table using formula e.g., ColumnName/ 60, where format of ColumnName is INT (total ammount of minutes)  in order to get hours, I get only integer part, not decimal. E.g., 80 (minutes)/60 =1.3333 but, in calculated field
I see only 1 hrs without possibility to change format of the field.
Can calculated field be used on this way? (My wish  is to get 1.3 in that field)
How?
Thanks

Of course the calculated field/column can not be an INT, if it is then change that.
Does something like this work?CAST(ColumnName/60 AS Decimal(10,2))

Similar Messages

  • How do I round calculations to two decimal places (form-wide)

    Hi,
    I've created an order form where customers input the quantity of product they want to order and the form outputs the total due (including shipping and sales tax). Depending on user input, the resulting total sometimes contains more than two decimal places. How do I round calculations to two decimal places? Is there a way to do this form-wide?
    I'm new at using Acrobat for calculations. Any help would be greatly appreciated! Thanks...

    The above will affect the displayed value not the actual value of the field nor its value when accessed in another computation. This behavior may cause an error of 1 cent or more in the grand total or sales tax computation. If you want the the value and displayed value to be the same value you can use the following Validation script:
    event.value = util.scand("%,1 0.2f", event.value);

  • Calculated Key Figures Decimal Place Error

    Hi Experts,
    Wonder if there is anybody to help me out to explain why I am having a problem on the calculated key figures decimal places when if I report on the components of the calculated key figure (restricted key figure) are working correctly?
    The calculated key figure is a boolean formula made up of 2 restricted key figures.  The 2 restricted key figure are having 2 decimal place (one is 0.36 another is 0.00).  In the current condition, the 2 restricted key figure just sums up - 0.36 + 0.00 = 0.36.  However the calculated key figure displayed as 0.359999 (6 decimal places) as the result.
    I am using BEx Analyzer Excel.

    Hi Fang,
    right mouse click on your KF and select properties. Then define the number of decimal places you want.
    Ciao.
    Riccardo.

  • Select amount field of a table with decimal place of 3rd value grater than 0.

    Select all the reord  in a table with amount decimal place of 3rd value grater than 0.

    Can you show the sample data + desired result?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to avoid zeros in output for a field with Decimal type

    Hi Friends
    In a  Report one output field is declared with decimal type.
    Whenver that field is not filled with any values zeros will be displayed in the output.
    I tried to change the data type to char but i am facing some issues in calculations and shwoing only 2 decimal places.
    So is there any way to hide the zeros in the output if we the field is not filled with any value.

    Hi Sandeep,
    If required field type is declared as type p decimals 2 , if for that field in internal table there is no value  - then automatically output will get display in ALV as 0.00.
    To remove 0.00 in the output screen and to be displayed in blank then in the field catalogue add wa_fieldcat-no_zero = 'X'. in that particular field. then if no value for that field then it will display space in the output.
    wa_fieldcat-fieldname   = 'ZQUAN'.
      wa_fieldcat-seltext_l   = 'Quantity'.
      wa_fieldcat-outputlen  = '13'.
      wa_fieldcat-no_out      = ' '.
    wa_fieldcat-no_zero    = 'X'.  wa_fieldcat-hotspot     = ' '.
      wa_fieldcat-key            = ' '.
      wa_fieldcat-do_sum      = 'X'.
      wa_fieldcat-qfieldname  = ' '.
      wa_fieldcat-ref_tabname = ' '.
      wa_fieldcat-just                = ' '.
    Regards,
    Priya

  • Problems with decimal places and formatting

    Hi , we are having problems with an add on running on different localization companies. Decimal places separatd by "," differ from other localizations. We dont know if this is a SQL collation setting or somethng related to code or requirements to run add ons on different servers and languages.
    Any ideas??
    Thanks

    Hello
    Follow up with this thread:
    [Re: How to get the numeric value of DocTotal from UI API]
    Regards,
    J.

  • 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

  • COPA report quantity field with decimal notations

    Hi Gurus,
    Is it possible that ALV reports in COPA can have a decimal notations particularly in quantity field?
    Regards,

    Go to transaction KEA6 and check the data element of the value field you are interested if it foreseen decimal place.
    If not, chose a different data element.
    paolo

  • 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

  • Change IDR currency with decimal place

    Dear Guru,
    Currently in my SAP env, IDR currency setting is set with 0 decimal place.(No decimal Place). However, I have user requirement to change the setting from zero to 2 decimal place. Meaning to say, to have IDR currency maintain in 2 decimal place. What is the effort and is this a big change to the system ? is this change workable ? How will this impact the existing historical data which store IDR amount with no decimal place ?
    Hope to hear from you.
    Regards
    Andrew Tay

    Dear Guru,
    Thank you for your replied. I totally agreed with you, currently my SAP system can maintain up to 15 digits with no decimal place. Beside this digits isues, is there any other areas affected ?
    Thanks in advance.
    Regards
    Andrew Tay

  • Download file with fields with decimal values.

    Hi,
    I need to download infotype records to a file.
    I need a comma deleimited file.
    I have got all the details from Infotype to my internal table 'IT_OUTPUT_OPR'
    my code is as follows:
    LOOP AT IT_OUTPUT_OPR.
        CLEAR IT_FILE_OPR.
        NUM = 0.
        DO.
    Get name of next structure field into <f>
          ASSIGN COMPONENT SY-INDEX OF STRUCTURE IT_OUTPUT_OPR TO <F>.
          IF SY-SUBRC <> 0. EXIT. ENDIF.   " No more fields in structure
          LEN = STRLEN( <F> ).
          IT_FILE_OPR+NUM = <F>.   " Write field to output table
          NUM = NUM + LEN.
          WRITE: ',' TO IT_FILE_OPR+NUM(DELIMIT_LEN).
          NUM = NUM + DELIMIT_LEN.
        ENDDO.
        APPEND  IT_FILE_OPR.
      ENDLOOP.
    my internal table contains 'decimal' fields too.
    so I am getting the following runtim error: 'OBJECTS_NOT_CHARLIKE'
    at the position:
    LEN = STRLEN( <F> ).
    Please could anyone tell me how could this issue be resolved?
    any pointers in this regard would be helpful.
    Thanks,
    Saher

    Try something like following
    LOOP AT IT_OUTPUT_OPR.
         CLEAR IT_FILE_OPR.
         NUM = 0.
         DO.
    *  Get name of next structure field into <f>
           ASSIGN COMPONENT SY-INDEX OF STRUCTURE IT_OUTPUT_OPR TO <F>.
           IF SY-SUBRC <> 0. EXIT. ENDIF.   " No more fields in structure
    *       LEN = STRLEN( <F> ).    "DELETE
           DESCRIBE FIELD <F> OUTPUT-LENGTH  LEN. "INSERT
           IT_FILE_OPR+NUM = <F>.   " Write field to output table
           NUM = NUM + LEN.
           WRITE: ',' TO IT_FILE_OPR+NUM(DELIMIT_LEN).
           NUM = NUM + DELIMIT_LEN.
         ENDDO.
         APPEND  IT_FILE_OPR.
       ENDLOOP.

  • Table TQSS1, field NKSTAT (Decimal Places for Statistical Values, e.g. Ind)

    Hi QM Gurus,
    I would like to know as how this field NKSTAT is populated in table TQSS1 - Table.
    which customizing step is this maintained?
    I checked in QM settings at Plant level - customizing step too..
    Thanks in advance !!

    Hi,
          I think issue  is not of config. pl check your table seting.
    se16 -
    >TQSS1----->add desired details like plant etc  and execute -> settings (Header) - format list---> choose fields -
    >click on your field NKSTAT and other desired  feilds and copy . definately your field is gate populate in your table.
    Cheers,

  • Field with Decimal

    Hi all,
    How to define a field to hold the data of decimals.?
    I would like to define a field in such a way that it shoudl hold values like 123456789.55
    Regards
    Pavan

    data : amount type p(11) decimals 2.
    regards,
    Advait
    Edited by: Advait Gode on Oct 1, 2008 2:41 PM

  • Query to find records with more than 2 decimal places

    I have written the below query to find records with more than 2 decimal places, but it is returning records with decimal places 1 & 2.
    The datatype of the AMT column is NUMBER (without any precision).
    SELECT amt  FROM amount_table
    WHERE substr(amt, instr(amt, '.')) LIKE '.%'
           AND length(substr(amt, instr(amt, '.') + 1)) > 2Output:-
    AMT
    *41591.1*
    *275684.82*
    *64491.59*
    *3320.01*
    *6273.68*
    *27814.18*
    *30326.79*
    131.8413635
    162.5352898
    208.5203816
    8863.314632
    22551.27856
    74.716992
    890.0158441
    2622.299682
    831.6683841
    *1743.14*
    2328.195877
    3132.453438
    5159.827334
    3.236234727
    37.784
    Thanks

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    create table amount_table
      LINE_NUMBER        NUMBER not null,
      FEE_AMT            NUMBER not null
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (60208, 41591.1);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (60213, 275684.82);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (60238, 64491.59);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (63026, 3320.01);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (59906, 6273.68);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (83111, 27814.18);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (83114, 30326.79);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112395, 131.8413634682);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112399, 162.5352898104);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112402, 208.5203815738);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112403, 8863.3146321954);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112406, 22551.2785551322);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112407, 74.716992);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112410, 890.015844079);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112411, 2622.2996817048);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112414, 831.6683840698);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112415, 1743.14);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112418, 2328.1958771886);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112419, 3132.4534379886);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112422, 5159.8273341686);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112423, 3.2362347266);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112426, 37.784);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112427, 198.7423503696);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112430, 0.7220848332);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112433, 12.4149375254);

  • Decimal Places are not Permitted for Chile Country

    Hi All,
    In OVA8 settings for Chile country at the field max.doc value, i am not able to use the decimals. getting error message as Decimlas are not permitted (Message no - 00011). checked OY04 - there is no decimals for Chile currency. checked - OY01 Dec.Pt. format as 1.234.567,89
    For Argentina, Peru and Uruguay same settings has been done and i am able to save the decimal points in OVA8 at the field max.doc value.
    Please let me know if there is any specifis settings for Chile or SAP NOTE
    Thanks,
    Mahesh

    HI,
    just looking at a brand-new ECC60 / EhP4 system where nobody changed OY04 settings.
    I can find CLP (Chilean Peso) in the list with ' ' decimal places, so thats why there are no decimal places allowed.
    Check again OY04, if you find an entry for CLP and NOTHING is maintained it means that ZERO dec. places are allowed.
    If you find an entry in OY04 with a number of decimal places >0 than this decimal places are allowed.
    If there is NO entry for a given currency then its used with 2 decimal places (SAP standard).
    So OY04 is only for the currencies that should be treated different as SAP standard.
    Best regards, Christian
    Edited by: Christian Ortner on Feb 3, 2011 5:09 PM

Maybe you are looking for

  • Java windows slip under menu bar, how to move?

    Hi, I have accidently dragged some Java windows beneath the (transparent) menu bar. Safari browser windows do not slip under the menu bar, but those created by a Java application can slide beneath it, up to the edge of the screen...just far enough to

  • How to see data fetched in a field group.

    Hi All, Is there any possibility to see data selected in a field group? attached is the source code. I need to see the data within loop -endloop REPORT  ZFIELDGROUP LINE-SIZE 132 LINE-COUNT 65(3)  NO STANDARD PAGE HEADING. TABLES:SPFLI,SCARR, SFLIGHT

  • HT4623 i tunes wont sync or backup i phone 4s because a connection error

    my i phone 4s wont sync or bakup via usb because it says there has been a connection error .i never had this problem before ,my music and apps tranfer but new phone contacts dont any help,

  • JUnit in JDeveloper 10.1.3.04

    Hi, I am using JDeveloper 10.1.3.04 and wanted to add and run test cases using JUnit. Added a test class is no problem, easily located the JUnit Test Case class. But there is no where in JDeveloper that I could find to run this JUnit test case so tha

  • Forms customization error

    Dear all, Enabled action menu using form personalization for launching reports , when user clicks on Actions-->ReportName it is throwing error --> "Function not available to this responsibility, change the responsibility or contact the system adminis