KONV-KAWRT number of decimals

The condition base value of a condition is always stored with 2 decimals in KONV-KAWRT, regardless of the actual number of decimals which depends on the unit in KONV-KMEIN. For example, 500 G (gram) is stored as 5000.00 G because G really has 3 decimals.
When viewing a condition in VA03 or VF03, SAP will show the condition base value with the right number of decimals.
My question: how can I determine the actual number of decimals myself? I thought it might be in T006-ANDEC, but that's not it.

Dear Filip,
Try the following simple syntax:
DATA: FLD(8) TYPE P DECIMALS 2,
DEC TYPE P.
DESCRIBE FIELD FLD DECIMALS DEC.
DESCRIBE FIELD KONV-KAWRT DECIMALS DEC.
Regards,
Pranav.

Similar Messages

  • Typing at Root Level KONV-KAWRT

    How do you TYPE at the root level for a given field?
    For example, take field KONV-KAWRT which points to data element, KAWRT, which points to domain, WERTV8, which is type CURR 15 characters, decimals 2.
    Now, suppose (_and I know you wouldn't normally do this)_ you wanted to make a variable that matched KONV-KAWRT without referencing the data element
    You can query table DD03L providing KONV as table and KAWRT as field and see various fields values like:
    INTTYPE = P
    INTLEN = 8
    LENG = 15
    DECIMALS = 2
    By this, you'd think this is the correct declaration:
    DATA:  LV_VAL(8) TYPE P DECIMALS 2.
    But alas, this is not correct.... PLEASE LET ME KNOW YOUR IDEAS.  THANKS.

    Didn't do root level; just found similar data elements for typing.

  • Number of decimals in the stock, availability tab.

    Hi,
    Dose anybody know if it is possible to change the number of decimals that appear in the availability tab, in the stock. It appears 3 decimals (as is defined in the data type).
    any clue???
    thanks for your attention
    best regards.
    Jorge Vigo

    Hi Sorin,
    thank you very much for such a clear answer.
    Regarding the question of how to give the parameter value, we did input once 25,10 and ended up in an error upon "modify application" execution. We actually had to delete that entry (Full Optimize Problem) because BPC seemed to not like the comma at all in the tblDefaults table where that value is written (by the way, we did delete it through web admin as you suggested, not directly in the table, -almost- never delete directly from the table
    If just a plain 25,10 is the appropriate value, do we need to delete that value from Web Admin once the application has been copied and processed? Should we rather not have any problem at all by inserting 25,10 in Web Admin?
    Thank you,
    Rafael

  • Change Amount depending on number of decimals for a given currency

    Hi All,
    I have a requirement to change the amount field based on the number of decimals.
    I am using 'BAPI_CURRENCY_GETDECIMALS' to get the number of decimals for the given currency.
    I am having an amount field(say 3000.00), that needs to be changed.
    In our case, we have to change the amount field if the decimals are less or great than 2.
    Eg:
    Suppose, if no.of decimals is 2, then the same amount should be returned, i.e., 3000.00.
    If the number of decimals is 1, then the amount value should be multiplied by 10, that is 30000.0 should be returned. If the number of decimals is 0, then the amount value should be multiplied by 100, that is 300000 should be returned.
    If the number of decimals is 3, then the amount value should be divided by 10, that is 300.000 should be returned. If the number of decimals is 4, then the amount value should be divided by 100, that is 30.0000 should be returned and so on.
    Any pointers would be helpful..
    Thanks & Regards
    Gowthami

    Hi All,
    This logic works fine for multiplication. But checking conditions for decimals > 2 would involve many conditons.
    I think this can be achieved by two ways.
    First way is by concatenating number of zeros to 1 depending on decimals and either by dividing or multiplying the values by checking the condition.
    Second way is by shifting the decimal point either left or right depending on the decimals.
    Please help me in implementing the above.
    Thanks & Regards
    Gowthami

  • Normalization function & number of decimals

    While using the normalization function within Q. Designer to calculate share of markets, I can't seem to be able to set the number of decimals. It sets it automatically to 3 numbers after the comma...
    I've tried to make reference to it in a new formula, scaling factor, dimension free, etc..
    Is it normal?
    A.

    Hi Alex,
    Seems like it's the original format in BEx, we can't change the number of decimals. It's like the currency code which is always displayed next to the numbers.
    Maybe what you can do, it's to change the format in excel or create a workbook.
    Hope this helps.
    Cheers,
    Mona

  • KP06 cannot enter number with decimals in fxd. consumption

    Hi!
    When using transaction
    KP06 Change Cost Element/Activity Input Planning with
    Planner Profile SAP102,
    layout 1-102 Std.layout Activity input ActInd/ActDep
    we cannot enter number with decimals in field Fxd. consumption
    Field name MEF
    Data element MEFXXX
    When we enter number with decimals like 12,45 it gets rounded in 13.
    I have tried to change number format of this collumn from Not defined
    to 0,00 but this is not helping. The rounding still takes place.
    My question is where can I assign the unit (of measurement) for posting of quantities.
    Regards,
    Marina

    The UOM is assosiated with Activity Type, and has a certain number of decimal points in the definition of UOM.  The other place to influence decimal points in the proper planning layout (column settings).

  • ALV column with variable number of decimals to be displayed

    Hi,
    I've an ALV where I need to display a numeric column with a variable number of decimal row-by-row, from 0 (no decimals) to 4.
    I've declared the numeric field as TYPE P DECIMALS 4.
    I've tried with DECMLFIELD in ALV catalog, and this works for 1 to n decimals, but when  I leave the field indicated in DECMLFIELD equal to 0, ALV shows the default number of decimals of the field (4 in that case).
    Any help will be very appreciated.
    Thanks.
    Jordi

    No, I didn't try EDIT_MASK.
    How should I use it to format output to display decimals or not depending on the row?
    I have 2 kinds of values, all stored in a TYPE P DECIMALS 4: Those that really are an integer (decimals should not be displayed for that ones) and the values that really have 4 decimals (which should be displayed with decimals in ALV).
    Example:
    13,0000 should be displayed as 13
    0,4567 should be displayed as 0,4567
    With EDIT_MASK could I do that?
    Thank you very much.

  • Number of decimals in an application

    Hi all,
    I need to change the number of decimals in some applications, and have been reading some threads about it. I have found some different explanations, and I would like to make sure of how to do it.
    1) What do the numbers in the parameter SIGNED_DATA_FORMAT mean? For example 25,10 means:
          a) we have 25 digits to the left of the comma and 10 to the right, like 1234567891234567891234567.1234567890
          b) we have 25 digits in total and 10 for the decimals, like 123456789123456.1234567890
    2) If the correct answer to the previous question is "b" (I think that is the correct one), 25 is the maximum amount of numbers we can have? Could we set 50,15?
    3) what is the correct way of inputting the value in the parameter (in BPC Web Admin Application parameters)? (I mean, like 25,10 or (25,10) or "25,10" or 25.10 or.....). We had a problem some time ago with this ( Full Optimize Problem ).
    4) so, to make the modification, we should first set the parameter in an application, then make a copy of the application (the new one will have the number of decimals changed), then delete the first application, right?
    Thank you very much,
    Rafael

    Hi Sorin,
    thank you very much for such a clear answer.
    Regarding the question of how to give the parameter value, we did input once 25,10 and ended up in an error upon "modify application" execution. We actually had to delete that entry (Full Optimize Problem) because BPC seemed to not like the comma at all in the tblDefaults table where that value is written (by the way, we did delete it through web admin as you suggested, not directly in the table, -almost- never delete directly from the table
    If just a plain 25,10 is the appropriate value, do we need to delete that value from Web Admin once the application has been copied and processed? Should we rather not have any problem at all by inserting 25,10 in Web Admin?
    Thank you,
    Rafael

  • How can we specify the number of decimals to be printed

    How can we specify the number of decimals to be printed
    such as "%5.2d" in C.
    Can anyone help me

    You could use the DecimalFormat or NumberFormat to do the job.
    double number 1234.567;
    DecimalForamt df = new DecimalFormat("###.##");
    String s = df.format(number);or
    double number 1234.567;
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    /* if needed.
       nf.setMaximumIntegerDigits(value);
       nf.setMinimumFractionDigits(value);
       nf.setMinimumIntegerDigits(value); */
    String s = nf.format(number);I didn't test the codes but they should work. For more information, please consult the documentations.

  • How to find the number of decimals in a given value

    Hi all,
    Can u please help me in solving the problem,
    i have a value called 5987.45
    and decimal places are 45 that is 2 numbers
    2) 765.987
    number of digits in decimals are 3.
    3) 67543.1
    number of digits in decimals are 1.
    for this i need a coding
    thanks.

    Hi,
    While printing your text element give as;
    &wa_tab-dec_value(.2C)&
    This will always print everything with 2 decimals.
    Regards
    Karthik D

  • How to change number of decimals in percentage agreement rebates

    Hi,
    I'm searching for a solution to have percentage amounts with 5 decimals instead of 3, in the conditions of rebate agreements.
    That's concerning transactions VBO1, VBO2, VBO3.
    Thanks for help.

    dear bras
    refer this
    Changing Data Types and Lengths of Existing Fields
    If a  data element is assigned to the field, you must change the technical field attributes (data type, length, number of decimal places) in the domain of the data element.
    Procedure for Fields with Data Elements
    Double-click on the name of the data element.
    The data element maintenance screen appears.
    Double-click on the name of the domain.
    The domain maintenance screen appears.
    Choose Domain ® Display ® Change.
    Make the required changes and save your entries.
    Note that this change affects all the table fields that refer to the particular domain. Foreign keys could become inconsistent and conversions required. You should therefore consider the effects of this action before changing the domain by choosing  in the maintenance screen of the domain and checking if the domain is used in other tables.
    Choose .
    The table is activated again and the table field is adjusted to the domain change.
    Procedure for Fields with Direct Type Entry
    Place the cursor on the field and choose Data element / Direct type.
    Values can now be entered in fields Data type, Length, DecPlaces and Short text.
    Change the entries for the data type, length and possibly the number of decimal places.
    Save your entries.
    Choose .
    Note that a table conversion will normally be necessary (see  Adjusting Database Structures) if you change the field attributes.
    rewards if it helps
    siva

  • Again: Number Format, Decimals in calculated fields

    My customer wants to know how he can have calculated fields in his reports.
    I've found out that e.g. this works for the calculation:
    <?format-number:((SALARY) div (../../DEPTSAL));'#,##0.00'?>
    But there is no way that I can get a precision of two decimals. All given formats are ignored.
    Maybe this is an issue with the european decimal sign , (Comma).
    How is this to be fixed?
    The use of the translate function was recommended somewhere. I have no idea how to bring it together with my calculation formula.
    Thanks in advance,
    Kai
    Message was edited by:
    kai

    Hi kai,
    First you need to remove comma from your amount field then you can get your result.
    If you have any comma in your amount field then xml number format does not work.
    Look this forum:
    Re: How to indicate number percission in a template?
    Thanks
    Ravi
    Message was edited by:
    Ravi Tripathi

  • Number of decimals

    Hi all,
    My requirement is :
    I have a CHAR field (FIELD1) which would have values like 23.45, 12.3456.........
    Now I have another field (FIELD2) which has the number of decimal places I need to care about.
    For example -
    If FIELD2 has '1' and FIELD1 has a value of '23.45' then I should overwrite FIELD1 value with '23.4'.
    Similarly if FIELD2 has '2' and FIELD1 has '12.3456' then I should overwrite FIELD1 value with '12.34'.
    And mind you if have '2' in FIELD2 and if FIELD1 has '2' then I should overwrite FIELD1 value with '2.00'.
    I will summarize it again,
    FIELD2   FIELD1   FIELD1
    1        23.45    23.4
    2        12.3456  12.34
    2        2        2.00
    0        12.34    12 
    Can someone help me with some logic to get around this issue. I would be more than happy to award full points.
    Waiting for your replies...

    Nope for some reason it is not working for me. I dont know what I am doing wrong. Below is the code I tried
    data : value1 like qcres-mvalue.
    data : value2 type i.
    value1 = 2347 / 100.
    shift value1 left deleting leading space.
    value2 = 1.
    write value1 to value1 decimals value2.
    write :/ value1.
    The output of the above code is '23.47'. But I am expecting an output of '23.4'.
    Suresh or someone please let me know what I am doing wrong.
    Thanks...

  • How to decide number of decimals

    Hi!
    I wonder how I can decide how many decimals I want. I write a program where I use doubles, but there is no limit on how many decimals I get. How can I limit the decimal the easiest way?
    for instance like this:
    double a = 1.23
    double b = 1.46
    double c = a * bWhere c is in format x.xx (eg 2.34).
    Also, is there a way to e.g tell that you want 2 decimals, but if the number you get is an integer (eg. 1), it will only say 1 and not 1.00.
    Thank you in advance.

    Cissi wrote:
    Also, is there a way to e.g tell that you want 2 decimals, but if the number you get is an integer (eg. 1), it will only say 1 and not 1.00.There sure is, but this depends on your interpretation of what the double being an integral value means. You never want to deal with absolute == operations on doubles.
    This is a way of telling whether a double is an integral value to 5 decimal places:
    double a = 3.000006;
    int factor = 100000;
    if ( Math.round(a) * factor == (int) (a * factor) ) {
       //a is an integer to 5 decimal places
    }There are probably better ways to do this though; I don't use floating point numbers all that much in what I do.
    edit I threw up a bit in my mouth after I read what I wrote there. Please don't use that. I wouldn't.
    Edited by: endasil on Dec 20, 2007 9:53 AM

  • Truncating a number with decimals

    I have created a field {@years} with the value -10 which was used as part of a formula. This part has worked fine. I also wanted to use {@years} as part of the report heading where -10 represented a time period. However, the number came up as -10.00. I used the formula Truncate(Abs({@years})) but only the Abs part seemed to work. The number came up as 10.00 instead of 10.
    Is there a problem with the formula I'm using or with Crystal Reports X or something else?
    Regards
    Jorge

    You said:
    "I tried to use Abs within your formula ToText(Abs({@years},0,"")) but it says that too many arguments have been given to the function."
    You've almost got it.  Check that your parens are correct.
    I haven't run this on my machine yet, but I see that
    the Abs function is not ended after @years...you have } but not
    ) after that.  See what I mean ?
    The Panda
    Here you go, I just ran it. First, here is the Abs function:
    abs(-2.0)
    Then I place the abs function inside the ToText function:
    ToText(abs(-2.0), 0, "")
    Notice how (-2.0 is closed off with a paren -  ")".
    Yours is not closed off and the compiler thinks you are throwing (...giving) too many parameters to the Abs function (...which you are   :).
    The Panda

Maybe you are looking for

  • Spool list output truncated after 255 char

    Hi,    I'm using ALV list(FM: Reuse_alv_list_display) in my report. When it is run in background, the output is sent to spool. The problem is the list is truncated after 255 characters. Is there any way to display more than 255 characters in spool? S

  • The option bar is covering the top of my window

    The top of the window that I have opened, is covered by the option bar meaning I can't move that window around. I don't know how to move this window with the bar there, or how to make a window open so that it isn't covered by this bar.

  • SXMB_MONI messages

    Hi, May I know, how to check SXMB_MONI messages with PI 7.1(/nwa)? Sundari

  • Unknown error in Jdialog?

    Post moved from New programming: Hello, I wrote this basic code to learn the use of JDialogs, the problem is when I tried to add the model and title to the Dialog class constructor, I got this compiler error: TestGUI.java:24: cannot resolve symbol sy

  • Download for Lightroom 5 listed as "not applicable"

    When trying to download Lightroom 5 upgrade - after receiving confirmation email from Adobe - there is a message that reads "not applicable" where the Download button should be.