Posts

Showing posts with the label round( val = ' ' dec = N )

Rounding Off - Function Modules (FMs) - SAP ABAP.

Image
There are a lot of options in SAP ABAP for rounding off a particular amount or value. 1.  J_1I6_ROUND_TO_NEAREST_AMT:   - Its a standard SAP function module that performs Rounding off the excise value functionality. This FM is to be used only for Indian Values with 2 decimal digits. For example it will help you to round off a value like 120.49 to 120.00 or 120.51 to 121.00. 2. HR_IN_ROUND_AMT :  It's used to compute the nearest rounded off amount with respect to an index. But again you are not allowed to have a value with ore than 2 decimal digit. Example: Round off amount 47.42 to the nearest five Paise O/P : 47.40 Round off amount 47.42 to the nearest rupee O/P : 47.00 Round Off Amount 47.42 to the nearest 5 Rupee. O/P: 45.00 Round Off Amount 47.51 to the nearest 5 Rupee. O/P: 50.00 3. Using ROUND function:  It's the most simple way of rounding off the values or amount to the required nearest decimal places...