How to correct decimal places in script

Hi,
I have a packed integer variable. The value stored in that variable is 8,156,265.598.
But i want it as 8.59 in the form.
How to achieve this?
Ezhil.

use [this link|http://help.sap.com/saphelp_nw04/helpdata/en/1c/f40c6fddf311d3b574006094192fe3/content.htm] on formating numerics fields for display.. [<click>|http://help.sap.com/saphelp_nw04/helpdata/en/1c/f40c6fddf311d3b574006094192fe3/content.htm]

Similar Messages

  • How to format a number to a correct decimal places

    i wanted to format a number to a correct decimal places say for example
    666.105 t0 666.11 please any body help us

    whether to use NumberFormat or DecimalFormat can u give me example thanks

  • How to maintain decimal places in BOM Qty & what is the essence of base qty

    Hello PP members
    How to maintain decimal places in BOM Qty & what is the essence of base quantity in BOM ?
    Thank You

    ur first question is not understood, You can have maximum of 3 decimals in BOM item qty.
    Base qty is the qty which is refered to all the BOM items.
    example -
    Product X, base qty 1
    Raw material 1 - componen t qty= 1
    Raw material 2 - Component qty= 5
    This means To produce Product with qty1, it needs raw material 1 qty 1  and raw material 2 qty 5.
    This means To produce Product with qty10, it needs raw material 1 qty 10  and raw material 2 qty 50.
    This is the meaning of Base qty..it is the referece qty refered to all the components.
    About the decimal places
    let us say  example 2
    To produce Product with qty1, it needs raw material 1 qty 1  and raw material 2 qty .0001.
    When you enter this in SAP for the raw materialm 2 system will give error message that you  need to enter the qty with maximum 3 decimal places, hence you need to enter as below
    Product with qty10, it needs raw material 1 qty 10  and raw material 2 qty .001.
    This is how you need to adjsut the base qty and component qty with decimalplaces moer than 3,
    pl come back

  • How to decrease decimal places in invoices

    Good day,
    How do i drecrease decimal places in invoices. For example , i have set the decimal places to 4 for costing purposes but i want the final invoice to be 2 decimal places for display purposes. i have tried decreasing the decimals using the decrease decimals icon but the decimals are still 4.
    Thanks

    Hi Wendy,
    This is System Standard that If you increased Decimal Place then you can not decrease those decimal Place again.
    If you want this then you can do this in (Print of Document) Document Layout through Crystal Report.
    Hope this help
    Regards::::
    Atul Chakraborty

  • How to Perform File- Place via Scripting (CS5)

    Hi all,
    Photoshop contains the option of directly placing one graphic file onto the currently active layer via the menu with File-> Place.
    How do I do this in scripting?
    TIA,
    mlavie

    @xbytor2: Thanks for the quick response.
    I noticed that File->Place does not bring the image's clipping path along with the image. Does your example do that, and if not, would you have any idea how?
    TIA,
    mlavie

  • How to allows decimal place for unit of measure of order confirmation

    Hi Guys
    we have some special cases here that need to confirm the order quantity as decimal place,is that possible made some customizing in code CO11N? or have some ways support it .....
    ex. work order A   10 EA
    - operation 1   : colse 10 EA
    - operation 2   : close 4.5 EA
    Regards/Eric

    Hi,
    You can set a UoM to allow decimals in transaction CUNI. But i fail to understand why you would want to set EA to have decimals.
    If a material is to be managed in decimals then evaluate the usage of a different UoM which allows for decimals.
    Regards,
    Vivek

  • In VC WEBDYNPRO compiler mode, how to set decimal places to 2

    The compiler mode is webdynpro,
    The ivew table column's data type is num type,
    The column show a curreny data.
    Now the problem is when the num data is like a number as "1000.00",the ".00" will not show,but when the value is "1000.01" ,it show "1000.01". I want it always show  the formatting like "X.XX".
    There is also no formatting property to set in the column like in flash compiler mode then i can set decimal places to 2.
    What should i do?

    Hi,
    You can use Decimal Format Class and declare something like:
    DecimalFormat df = new DecimalFormat("#,##0.00;(#,##0.00)");
    wdContext.currentContextElement().setSueldoTxt(df.format(wdContext.currentOutputSueldoElement().getPe_Betrg()));
    You'll have the two decimals...!!
    Good Luck and regards,
    Maria Margarita Monteverde

  • How to concetenate decimal place

    hi
    i have declared a variable as
    var_ad_addtn(16)  TYPE p  DECIMALS 10.
    now the value is coming as two decimal place i want to truncate the decimal place and only show as integer but i cannot declare like integare and the field value passed to this variable is type curr and upto two decimal place
    what i am doing is var_ad_addtn+(.0). but this is not working please let me know the syntex and statement for truncating and not display the decimal place value from a value
    eg 1232834.90 i want to show as 1232834 only
    regards
    arora

    Hi Nishant,
    Then try the following fucntion modules:
    HR_NZ_ROUNDING_DECIMALS
    ROUND
    CALL FUNCTION 'ROUND'
        EXPORTING
          DECIMALS      = 0
          INPUT         = var1
          SIGN          = '-'
        IMPORTING
          OUTPUT        = var1
        EXCEPTIONS
          INPUT_INVALID = 1
          OVERFLOW      = 2
          TYPE_INVALID  = 3
          OTHERS        = 4.
      IF SY-SUBRC  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    Chandra Sekhar

  • Casting Number as Char - how to hide decimal places?

    I am casting a number as a Char because I am concatenating it with other things. The problem is that when I cast to char, it displays two decimal places of just 0's. I really don't want to show the decimal place or anything after it. Is there a way to remove them?
    Thanks

    Hi,
    You can have two approaches for the same.
    1> cast( cast(column as int) as char)
    2> Go to the column properties(i.e the finger mark on the coulmn heading). Then select the data format tab and check the override the default data format tab. Then you can set the decimal places.

  • How to avoid decimal places in smartorms

    hi friends,
    i have to display a field VBAP-KWMENG (order quantity) in samrt forms it has a value 1.000  but it is display ing as 1,000.
    how can i avoid those zeroes after the 1 my req is to print 1.
    KWMENG is a data element with packed decimal as (15,3).
    i tried VBAP-KWMENG(Z), VBAP-KWMENG(T) , VBAP-(KWMENG(K),
    but it is not supprssing those zeroes.
    pls urgent........
    thanks in advance.
    VENUMADHAV

    Hi
    Declare a local Variable in the program line.
    L_display of type char .
    Pass 1 to l_display .
    In the ouput field pass &l_display& .
    Hope this helps .
    Praveen

  • How to find decimal place?

    If I have a number such as:
    123.45
    how can I figure out that the number has a decimal point greater then 0? I just want to isolate the decimal part and compare it's value, but I'm not sure what a good way to do that would be. My first thought was to change it to a string and then back again, but I'm not sure if that is a good way.
    Message was edited by:
    bclark

    public class Test
         public static void main(String args[])
              double number = 123.45;
              int intValue = (int)number;
              System.out.println( number > intValue );
              number = 123.00;
              intValue = (int)number;
              System.out.println( number > intValue );
    }

  • How to change decimal places in currency

    Hello ,
    I am an abapers,I Have one problem while displaying the currency fields in my Report.
    My problem is In Fbl5n,it displaying amounts as 50,000 for document number,
    But in my database,It is storing as 500,00 for that document number.I need to store the amount as 50,000. is there any settings to be changed to solve this problems
    For this how can i solve this problem.
    Waiting for your favourable reply
    Regards
    Maruthi

    Hi
    You can change your profile in SU3 transacton.
    Thanks
    Ashok
    Assign points for useful answer

  • SQL*Loader how to handle decimal place

    Hi all
    I need to load data into table with number field (12,2)
    however, the source data is 1,025.02. Then the data cannot be loaded and in log, there is error message Invalid Number
    Please kindly advise how to handle this in control file?
    Thanks
    Thomas

    load data
    ,YOUR_NUMBER_COLUMN .... ... ... " to_number(:YOUR_NUMBER_COLUMN,'999G999D99' , 'NLS_NUMERIC_CHARACTERS=''.,'' ')"
    )

  • Decimal places when exporting HFM form to Excel

    Hi All,
    We are on HFM 9.3.1.3.
    From the web, when we export a data form to Excel, we lose the decimal places.
    In our data form we use 3 decimal places, however all exports to Excel deafult to 0 decimal places. We can reproduce in Excel 2003 and 2007.
    Is there a setting we can change so that an export to Excel picks up the decimal places used in the data form?
    Thanks for your help.
    Seb

    Hi,
    Thanks for the reply. I just checked and both settings are the same:
    decimal separator is a . in the server's regional settings and user preferences.
    I have tried changing the regional settings to no avail.
    The strange thing is that if I connect from my laptop to another 9.3.1 environment then I can export to excel with the correct decimal places.
    I'd say this is definitely an environment issue.
    Thanks again for your help.
    Seb

  • Changing Decimal Places for Currencies (Table V_TCURX)

    The instance is ECC 6.0
    We need to change the decimal places for a currency from 0 to 2 decimal places. Is there any impacts of doing that?
    Also need to add some currencies which are not in the table. Is there anything need to be careful while doing this. If this table is updated, do we need to update any other tables also which may be impacted?

    Hi,
    It is not recommended that when postings have already been made, that a change in the currency be done, as amounts posted can become invalid or incorrect as a result (ie USD 100->1.00), which is most critical in production environment Please go through the note 137626 When you made changes via OY04, the effect of which is across all clients.
    To change the number of decimal places for a currency already in use, you must convert all the tables in the R/3 System that contain currency fields, so that the data integrity remains. This cannot, however, for both organizational reasons and under the runtime aspect, in a productive system.
    You must never change decimal places in a productive system if you have documents posted with this currency. Such a change could lead to inconsistencies in these documents already posted.
    In case you really decide to use decimals you may consider to use SAP conversion services for them to convert all documents aready posted as explained in note 434349.
    Additional inforamtion:
    Note No.  137626 - FAQ: Decimal places for currency codes
                     126857 - Display of amts with correct decimal places in SE16
                       53206 - Processing of currency fields
                         9574 - Currency fields on selection screens
    Regards
    Ravinagh Boni

