About Decimal Places

Hi ,
I have an amount filed which is of type Currency 15(2)
I have to pass it to another variable
Suppose if my amount field is : 4700.22
my other variable should get it as 000004700220000
means from this other variable this field is passed into a file where its amount field is of 15 characters with 6 decimal places.
Thanks in Advance..
Satya.

I think this doesn't work
why BCoz
If my amount is 123.222
when passing it to varp it becomes .123222.
I have a solution for this that is
by taking a numeric variable with 11 characters and by passing the amount field to it after that overlaying it with 15 character constant with all zeros
this will work
But I need a better solution for this ..
Please help me out.

Similar Messages

  • Question about decimal places for currencies

    hi ,experts ,
       here is the problem , when i use mb5s, i found the net price has been enlarged 1000 times . I  also found the data of the table EKPO has been enlarged 1000 times. So ,i check the decimal places for currencies , i found there are five decimal places , the standard system is two decimal places . 
       Does this mean that we cann't  change the decimal places in SAP?  If we can change , what should we do for configuration ? 
    Jarod

    When running OY04, you are receivingin the following message:
    Before you continue, please read the following        
    text carefully.                                       
    If you do not heed this note, you can cause
    irreparable damage to the system with this            
    transacton.                                           
    In the R/3 System tables currency fields are          
    stored as decimal figures with a variable number      
    of decimal places. The decimal point is not           
    stored in the field in the database. Instead,         
    each currency field refers to a currency key          
    field. In this transaction you assign the number      
    of decimal places to this currency key uniquely.      
    Example: If you have set currency USD to have         
    two decimal places and you post an amount of 100      
    USD, an amount of 10000 USD is stored in the          
    Do you want to change the decimal places despite      
    all recommendations?

  • Question about decimal places

    Guys,
    When I do the "Normalization of Result" and make "Number of Decimal Places" as 0.00.  The result still gives me 100.000%.  Is there a way that i can make it 100.00%?
    Thanks,
    RG

    Hi Ram,
    As shown in the properties itself in "Number of Decimal Places" --> (From Keyfigure: 0.000), it is the default thing provided by SAP. Try giving different things for "Scaling Factor" too along with "Number of Decimal Places", you may achieve your required thing.
    Regards,
    KK.

  • Round to two decimal places...and keeping trailing 0

    Ok, I have done a search on rounding. So I made this function:
        private double round(double number){
           double d = Math.pow(10, 2);
           return Math.round(number * d) / d;
        }However, if I use a number like 3.59999, it returns 3.6. For what I am using it for, I need it to return 3.60. Any ideas? Thanks.

    You normally only format for display! You seem to be wanting the default format to show 2 decimal places. This makes no sense. Internally a number(double or float) doesn't know about decimal places so how can the default format know you want 2 decimal places?
    For the most part you only need to worry about decimal places when you print a number using the DecimalFormat class.
    There are times when you might want to round values to 2 decimal places before doing more calculation. I have only met this when adding monetary values when it is important that a column total equals the sum of a displayed column values. In this case one uses something like the technique you originally proposed to round values before summing them. You then use DecimalFormat to display the values.

  • U261B An Issue due to 3 Decimal Places in Percentage - Help Required

    I've an Issue in BEX report output, which is like when I try to create a 'Percentage' computation on a Key Figure Value, I'm getting 3 decimal places as 'default' output.
    The 'Calculations' settings I made for this KF is
    > Calculate Result as ... Nothing Defined
    > Calculate Single Values as .... Normalize According to Next Group Level Result
    > [✔] Apply to results
    > Calculation Direction - Along Rows
    ☹  I ran SAP_RSADMIN_MAINTAIN and set object 'IGNORE_T006_ANDEC' to the value 'X' - Not woking! Should I choose Update/Insert/Delete??
    ☹  T006-ANDEC & T006-DECAN for '%' has 0 decimal places only. Am I checking the correct stuff?
    ☹  OSS note 866505 not helpful for my issue. BW 7.0 Stack
    I'm getting my output as expected, but the only worrying factor is 3 decimal places due to the 'Calculations'. I'm unable to resolve using existing methods. Should I raise an OSS Note for this?
    Please help...

    Hi, I posted a message to SAP on this topic and got an explanation - it is a behaviour that cannot be changed in certain cases:
    it is the known design that it is always displayed with three decimal
    places for normalized values and the setting in Query Designer for
    decimal place doesn't take effect. This is because that normalization
    changes the number dimension of this structure element.
    You may refer to below notes about more details.
    > 869135 Decimal places and scaling for "Calculate Single Values As"
    You cannot set the number of decimal places or the scaling for some
    columns or structural components.
    For 2: Some "Calculate As" functions change the number dimension of a
    KID. In this case, the scaling and the number of decimal places set for
    the KID are no longer relevant. In this case, the system ignores the
    original setting and selects a setting that corresponds to the new
    number dimension. This cannot be overwritten. The following functions
    are affected:
    Calculate Single Values as Scale to Result, Overall Result or Query
    Result: Scaling 1 and three decimal places.
    > 501930 Number of decimal places setting is not applied
    As a result, normalized values resulting from the list calculation are
    displayed with three decimal places and without scaling by default.
    best regards, thom

  • Cannot Update Decimal Places in General Settings

    When I try to update the decimal points in the Administration > System Initialization > General Settings > Display path, SAP B1 gives me the following error:
    "Cannot update while another user is connected to the company."
    I am the only one on the system as "manager" with "Super User" and "Full Authorization"...
    The SAP B1 Guide titled "How to Make Initial Setting in Business One - US" says "you can change these settings at any time".
    QUESTION:  What might be stopping this change, and more importantly, how do I get around this error to be able to change the decimal points?
    Thanks all - Zal

    Hi Zal,
    I agree with you about the strange messaging used by SAP.
    But blocking the possibility to decrease the decimal places is extremely important.
    Suppose you have inserted a sales document with two items in this way:
    Item 1 ___Qty 1,234  ___Unit price 1,22  ___Line total  1,51
    Item 2 ___Qty  5,756 ___Unit price 3,15  ___Line total 18,13
    ____Document total 19,64
    Then, someone wants to change the number of decimal places of the quantity from 3 to 2.
    What happens would be:
    Item 1 ___Qty 1,23  ___Unit price 1,22  ___Line total  1,51
    Item 2 ___Qty  5,75 ___Unit price 3,15  ___Line total 18,13
    ____Document total 19,64
    If you try to do the calculations manually you will see that the results are not correct. In fact all the document would have to change in:
    Item 1 ___Qty 1,23  ___Unit price 1,22  ___Line total  1,50
    Item 2 ___Qty  5,75 ___Unit price 3,15  ___Line total 18,11
    ____Document total 19,61
    Also if the document total will show correct (in the case of rounding the second decimal position of item 2), the totals of any line is wrong. In fact there is no recalculation at all in SAP (and must not be done).
    Imagine such a modification over thousand of documents and all of the descendants (mainly if the have lead to printouts - as say confirmations - sent to customers or vendors).
    None of the economic figures will match.
    BR
    Antonio

  • Decimal places in Measurement tab for Land

    We lease-in Land in Acres. Typical land sizes require area to be defined in decimal units e.g 18.963 ACR or 256.755 ACR.
    However, in the measurement tab for creating Land the amount column is rounding off all decimal values to whole numbers. Like in the above example what gets entered is 18 ACR and 256 ACR respectively.
    I did not find any decimal options while defining the measurement type. Any clues how to go about resolving this issue?
    Hamdan

    Hello Hamdan,
    You need to define new custom or change the existing unit of measurements assigned in respective dimensions. In this node you specify the number of decimal places you wish to have on particular unit. for example usually ACERS have 3 to 4 decimals as the unit is too high and the rent amount can differ a lot if we omit the decimals.
    SPRO -> SAP Netweaver -> Check Units of Measurement
    On the next screen select the dimension and click on the unit of measurement. create or edit the unit and specify the rounding decimals and other attributes as needed.
    Assign this Unit of measurement to the measurement types in REFX and the Measurement types of the object types, which I am sure you know already.
    Enjoy,
    Jag

  • Changing the Decimal places for Percentage in cost distribution in SC

    Hi Gurus,
    Is it possible to change the number decimal places for the Percentage field in cost Assignment tab in Shopping cart in cost distribution option?
    The user wants 3 decimal places, currently we can enter only 2 decimal places.
    I have gone thro' couple of blogs which are talking about changing the price decimal and not the percentage field decimal. (in IMG setting: General settings > Currencies > Set Decimal places)
    So, if anyone come acorss this issue, please let me know.
    Thanks and Regards,
    Nowsath

    Decimal Places Factor of the Receiver Weighting Factors
    Specifies the number of valid decimal places with which the given weighting factors are valuated.
    Example
    You enter 123456 as the weighting factor. Depending on the factor, this number is interpreted as:
    Factor Decimal places Weighting factor
    1 0 123456
    10 1 12345.6
    100 2 1234.56
    1000 3 123.456
    10000 4 12.3456
    100000 5 1.23456
    1000000 6 0.123456
    Please check with your FICO consulant .what settings you have in backend system.
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/bdbdc4575911d189240000e8323d3a/frameset.htm
    Muthu

  • More DECIMAL places for MM price-Not Global

    I have read the <u>many</u> postings on decimals. However, I have not seen the exact scenario I'm inquiring about.
    I want to increase the decimal places from 2 to 4 for the cost of materials we purchase (i.e. supplier price), but I do NOT want to set this as a global aspect for the company when dealing with numbers/currency.
    It's not just a simple matter of setting a different unit of measure, because let's say we order a reel of capacitors - the reel may come in qty of 1,000 or 2,500 (only one example). So, we really need to set price by (ea). The problem is that many of our parts price at .0014 (example) and in SAP that shows a cost or price [depending on where you're looking] of zero. Plus, the Purchasing agent sends a PO with incorrect price information.
    <b>It would be very helpful if anyone could tell me how to increase the number of decimal places for specific fields as opposed to globally.</b>
    Thanks you!!

    The right tool to do that is the pice unit. This is in the system for ecatly that purpose, to provide more precision in prices. It has nothing to do with unitz of measure that is used for logistical purposes.
    If you have a price 0f 0.0014 each you can set a price unit of 1000 and will have a price of 1.40 for 1000. You still can have only 500 or even 1 on stock. the calculation done if you receive your 2500 will be 2500 * 1,40 / 1000 which is of course the same as 2500 * 0,0014
    best regards,    Udo

  • Currency Decimal Places setting restore

    Hi Experts ,
    Unfortunately we have changes the setting for currency decimal places in SPRO ==> SAP NETWEAVER ==>GENERAL SETTINGS ==>CURRENCIES ==>SET DECIMAL PLACES FOR CURRENCIES.
    for Currency INR from default 3 decimal places to '4' decimal places, due to this the amounts entered in MM inforecords were changed e.g. the amount which was entered as 15.20 inr changed to 1520.00 inr, After getting reply from Fourm and the senior consultants we have deleted the INR currency from the about setting i.e.from table 'TCURX' after doing this the amounts get corrected i.e. from 1520.00 INR to 15.20 INR.
    But again the same (adverse) change is being seen in amounts for MM Inforecords and SD Condition Records
    If we enter a new record it shows the correct amount.
    How can i correct the previous amounts. It has happen suddenly and what guarantees that this should not happen again.
    Please give me the solution as early as possible. We have to Go-Live in next 2 days..
    Thanks in advance
    Amol

    HI, anand,
    SAP suggest never touch decimal places.
    Regards,
    Satish

  • Decimal place in Quantity field

    Hello experts,
    Got a query regarding decimal places in the quantity field of a sales order.
    The material UOM is maintained as EA. I have checked the transaction CUNI, where the decimal place is maintained as ZERO. Still , Sales order / Delivery documents which i am creating is allowing decimal places for in the quantity.
    For eg: material quantity of 50 EA in sales order, during the delivery batch splitting is getting splitted as 25.095 EA and 24.050 EA. Can you pleae advise the reason for this and how to go about this...
    Thanks,
    Safeer Rahman

    Thanks for your reply....
    But , as i have already told the decimal place field  is maintained as 0(zero) in CUNI for the UOM EA.... Still its allowing me to enter decimal values... for eg:. its allowing me to enter 50.038 EA. I don't know why its not giving an error message prompting me not to enter decimal values...
    Any idea?
    Thanks,
    Safeer Rahman

  • Need to trim decimal Places in data pulled in Financial report

    Hi All,
    We have a Financial report in which in partcular column, data is being pulled by the formula :
    <<CellText("Grid1", Cur, C(A), 1)>>
    Some cells in that column contains only text comments, some cells having numbers only.
    Issue is with the numbers. Numbers when pulled in FR are being dispalyed upto 6 decimal places, i.e. 1234 is displayed as 1234.000000.
    So if somebody can suggest how can we modify the formula so that we can display the numbers without decimal values. i means , numbers being pulled are displayed as 1234 only not like 1234.000000.
    Thanks,
    Satish

    Hi there,
    You can use the function Trunc(xxxxxxx, 0) where xxxx is your retrieved value which is considered as numeric.
    However, if I were you, I would concentrate on how to resolve the issue with the smartview submission.
    Regards,
    Thanos
    One Truth about...

  • 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

  • Changing Decimal Places in CUNI

    hello,
    my company's requirement as of the moment is to increase the decimal places being displayed during service request for Activity Unit (AU).  current setup is 3 decimal places.  we need it to at least 10 to ensure almost exact computation.
    i tried changing the decimal places in TC CUNI, but it wouldn't let me proceed.  Per error message the ISO code for AU is similar with PC, which is PCE.  Upon checking in DEV, PC has no ISO code, but it has in PRD (PCE).
    1. how do i go about the ISO code error?
    2. what is the impact of changing the decimal places now that the system is live for 8 months now? will it affect existing POs?
    3. if it is no longer advisable to change the setup, how will we dispose the difference between the billed amount of contractor against the amount generated during GR/IR and MIR7?
    thanks in advance, gurus.

    thank you for your inputs, Jeevan.  we've tried up to 100,000 since any more will make the PO exceed the original contract amount.
    the contract involved will be delivered in a span of many months, and billing and payments will depend on percentage of completion.
    i hope someone can enlighten me as to how other companies do it, best practice or not.  i'm pretty sure those in construction or property development will find this case familiar. or maybe point me to an article or anything.
    thank you for taking the time.

  • Formatting Numeric Only with Variable Decimal Places

    Acrobat Pro 9, Windows XP
    I'm creating a form that has a number of text box form fields that are to be numeric only per the form requestor. However, for any given field of this type the number of decimal places that can be entered can vary from 0-3 and the requestor does NOT want any unnecessary decimals to appear in the final output (e.g., a "1.2" entry should not appear as "1.200"). The standard number formatting properties always show all the decimal places so I know it's not that route. No calculations will be performed with any of these entries -- the form requestor merely is entering data and then printing it out so that it's legible for the end-user.
    I know that the following line of JavaScript in the Custom Keystroke property limits the entry to numeric only, but how should I tweak the syntax to allow a decimal entry:
         event.rc = (!event.change || /^\d$/.test(event.change))
    I probably also need a script to format for decimal places, but I don't know where to look in the JavaScript for Acrobat API Reference or in the MDN JavaScript Reference.
    Thanks in advance for any assistance.

    Good question. To keep it simple (because there are about 300 form fields in this document), if they choose to add extra decimal zeros, then who am I to argue with their entry. So in your example for a given form field, if they enter "1.200" then I expect that they want "1.200" to display.
    OK, but earlier you said:
    "However, for any given field of this type the number of decimal places that can be entered can vary from 0-3 and the requestor does NOT want any unnecessary decimals to appear in the final output (e.g., a "1.2" entry should not appear as "1.200")."
    This seems inconsistent. Can you clarify? The point is the code and where it's placed depends on this. It could be implemented either as a custom Validate or Format script, in addition to a Keystroke script.

Maybe you are looking for

  • F104 (ERROR: Document type SA not defined)

    Hello, Error posting Provisions for doubtful receivales via F104. The document type SA not defined! I need to create document type SA, or i can use a existing one? If i need to create SA, can i create it from a document tyoe model? Best regards, Brun

  • Error message when attempting to copy...

    I'm trying to move Time Machine backup files to a larger external drive by copying the folder but keep receiving this error: "The backup can't be copied because the backup volume doesn't have ownership enabled" Is there a way to resolve this? Thanks!

  • Cu2 to cu5 upgradation

    hi... we are planning to upgrade our exchange server 2013 cu2 to cu5. so regarding this i want to know the step by step procedure of installation..so i request you to provide the required information.

  • Location of PCUIGP files

    Hi Experts, Can I find PCUIGP files  on portal? If yes then where?? Please Suggest. Regards Upendra Agrawal

  • Doubts on Infosets

    Hi All, I have some doubts on the info sets. Please could some one throw some light on them. I am creating an infoset for master data reporting with 8+ infoobjects. Does this affect the query performance? How does the infoset work i.e will it check o