Decimal places in quantity depending on currency

hi
i m doing an alv list display in which i need to display a quantity field with 3 decimal places for some currencies, but for one particular currency such as 'AED'
that field should display only 2 decimal places in the output.
regards
Zarina

Hi Zarina,
Populate decimals_out with 2 for this field while building the fieldcatalog.
  g_t_fieldcat-decimals_out = 2.
Note: don't declare the field as currency which will overwrite above setting.
i.e., don't use g_t_fieldcat-cfieldname in this case.
==============================================
  g_t_fieldcat-seltext_s =  'USD Equi'.
  g_t_fieldcat-seltext_m =  'USD Equi'.
  g_t_fieldcat-seltext_l =  'USD Equivalent'.
g_t_fieldcat-cfieldname = ' '.
  <b>g_t_fieldcat-decimals_out = 2.</b>
  g_t_fieldcat-just      =  'R'.
  modify g_t_fieldcat index zindx.
==============================================
Hope this helps you.
Regards,
Vicky
PS: Award points if helpful

Similar Messages

  • Decimal places not visble depending on unit of measure

    Hi,
       I have a fields in a table line that is a quantity field with 3 decimal places, I also have a unit of measure associated with that quantity.
    When my unit of measure is EA the quantity displays with 3 decimal places, but when the unit of masure is M it displays with NO decimal places. The display becomes very ugly when there is a mixture of units of measure.
    Anyone know why thsi is happening?
    Cheers,
    Ross

    I'd suggest that there is a conversion routine specified on the domain of the amount field - probably "CUNIT" which takes the value of the unit, looks it up in T006 and then applies relevant formatting to the field.
    This isn't really a WDA thing - it's nice that WDA does this (well perhaps not in your case but it is standard behaviour for amounts and unit fields.
    Cheers,
    Chris

  • 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

  • Query regarding decimal places for currencies

    Dear all,
    SAP standard allows 2 decimal points as default for any condition value. However, based on the entries in TCURX table we can set number of decimal places with reference to specific currencies.
    In our system there is no entry in TCURX table against USD currency. Still the system is taking 3 decimal places against the expected 2 decimal places.
    Is there somewhere hardcoded this for US or are they any additional settings impacting this? Please help
    Regards,
    Rajesh

    Hi All,
    I have been trying to set 3 decimal places. I got the reference to Note # 38881.
    This is what I did:
    1. Create a new currency US$ and set the decimal places to 3
    2. Maintained the prices using VK11.
    3. Changed the customers' sales area currency to US$
    But when I created the sales order although the system determined the prices in 3 decimals i got the following information message which keeps on showing during the entire sales order creation:
    Pricing error: Mandatory condition ZMAC is missing
    Message no. V1801
    Details are as below:
    The obligatory condition ZMAC does not exist. The document is therefore considered to be incomplete from the point of view of pricing.
    The cause can be, for example, that a condition record does not exist for condition ZMAC or that a field overflow has occurred when the condition rate was calculated.
    Procedure
    Check why the condition could not be found. Use the pricing analysis function on the pricing screen to do this. If necessary, add the missing condition manually to the document.
    I believe I am missing some configuration that should be done in pricing, not sure what. As this question has been flagged answered, hope someone would be able to help me.
    Thanks & Regards,
    Rajesh Singh

  • Increase decimal places in the PO quantity and Price

    Hi All,
    Can the decimal places in the PO( ME21N) creation be increased more than 3 decimal places in quantity and price?
    I did changes in UOM's in CUNI, I increased the decimal places upto 14 but still it does not take more than three i-e., 0.001 maximum.
    Is there any other way to handle this?
    Request inputs on this.
    Note 569326 - ME9F: Customized decimal places are not taken into account........ found this OSS but this correction instruction is not for our pack level ECC 6.0
    Best regards,
    Sridhar

    hi
    In case if you are already working in production remember that decimal places should not change. It will affect all previous data.
    For your problem best solution is make order unit as 1000. So that your problem will solve
    e.g. instead of 2.009 inr for 1 Unit use 2009 inr for 1000 unit.

  • How to set  two decimal places in currency inr

    hi,
    i want to set two decimal places for my co.code currencu inr.  In t-code oy04 there is no 2 decimal places. Please tell me how set decimal places so that amount in account balances should be in two decimal places.
    thanks
    amol

    Hello,
    If your currency code entry isn't in OY04 customizing step, your currency code has 2 decimal place automaticly. If you want to define a special decimal place without "2", you must define it in OY04.
    Regards,
    Burak

  • Error at Quantity Decimal Places Updation

    Hello Guyz
    The scenario is when i am trying to update the decimal place of Quantity then at the time of update its showing the error i.e client is already Connected to Company and I have checked that no client is connected with the Company.
    Thanks
    Ankit

    Hi,
    Please check whether there is any instance or SQL process which is in sleeping mode.  Even sleeping process can block the transaction of updating the decimal settings.
    Also, please be aware that once the decimals are increased, it is irreversible. You cannot decrease the decimal places afterwards.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Problem while changing decimal places in SAP B1 2007

    Hi Experts,
    I want change the decimal places of Quantity type fields from 2 decimal places to 4 decimal places. But while changing it in Genral settings form ,it shows the error message "Cannot update while another user is connected to the company". it is working in SAP B1 2005B but not in SAP B1 2007
    Please help me if you have any solution on this issue..
    Thanking you in advance

    Paul,
    Please see SAP Note 1247060 as is discusses the fact that this did work in 2005, but the behavior was changed in version 2007 ...
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&;note_numm=0001247060
    Eddy

  • Decimal place problems

    Dear Gurus,
    Greetings.
    The issue is 2 days back I noticed that all my values in the Orders are appearing with one decimal place where as we have maintained in 2 decimal places. Like, we maintained 1234.56 but now it is appearing as 12345.6
    When we enter a value in VK11 as 1234.56, it is getting populated a s1234.56 in the Order, but all the other values automatically populated are coming in single decimal place.
    In IMG under Currencies / Set Decimal Places for Currencies, if I change the setting to 3 decimal places (since 2 decimal places is not available), my values are showing as 123.456.
    But when we check at Table level, it is displaying in 2 decimal palces like 1234.56. That means at the Table level, values are almost always correct but at Transaction display time they are not coming in the correct way.
    How to correct this?
    Regards.
    Venkat - Hyd

    HI
    > Since very old thread and no more inputs, let me thank every one for their help and close this thread here.
    >
    This is for the benefit of the forum you have closed all your previous threads as you might have unable to post a new thread.
    you have mentioned as since it is a old thread and no more inputs closing the thread
    It is your responsible as a forum member if you have solved the issue yourself, then let the other forum members know how you have solved and what is the outcome
    regards

  • CUNI Decimal place - error message

    Dear Friends,
    Is there any way we can display an error message if a user enters more than the allowed decimal place per unit.
    In CUNI we can control the display of decimals or the rounding of the decimals. Eventhough this is done the system still allows decimal places more than what is stipulated for that unit in CUNI.
    But, the requirement is that the system should not allow the user to enter decimal places more than the allowed decimal place setings in CUNI. The system should display an error message.
    Please let me know if this can be done per unit.

    Hi Lakshmipathi,
    Please find my explanation below:
    Scenario - 1
    -CUNI - BTL (Bottel) - No.Decimal place display (T006-DECAN) = "0"
    -Material - ABC - Base UoM = BTL and Sales Unit = BTL.
    -When a user creates a sales order for the third party process the system allows decimal places in quantity field (e.g.) = 1.50 BTL
    ->The system should not allow the above process.
    Scenario - 2
    -CUNI - SH (Sheets) - No.Decimal place display (T006-DECAN) = "1"
    -Material - XYZ - Base UoM = SH and Sales Unit = SH
    -When a user creates a sales order for the third party process the system allows decimal places in quantity field (e.g.) = 1.5 SH
    -> The system should not restrict the above process.
    Is there any way this can be achieved per unit of measure? If we restrict the decimal notation per user, there would be no flexiablity in the useage of units per user.

  • Decimal places in currencies from flat files

    Hi experts,
    I am facing a problem in the way BI is managing decimal places when I extract them from tex files. I have read a lot of post and make a lot of changes and the problem persits. Here is my problem. I am uploading data from text files. These files come from 6 different source systems. All developments are already in production so changing the way they send the data it would be the most expensive solution at this point.
    For all currencies ratios I receive in the file  could contain these 3 kind of values:
    5.45
    3.2
    4
    Decimal indicator is "." but it is not always present and sometimes is follow 1 decimal pla or 2, which is ogial to expect depending of the nature of the value. I haven't been able to make it work for all the cases.
    I have set "." in RSCUSTV1 as decimal separator. I tried number format "direct entry" in the extraction Tab of data source. I have tried all possible combinations in the tab fields with data type CURR, DEC, even CHAR and Internal or External format, and any configuration I have made works only for some cases and not for the others. I don't know what else I can look at. Your help will be highly appreciated and rewarded with points.
    Regards,
    Raimundo Alvarez

    HI guys and Thanks for your help.
    I could solve my problem. There were some issues already fixed (a combination of the external property in the tab fields, the configuration for decimal separator and a problem with the currency). The main one was giving me the headache that I am trying to import a currency but I was not receiving the currency from the source because is always the same (Colombian Pesos). This one has an special configuration in table TCURX that was making the decimal places be wrong. I solved requesting the currency from the source even if it was a constant value.
    Thanks for your help,
    Rai.

  • Display amount in ALV Grid with different Decimal Places based on Currency

    HI Experts,
    Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2.
    we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
    im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
    AED---22.56
    KWD---225.65
    i need to display values like AED : 22.56

    HI Experts,
    Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2. we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
    im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
    AED---22.56
    KWD---225.65 (converting this value to 22.565 using BAPI_CURRENCY_GETDECIMALS according to currency in my Report)
    i need to display values like AED : 22.56
                                             KWD---22.565 but here field is NETWR with 2 decimal.
    Need to Display amount in ALV Grid with different Decimal Places based on Currency
    Regards,
    Dileep Kumar Reddy

  • Decimal places for JPY currency in change documents

    Hi Gurus,
    For opportunities in SAP GUI the change documents for JPY show incorrect numbers.
    The number is divided by 100 (two decimal places added).
    Checked the CDPOS table and found the values already divided (two decimal places added).
    SPRO->General Settings->Currencies->Set decimal places for currencies is set for 0 decimals for JPY.
    Is there any way I can get correct values in the change documents?
    Please advice. Any hint is useful.
    Thx,
    Martin Kuma

    Hi Naren,
    Thank you for the tip, however the TCURX table is changed via customizing and should be changed only during the system initialization.
    What I would like to do, is to assure that the system displays the values in change documents correctly. It should apply the currency conversion for the data displayed the same way it does for all the tables.
    Do you have any idea, how should I do this?
    Regards,
    Martin Kuma

  • Decimal places adjustment based on company code or currency

    Hi experts,
        my requirement is i have to adjust the decimal places in amount fields of internal table based on company code or currency given by user.
    suppose for example in my internal tables having 5 amount fields like 1.50 1.234 1.45 1.34, 1.67  for  company code is in01
    the same values for VN01 should be like this
    150 1234 145 134  167  ....
    can any body plz tell me any functional module is there to covert or abapcode?
    Thanks in advance,
    veena.

    That code is a bad idea.  Why would you hard-code that type of action for currency/amount handling?
    @poster: If the output is based on the local currency defined for the specified company code or one specified by the user, then use it.  SAP handles amount output automatically with a currency specification because the currency definition identifies where/how the decimal is output. 
    Just use WRITE as Florian indicated but  use the CURRENCY extension instead of DECIMALS.  You can do this dynamically based on the company code easily...
    A simple 3 line program shows you how this works:
    PARAMETERS: p_wrbtr type wrbtr.
    write:/ p_wrbtr CURRENCY 'USD'.
    write:/ p_wrbtr CURRENCY 'JPY'.
    Edited by: Brad Bohn on May 12, 2011 1:07 PM

  • Decimal Places in Purchasing (multiple currencies)

    Is it possible to change the price field to accept more than 2 decimal places in purchasing documents (contracts/PO) in a live production system for multiple currencies ?

    Hi Raja,
    No, if the said currencies already have transactions since, in SAP  the values are stored without decimals. This the warning of SAP
    <b></b>In a productive system, you must not delete the currencies in use or change the decimal places. This could make amounts in documents already posted incorrect or invalid.<b></b>.
    But you can denote in another way viz.
    1 Kg of material X = 0.012 / Kg
    can be denoted as 100 kgs = 1.2
    Prasanna

Maybe you are looking for

  • Burning music from Itunes on to blank disc

    I am attempting to burn a folder in Itunes to a blank disc but it will not allow me as the music in Itunes needs to be in MP3 format to burn. How do I resolve this issue? Thanks

  • Different Ouptput in SQL & Oracle Report

    Hi, I have two tables. (1) TST_P (2) CUSTOMER_LIMIT I use one select query for this SELECT distinct ORG_ID,CUSTOMER_ID,CUSTOMER_NAME,CUSTOMER_NUMBER, (select distinct NVL(sum(amount_due_original),0) from TST_P WHERE CUSTOMER_ID=P.CUSTOMER_ID AND P_FL

  • IPad not showing all images on websites

    I've been having problems with the iPad not showing all the images on websites. It tends to do it on forums with threads that are picture heavy. It will show the first few, then the rest will Be replaced with a blue icon with a question mark in it. I

  • Prevent confirmation for non-released PO

    I am trying to generate a message to the user when they try to process a confirmation in SRM for a PO that is not yet released.  All approvals are done in SRM.  However, after the PO is created on the backend, workflow could restart if a change is ma

  • Using logger to capture printStackTrace

    Is there a way of using the logger API to capture the printStackTrace ouput?