Maybe you are looking for

  • Cannot add songs to shuffle

    2nd gen shuffle wont add songs from itunes. Did the five r's reinstalled itunes. ipod shows up on itunes and computer. when I click autofill it tries to load songs but an error message( cannot write or read disk ) pops up.

  • Hp LaserJet 3050 and Windows & Windows 7

    It appears the price we pay for Windows 7 is loss of most of the functionality of our HP all-in-one units.  Sure they print but they do not do anything else because the software stopped working and there is no fix, at least not for mine (use Windows

  • I Just bought iMovie for yosmite and the program will not open.. I will like a fix or a refund..

    I Just bought iMovie for yosmite and the program will not open.. I will like a fix or a refund.. i am getting tired of these problems...

  • TrackID for Nokia s40v5.1

    Is anyone a Sony Ericsson owner just to compare software? Then it would be clear about the thing that TrackID is not for Nokia series 40... 1. Can anyone make it? 2. If no, then how to force re-install from series 40 to symbian? If not clear, i'm usi

  • SAP Router Configuration

    Hello Gurus I need help to configure SAP Router in my server, can somebody guide me the process how to configure it. Details of my server SAP Version - 640 Oracle - 10.2.0.2.0 O/S - Windows - 2003 Server/ SP1 Thanks & Regards Shishir