Regarding decimal rouding off

Hi all,
            I have a requirement as given below . Can anyone suggest me what should be done to get this solution.
"Quantity is a decimal number u2013 The integration team is expecting integer , so lets round it off to the nearest integer if there is a decimal value. For eg. if the value is 100.5, we should round it to 101. No decimal places should be sent in the file."
Frnds plzz suggest me solutions.
regards,
karan

Hi,
other wise try this code.
suppose  var1 = 1234.56
write:/ var1   out put is  1,234.560
write:/ var1(.1)  output is  1,234.6
write:/ var1(.4)  output is 1,234.5600
write:/ var1(.0)  output is  1,235
here last one is your answer.
regards.
sriram

Similar Messages

  • TDS Amount Roud Off

    how to make the round off of tds amount
    regards
    Sudhir Poddar

    HI,
    1. SPRO/FA/****/WT/EWT/CALCULATION/DEFINE WHTAX TYPE/DEFINE WHTAX TYPE
       FOR INVOICE POSTING.
       ROUNDING RULES
       OPTIONS : WHTAX COMM.ROUNDING
                 ROUND WHTAX AMOUNT UP
                 ROUND WHTAX AMOUNT DOWN
    2. DEFINE ROUNDING RULES FOR WHTAX TYPES.
       UNIT YOU HAVE TO MAINTAIN 100.
    Reg
    Madhu M

  • Regarding decimal points in QATR

    Hi ,
    I am having an issue regarding the decimal points descrepancy in QATR (Quality Assurance test report).
    The settings for decimal points for some of the inspection characteristics are not matching with the QATR report. Please help me in sorting out this issue.
    Regards
    vivek

    Hi ,
    I was just trying to change the decimal point values in the inspection characteristics for this material inspection plan & tried to run the report again to see the certificate.The is no change in the report.
    So please tell that whether is there is any connection here??
    Regards,
    Vivek

  • 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

  • Query Regarding Applying One-Off Patches

    Hi,
    We have plans of doing the following:
    Upgrade the databases to 10.2.0.5.0
    Apply the 10.2.0.5 PSU 3
    Apply a list of one-off patches identified for our environment (which are not included in 10.2.0.5.3)
    Query:
    If the one-off patches identified to be applied in our environment are available only top of 10.2.0.5.0 and not for 10.2.0.5.3, then which of the following mentioned solutions should be proceed with considering :
    Upgrade the database to 10.2.0.5.0, apply the one-off patches available on top of 10.2.0.5.0 and then apply the 10.2.0.5.0 PSU3
    or
    Upgrade the database to 10.2.0.5.0, apply the 10.2.0.5.0 PSU3, request for one-off patches on top of 10.2.0.5.3 and appy the same
    Thanks and Regards,
    Santosh

    Pl follow the steps is MOS Doc 865255.1 (Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch)
    HTH
    Srini

  • Regarding decimal point

    Hi All,
    I have one problem.
    In VA01 sales order creation shows price values with 2 decimal points like 2342.90,
    But in case of Invoice (VF01) it shows 3 decimal points like 2342.900
    I want show both are same.Is there any settings for that...If any knows pls tel me.
    Thanks in Advance.
    Thanks & Regards,
    Subramanyam.S

    HI Subramanyam,
    You Can maintain the number of decimal places for the required currency.
    This can be done in spro--> general settings --> currencies --> set decimal places for currencies. {T.Code: OY04}
    Then the condition value comes automatically in the specified number of decimals.
    Reward if it helps
    regards
    Srini

  • Regarding  decimal entry in table control

    Hi,
       i am using one screen which is containing a table control. In that one field is called value(Local Currency value)
      Before that i  have created one table called zuvrate.
    In zuvrate , i have declared 'value'(one field of my table) as dmbtr data type(currency with 13 , 2 ) and
    reference field is t001-waers.
       My problem is, if i enter decimal value in that particular column in my table control, 'please enter numeric value ' error is coming.
      for example if i give 23.34 then error is coming
       elseif i give 23 then ok no error.
      How to enter decimal value in my table control?

    Hi,
    The reference field you have specified i.e. waers has no decimal places. Give the reference field which has the same number of decimal places as you want.
    Hope it helps..
    Lokesh
    pls. reward appropriate points

  • Regarding Decimal

    Please suggest me :
    For any float or double value I want only two digits after decimal point and that should be rounded accordingly. I dont want to do this by developing new program. Please suggest me whether there is there any built-in function for doing this.
    E.G. 345.6778 ---> 345.7
    9.893 -----> 9.9
    and so on

    http://forums.java.sun.com/thread.jsp?forum=31&thread=42573

  • Regarding Decimal notation

    Hi,
    I'm facing an issue in displaying an Quantity field in the report output. I declared a field of type MENGE_D (quantity field) and in debugging i can see the value say 125.000, but when i executed the report, the field value is changing from 125.000 to 125,000 !!!!!
    Even i cross-checked by maintaining User profile -> Own data, but of no use,  Please provide me your valuable inputs
    TIA
    Suren

    Hi,
    you can use below code to covert it properly.
            CALL FUNCTION 'SUSR_USER_DEFAULTS_GET'
              EXPORTING
                user_name           = sy-uname
              IMPORTING
                user_defaults       = ls_user02
              EXCEPTIONS
                user_name_not_exist = 1
                OTHERS              = 2.
            IF sy-subrc <> 0.
              EXIT.
            ENDIF.
            CASE ls_user02-dcpfm.
              WHEN 'X'.
                REPLACE ',' IN Z_MENGE WITH ''.
              WHEN 'Y'.
                REPLACE ',' IN Z_MENGE WITH '.'.
              WHEN OTHERS.
                REPLACE '.' IN Z_MENGE WITH ''.
                REPLACE ',' IN Z_MENGE WITH '.'.
            ENDCASE.
          ENDIF.
    I hope this will resolve your issue.
    Thanks,
    Chandra

  • Regarding visibility on/off of inputText bos inside data table

    Hi
    i taken one check box in the first column of data table in JSF,and based on click event of check box i want to enable or disable inputText box/outputText box which is there in other columns in the dat table.
    please help me how to enable or diable the inputText box on the click event of check box.
    Thanks
    Ramakant

    Hello Again,
    I am in the process of writing a custom validator that generates the client side validation for me so I don't have to do anything more the use a tag and give it an error message and it will validate.
    So far things fave been going well except when I use a data table and have the components that are being validated inside the data table.
    In the validator tag I have
      protected FacesContext context = null;
      protected Application application = null; 
      protected UIComponentTag parentTag = null;
      protected UIComponent parentComponent = null;
      public int doStartTag() throws JspException {
        this.context = FacesContext.getCurrentInstance();
        this.application = this.context.getApplication();
        this.parentTag = UIComponentTag.getParentUIComponentTag(pageContext);
        this.parentComponent = parentTag.getComponentInstance();
        return super.doStartTag();
      public int doEndTag() throws JspException {
        String id = parentComponent.getClientId(context);
        /***** Output script that uses the id goes here *****/
    Accourding to the UIComponent JavaDoc getClientId() method should return a consistant value but it is not. When called from within the jsf components renderkit it provides
    [i]Form:Datatable:Row:Component
    But from in my validator it returns
    Form:Datatable:Component
    Which is obviously incorrect. I'm not sure why this is occurring or if it is fixable.
    Thanks again for any help that can be provided.

  • Unable to use decimal data in the datasources in the IOP RELEASE 11.1.2.1

    Hi,
    I have created a datasource of type Database and given an sql query which is fetching some of the decimal data.
    But when I am checking preview for the sql query, it is showing integer data (rouding off the decimal value) even though the field type is coming as double.
    Please let me know how to resolve this issue.
    Thanks,
    Neha

    Are you mapping your datasource to a view? -- If so, this may be due to a known issue caused by jdbc. Way to work around it is to use a table instead of a view, with number columns defined with explicit precision, as in NUMBER(10,2).

  • Bex not showing the Exact decimal values

    Hi,
    I have a situation here where I created a formula variable Average. I have declared that formula with the help of one replacement path variable.
    Now My question is when i execute the query, I am seeing the values for that formula varibale but these are getting rouding off.
    let say if I the result of the formula varibale is 3.2 it is rounding off to 4.
                                           formula variable is 2.8 it is rounding to 3.
    I have checked the query properties by putting the decimal places, but still it is showing the same. I have also gone through the forums and I understood that we need to maintain values in T006 or goto SPRO and maintain Unit of measure there you have to give No of decimals. But here my question is what UOM i need to consider because its just a formula which contains numbers 3, 4, 5 and it is calculating on those. those values are nothing but the feedback survey results.
    can anyone let me know how should i procced with that. whcih UOM should i consider and also what is the ISO code to be maintained? or is there any another solution for my problem where i can see the decimal places.
    Thank you !!!

    Hi,
    select the number under unit/currency while creating the formula variable.
    then check the query in RSRT.

  • Decimal Value for Percentage distribution on Account Assignement in SES

    Dear Experts,
    While creating service entry, the qty should be distributed on percentage basis for Account assignment with decimal value.
    For Example
    Say Service 100% done but value is 10,000..but there is distribution to different cost center say K, L , M, N
    K - 21.25%  - value 2125
    L - 32.70%  - value 3270
    M - 28.93% - value 2893
    N - 17.22%  - value 1722
    So i need to customize decimal values for Percentage distribution for Service entry sheet creation. Please advice me, if you know the solution for this
    Regards
    Saravanan

    Hi
    In Transaction CUNI, as lot is a created Unit of measure wuth no dimensions select No Dimensions & continue
    Now change the decimal places for the Unit from3 to 5.
    In the service entry sheet you will be able to maintain the lot upto 5 decimals....
    But there is again aproblem in that as the standard field Quantity MENGE  has only 3 decimal places allowed, so agian you will encounter a problem.
    So the best method to follow is advise the user to go for a 3 decimal reounding off the work.
    Hope you understand the Problems that arise when decimal places are changed we need to take a lot of things into considertaion before going forward
    Thanks & Regards
    Kishore

  • Fluke 8508a cut decimal digits

    Hello everyone,
    i have problem with data read on fluke 8508a. I have installed fluke drivers, visa 3.2 driver on labview 2009. When reading data from fluke multimeter it cuts decimal digits off. For example if i have 10.225V on multimeter it shows me just 10V on labview VI.
    Thanks in advance,
    Nedeljko!

    Hi ahem,
    change your computer to use the point as decimal separator and everything should be fine!
    Most instrument drivers expect "English" regional settings using the point as decimal separator while not checking for it.
    All measurement devices use the point. When your computer doesn't use the point, but a comma instead you have to change either your computer settings or the instrument driver…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Nokia 6300 switch off itself

    i have a nokia 6300 that usualy appears "check info service" then switch off itself. why "check info service" is appears? are some software missing? your feedback is my best solution.
    Regards,
    Matias

    try turning off cell broadcast in message settings and topic detection
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

Maybe you are looking for