Regarding rounding off for amount

dear all,
can anybody tell me how to round off the amount which is printing in decimals..
i want to round off the final amount in script..print form.
thx in adv.
jigar

Declare a field like this...
DATA : amount type p decimals 2.
Pass your field to <b>amount</b> automatic rounding takes places... display your field.
In script if you want to restrict the number of decimals do it like this...
&EKPO-MENGE(.2)& --> display 2 decimals ex, 14532.34
Regards,
SaiRam

Similar Messages

  • Urgent Regarding round off values in script

    Hi Gurus,
    I want to display round off values in total amount . Order conformation
    i wrote one suroutine but it is not working , it is going for dump.
    Eg:- total amount = 10004.49 it should display in 10004.
             total amount                 = 10004.51  it should display in 10005.
    Plz help.
    REPORT  ZVALUES.
    tables:komk.
    form round TABLEs INTAB  Structure ITCSY
                                         OUTTAB structure ITCSY.
    data: w_fkwrt type fkwrt,
             w_fkwr type fkwrt.
    read table intab with key name = 'KOMK-FKWRT'.
    if sy-subrc = 0.
    w_fkwrt = intab-value.
    w_fkwr = ceil( w_fkwrt ).
    outtab-value = w_fkwr.
    condense outtab-value.
    modify outtab transporting value.
    endif.
    endform.
    in layout i call this subroutine like this.
    /:DEFINE &KOMK-FKWRT1& := &KOMK-FKWRT&.
    /:PERFORM ROUND IN PROGRAM ZVALUES.
    /:USING &KOMK-FKWRT&.
    /:CHANGING &KOMK-FKWRT1&.
    /:ENDPERFORM.
    SU Final amount,,,,,,,,,,,,,,,,&KOMK-FKWRT(I13)&
    Thanks & Regards,
    Vamshi

    Use this FM
    CALL FUNCTION 'HR_IN_ROUND_AMT'
      EXPORTING
        amount        = p_amt
        rndoff        = '100'.
       RNDLMT        = 'N'
    IMPORTING
       RETAMT        =
       DLTAMT        =

  • Regarding rounding off value in pricing procedure

    hi fi professionals,
    i have an issue regarding pricing procedure, pls help me out, its urgent
    i have a condition type, zrou(rounding off value)
    the fanda is- when i am creating po- my net value is suppose- 19.90.
    so my client requirement is- 0.10
    so i have given 0.10, then total value is- 20.00
    but this value is not pickin up in migo- accounting document
    it is picking 19.90 only.
    so what is the configuraion needed in omsy for picking up the total value in accounting doc.
    regards,
    susanta

    Hi..
    You would need to maintain a account key in the pricing procudure which would calculate the balance to make the total a rounded value.
    In FI perspective, you need to assign a GL account for that..
    Cheers
    Raghu

  • Regarding round off the value in adf table

    HI All,
    My Requirement:
    i have to round off the value after decimal in adf column before saving to data base.
    Excample : 1234.67 = 1235
    34567.89=34568
    34567.34= 34567
    i am using jdeveloper 11.1.1.3.0
    Please can you give code using converter or any other strategy.
    Thanks & Regards,
    Madhu

    1. First of all you asked for rounding off, taking the integer part is not rounding off.
    2. As per the documentation
    integerOnly      boolean      Yes      Flag specifying whether only the integer part of the value will be formatted and parsed. Default value is false.if i can understand correctly pertains to formatting only.
    3. You can create a custom faces converter and add it to faces config.xml http://docs.oracle.com/javaee/1.4/tutorial/doc/JSFDevelop4.html . So that you do not have to write it in code.
    4. If only integer is to be allowed why don't you change the data type to long or int instead of number

  • User Exit for Amount Rounding in FI Postings

    Hi,
    Can any body tell the name of User Exit / BADI for FI postings, which helps me to round off the amounts while i post the transactions.
    Eg. If a enter an amount of 10,000.65 then while saving the document, it should roundoff the amount to 10,001.
    Pls advise.
    Thanks & Regards,
    Pavan.
    +919822336750.

    HI,
    see user exit for MEB4,
    Exit Name           Description
    LWBON001            Extend comm. structure MCKONA (busn. vols., rebate income)
    LWBON003            Change settlement data before creation of settlement doc.
    LWBON004            Simulation of LIS update for detailed statement
    LWBON005            Index entries for settlement documents, arrangement settlem.

  • Net Tax amount round off

    Hi all,
    I have a small problem,
    In sales Invoice I am having 10 items with different price and quantities,
    In PLD i have used formula concept to show tax wise break up,
    as our invoice tax amount is cumulative of its sub taxes,
    i need to round off the total of sub taxes in the document
    For Example:
    In Invoice;
    Assessable Value: 3697.20 (qty X Price)
    Total of BED 8%: 295.77
    Total of Cess 2% of BED : 5.91
    Total of HE Cess 1% of  BED: 2.95
    Total of VAT/CST 4% of (BEDCessHECess): 160.08
    So I want to round off these amounts:
    BED: 296
    Cess:6
    HECess:3
    VAT: 160
    1. I tried using rounding option in tax formula;
        but it doesnt give correct result as it works on row level
    2. I also tried making decimal places zero in general settings
        But it round off my assessable value also
    also round to one is also active in currency settings
    can anybody please help me to get the desired results
    Regards,
    Atul Joshi
    Edited by: Atul Joshi on Dec 9, 2008 1:38 PM

    Hi,
    If you use round off in tax formula it will bring you considerable differrence.
    You use the document level rounding in Administrattion->Setupup-Financials->Currency.
    I think this would be helpful for you.
    Rgds,
    Sundar

  • Rounding off : Amount at GL Account Wise

    HI Gurus,
    My Client has a requirement, they want to round off the amount g/l account wise,
    like for some g/l account they don't want to round off and vice versa,
    so is there any setting available at g/l account level.
    Thanks & Regards
    Abdul Qadir

    Hi Abdul Qadir,
    Welcome you post on the forum.
    The rounding function will affect all documents. There is no configuration available for your request. You may try SDK to reach your goal.
    Thanks,
    Gordon

  • Condition amount less than 1 rupee rounding off to "0"

    Dear Experts,
    We are creating sales order using a BAPI, when the price condition type (PR00) gets the amount less than 1 Rupee (say 0.20) the system is rounding off the amount to ZERO and hence the net value of the item is becoming zero.
    Please help us with any solution available for this issue.
    Regards,
    Sandeep Kulkarni.

    Hi,
    Check the condition type PR00. Normally if there is a rounding rule set or a formula assigned for rounding then this issue occurs. You can check in Tcode v/06 for PR00 if 'Round Rule' is commerical rounding then it should work fine. If it is A (Round up) or B (Round Down), you will happen to hit such issue.
    You can also check the if an Alternative calculation type has been assigned to PR00 in the pricing procedure. This also may have an effect...
    Hope this helps...
    Regards,
    Mukund S

  • Need rounding off value for partial Goods receipt

    Hi,
    My requirement is that the PO value,PO tax value ,GR value and Invoice value(IR) should get rounded off.
    When I am using the PO value which is rounded off in PO, but at the time of posting partial goods receipt the value for the GR/IR clearing or the stock value is not getting rounded off for these G/ls.
    What should I do for this to get the rounded off values in GR.
    Regards,
    Goraksh

    Hi Goraksh,
    The problem is that the pricing (incl. the rule 17) is not normally called at the time of GR. As Jürgen wrote, the system just uses the "net value" field of the PO.
    I have however a "wild" idea. If the price in the PO comes from the info record or from a contract (and not changed manually there), then you can set the "pricing date category" = 5 there, meaning "GR date". This causes the pricing to be called again at the time of GR and your formula 17 will fire.
    The side effect of course is that the price that you had in the PO, printed and sent to the vendor will not be binding: if you change the PIR price before the GR, the GR will be posted to the new PIR price, despite the fact that the PO printout showed something else. So the question is if the price printed on the PO is indeed binding in your business case - in many business cases it is the current vendor price that matters for the billing by the vendor, not the one that you prined on the PO. For such business cases you should have had pricing date category 5 anyway...
    BR
    Raf

  • Rounding off during APP (f110) of decimal point

    Hi
    Can any one help me? When I run the T.Code f110 for automatic payment programme is generate cheque propaly, here my client want to rounding off for the decimal point in cheque amount as if coin adjastment.

    Hello Arup,
    I guess OB90 is helpful to you so pls check the same.
    Thanks & Regards,
    Lakshmi S

  • Reg-Round off in sales documents

    Dear all
    I need a solution for given below point.
    For Purchase and local sales there should option for rounded off on total amount,but incase of export sales roundoff should not effect.
    Please kindly suggest.
    Regards
    M Auditya
    Functional Consultant

    hi,
    There is no system functionality in rounding off for local / export sales.
    Check document for rounding off in below link
    https://websmp201.sap-ag.de/~sapidb/011000358700000243172007E/CW12_Learn_about_Rounding.pdf
    Jeyakanthan

  • Regarding Rounding

    Dear Experts
    Regarding Rounding off i have a question.
    Some time the customer pays Rs 1 to say Rs 10 Less by oversite . Here in
    Rajamane they put this in rounding off in Incoming payment and close this.
    The main purpose is to show that the Party Account shows correct balance.
    They do not want to go and do a credit memo which is going to be a laborious
    processes for them .
    I tried Going to Administrator>System Ini-> Document setting and did
    Round off by document
    Secondly Administrator>Setup-> Financials-->currency --->made rounding
    of to one.
    Is there any way out that u can suggest
    thanks
    sukumar / sathish

    Sukumar/Satish,
    Actually, the purpose of rounding is to resolve rounding issue where the number of decimals used is 2 or more and to prevent fractional amounts from keeping documents open and un-reconcilled.
    The discrepency between 1 and 10 is certainly big and you trying to set rounding for reconcilling this does not appear as a good approach as per me.
    The better way would be to give discounts in the Incoming Payment window where the discount amount get accrued to the Sales Discount Account specified in the GL determination and can be tracked if required.
    Let us suppose the document is for Rs 10 and the Customer Pays Re.1 you can mention discount amount as Rs.9 and enter the incoming payment and also close the document.
    Hope this helps
    Suda

  • Rounding off salary components in Payresult table

    Hi Experts,
    I have a query around rounding off amounts in PC_PAYRESULT cluster. The basic pay should be rounded off two places from decimal ( This is done by v_512w_d, changing PC -10 (A)) but for other wage types the rounding of rule is no value post decimal and rounding off the amount after decimal to next number.
    Really appreciate any help on the same. Thank you so much for all your support.
    Regards,
    J
    Edited by: jyotsgsap on Aug 1, 2011 1:29 PM

    Sorry , in case of wrong communication from my side, when i said about the process class 10  Spec A , it means this is the standrad one which was been provided by the SAP so for the wage types which are in IT0008 if they come into proration (i means PRCL 10 as 1 and if all them has to be rounded off in such cases instead of useing the PCRs we can go with the standrad one so i have said to go in the said manner in the previous thread) in standrad to round off the wage types we have to go with Custom PCRs if you are asking for Wage types in IT008 , 0014 , 0015 Etc
    the pcr shd be inserted below XVAL if any or else u can use Spec A for wage types IT0008 , for wage types in IT0014 and 0015 you can use INAP

  • Small Differences Rounding Off in case of Payments in Foreign Currency

    Hi all
    I have a scenario wherein I want to round off the Foreign Exchange amount to the nearest Rupee. I.e when I am making a payment in Foreign currency, the amount in local currency appears upto 2 decimal places. However, I  want the same to be rounded off to the nearest rupee.
    E.g I am making a payment of USD 111 @42.1277 which comes to 4676.17 in the local currency INR. Now I want the system to round off the amount to 4676 at the time of the payment transaction itself. Is this possible through the RDF key in Forex Automatic Postings? If yes, then I already have an account assigned there but the system does not round off the amount.
    Help would be highly appreciated.
    Cheers
    Hrishi

    i'm not aware of that functionality.
    But you can always add some logic into your fast formulas, so that the data is alreay rounded for cash payments, before you launch Prepayments.

  • Excise Rounding off

    Hi,
    Anybody help me regarding following issue where to assign rounding off for excise duty (BED,Ecess,HEcess)
    Regards,
    vivek

    Hi,
    In your calculation schema maintain AltCTyp as 17 against these conditions.This will round off to nearest rupee.
    Dhruba

Maybe you are looking for

  • How to import data from corel draw file

    Dear Fellows i have a problem which is very interesting. i have a data like (rollno, name, course, duration and a photo of the candidate) in corel file. the problem is how to import selected data from the corel file into the oracle or any other datab

  • How to display the err msg in statusbar

    Hi friends,     How to display the error msg (red color) in statusbar and other msg is green color in same report of the status bar . Plz help any one. Thanks in advance.

  • Viewing history in cover flow

    After resetting Safari, I wanted to use preview images for cover flow and checked the dialog box accordingly. I get preview images in top site, but my cover flow images are blank generic documents. Shouldn't cover flow show a website icon or page pre

  • Connection currently busy

    Hi, when i try to connect i have the error "Connection currently busy. Try again?" my operating system: Windows XP SP3 dbms: oracle database 10g Express Edition Oracle SQL Developer 1.5.4 versione 1.5.4 Build MAIN-5940 Copyright © 2005-2008 Oracle.

  • Calling on iPad2 users

    Hello everyone, I few hours from now some of us will have their hands on the new iPad2.I am sure a lot of these will be iPad1 users who elected to upgrade. I would like to suggest a new thread where "graduated" iPad2 users will share with us their in