WT rounding to nearest $
I want to be able to add hours to a wage type as well as dollars for the recurring payments. The calculation needs to round up to the nearest dollar.
I understand That in table T511 I need to put a "+" sign against amount and number both.
For rounding it to nearest dollar, I need to put "100" as a value in rounding divisor.
Please let me know if I'm not on correct lines.
Thanks
Experts, Any inputs plz....
Similar Messages
-
Tax (VAT) Amount rounding to nearest rupee.
Dear Experts,
When ever we are using and VAT tax code its not rounding the Tax Amount to nearest rupee, when I check the parameters of condition type JIP5 the rounding rule is set to commercial rounding still its not rounding to nearest rupee and as per my understanding its rounding it to nearest 10 paise rather than to nearest rupee.
So please suggest how to make it rounding to nearest rupee.
RegardshI!
You cant rounding off for VAT amount for sales and purchases. The difference amount (digits) in sales document or purchase document will be rounded off with condition type matain in pricing procedure. There is no config setting for this rounding off for VAT calculation. If it necessary, you can contact your ABAP developer. Actually you no need to rounding off that VAT figure. You can rounding off the invoice amount to near rupee with condition type in pricing procedure. -
Hello experts,
At our client, for XXX currency payments, the amount should be rounded to the nearest 5 cents. For example, 100.02 should be rounded down to 100.00 and 100.03 should be rounded up to 100.05.
I did the config at OB90, wherein I added the following line:
COCD XXX 5
But still, when I create the invoice and run the payment program, the currency is not getting rounded to nearest 5. Does anyone have an idea on what I might be missing down here...
Please advise!
N,
All answers will be duly rewarded.From the IMG activity documentation in SPRO for OB90, it looks like this setting will be applicable only to cash discounts. It says that the amounts you enter into the system (Vendor invoice) should have multiples of 5 after the decimal point (if you specify 5 as the rounding unit) and then the cash discount % calculated will be rounded by the system to 5.
You will also need to define accounts for cash discount in OBXU.
Example (from IMG activity documentation)
For Switzerland, you decide that five centimes is to be the smallest denomination for payment transactions. For Swiss company codes and the Swiss franc, you therefore enter 5 in the "Rounding unit" column. Cash discount amounts are then rounded off to this currency unit. In the case of Swiss franc amounts entered manually, that part of the amount after the decimal point must be divisible by five. -
Formula rounding to nearest whole number
Hello,
I have created the following formula ( Metrics."# of Leads Resulting in Won Opportunity"*100 /Metrics."# of Leads" ) and displayed the results in percentage but it looks to round to the nearest whole number does anyone know why this might happen. Also i am using 2dp in the results i am hoping to get the actual result rounded to 2dp and not the nearest whole number.Hi !
I think that if you add the ROUND function, this will work... :
ROUND(Metrics."# of Leads Resulting in Won Opportunity"*100 /Metrics."# of Leads", 2)
Hope this will help, feel free to ask more !
Max -
Rounding To Nearest Decimal Place
Hey Flash Family,
I am getting the correct output i want but is also giving me
like 8 numbers after the decimal place...all i want is the numbers
rounded to the nearest cent meaning only 2 numbers to the right of
the decimal point....what do i need to add to the current code to
correct this issue.
Thanks N Advanceattach that code to the first frame of your main timeline.
then anytime you need to change the format of a number like
_root.how.ROIM.val_tcost use:
_root.return2DecPlaces(_root.how.ROIM.val_tcost); -
Hi
I have a column which holds the byte size of the data row. I would like to round this to the nearest .5
example
1.23453 = 1
1.345 = 1.5
1.6523 = 1.5
1.7893 = 2
Does anyone know how to do this easily without have to cerate an user defined function.
Cheers
GaryBluShadow wrote:
Ah, beaten by the young lady with the trombone. ;)
laughs Flattery will get you everywhere *{;-) -
Hi,
I need to round 252476480.00 to its nearest Hundred - 252476500.
Here is the code which I have
import java.math.*;
public class TestBigD {
public static void main(final String[] args) {
BigDecimal bd = new BigDecimal("252476480.00");
BigInteger bi = new BigInteger("0");
bi = bd.setScale(2, BigDecimal.ROUND_UP).toBigInteger();
System.out.println(bi);
Any Suggestions ?
Regards
MuraliHello
if you don't need BigDecimal use something like this
double d = 252476480.00d;
long toNearestHundred = Math.round(d/100)*100;
regards
Franz
reward points if useful -
Help with rounding to nearest multiples of n-1 !!
i need help writing part of a program;
start with int n, then round ***up*** to the nearest multiple of n-1; then round **this** value up to the nearest multiple of n-2. (the final step is to round up to the nearest multiple of 2)
eg
if n=10;
9 -> 18
8->24
7->28
6->30
2->34.
Please help me with this, i'm really not sure where to begin !it's a program to do with the approximation of pi;
so far i have;
public double pi (int n) {
double f; (this is the final value of the nearest
multiple of 2)
then from here i'm really not sure how to go about
it..... in other words i haven't gotten very far.Okay. I'm currious as to how this helps in the approximation of PI. Would you mind posting that?
I'll give you a few hints. The mod operator "%" tells you the distance a number is from the multiple of n immediately bellow a positive number.
The Math.IEEERemainder function tells you the distance a number is from the nearest multiple of n (whether above or below).
I'll leave it to you to figure out how to find the nearest multiple ABOVE the number, and how to use that to round the number. It's actually not all that hard.
- Adam -
Hi all programmers,
I am a FICO functional consultant. I have got an issue that I think and was told that it can be solved by an ABAPer. The issue is described below:
"I am encountering a serious production issue. On the FB60 screen when I enter the amounts in the line items and select the the respective tax code, my system calculates the tax amount as $0.06 where as when I calculate on my calculator it is coming up as 0.0565. Because of this my total balance is offsetting by 1 cent ($0.01). I want my SAP system also to round off to $0.0565 instead of $0.06. Is there any way to do this setting. I know I can change the value manually under tax tab. But, there are so many invoices like this and calculating the tax manually and then entering the right decimal value in the tax tab will not serve my purpose."
Being a functional person and with no ABAPer's support, I request you guys to please help me from scratch (inclusing which t.code to use) on solving this issue by changing or creating a programming routine.
<b><REMOVED BY MODERATOR></b>
Thank you,
SONY
Title and Message were edited by:
Alvaro Tejada GalindoHi,
Please try this to create program routine.
DATA: N1 TYPE P DECIMALS 4 VALUE '0.0565',
N2 TYPE P DECIMALS 2.
MOVE N1 TO N2.
WRITE: N2.
Regards,
Ferry Lianto -
Rounding to nearest decimals--VERY URGENT
Hi all,
I am encountering a serious production issue. On the FB60 screen when I enter the amounts in the line items and select the the respective tax code, my system calculates the tax amount as $0.06 where as when I calculate on my calculator it is coming up as 0.0565. Because of this my total balance is offsetting by 1 cent ($0.01). I want my SAP system also to round off to $0.0565 instead of $0.06. Is there any way to do this setting. I know I can change the value manually under tax tab. But, there are so many invoices like this and calculating the tax manually and then entering the right decimal value in the tax tab will not serve my purpose.
PLease help me with this as it is a very urgent issue.
I would surely award points for any kind of positive help.
Thank you,
SONYHi,
As far as my knowledge goes SAP bydefault rounds off to 2 digits. If you want any changes in that you will have to take the help of ABAPer and write the routine to change the number of decimal points.
Regards
Santosh Hegde -
Using Crystal 2008 Dev
Question on rounding,
I have a formula that displays my running total number, I need to format the 1st decimal. Basically if I have 2.3 I need that to round up to 2.5, or if I have 2.2 I want this to round down to 2.0. I have tried many different ways and can't figure out how to do this.
Any Ideas?
Thanks,
GlennGlenn,
Try using a formula similar to the following;
numbervar r:= - truncate();
if r <= .2
then
truncate()
else if r > .2 and r <= .7
then
truncate() + .5
else
truncate() + 1 -
Rounding off to nearest decimal point
i have these values
35.2
35.3
35.4
35.5
35.7
35.8
35.9
36.0
i am looking for indexes closet 35.74 in my array. (which is index 4.)
i used the "round to nearest" function and it gave me 36.
which is index 7.
what other ways to get the right index?
Solved!
Go to Solution.You will always have some difficulties with rounding to a specific number of digits after the decimal point because of the way numbers are represented in binary. When expressed in binary 0.1 is an infinitely repeating expression. Regardless of the display the internal representation of the number always uses the maximum resolution for the data type (8 bytes for DBL).
So you need to be very careful to define exactly what you want. If you have an array of values (regardless of the way they are displayed) Then you can find the closest to a Test Value by subtracting Test Value from the array and finding the minimum of the absolute values of the differences.
Note that in the image below the same values are in Array and Array 2 with the display on Array 2 set for 20 siginficant digits.
Lynn -
The Automatic Withholding Tax is set to calculate AWT Invoice at the time of Payment. The Client wants the amount to be deducted in Whole Numbers (Rounded to nearest Dollar). E.g. if the Invoice is for $710 and the Tax Rate is 3.5% the tax to be deducted should be $25 (not $24.85).
Invoice = $710
WHT = $25
Payment = $685
AWT Invoice = $25
Is there anyway possible to acheive this?
- R12.1.2
- Linux x86 64
Thanks & Regards.Hi All,
Although a functional option is discussed in this thread, here is a technical detail.
AP_CALC_WITHHOLDING_PKG calculates amount. In it, for instance for this sample following statement is run.
SELECT ap_utilities_pkg.ap_round_currency(710*3.5/100, 'EUR')
FROM dual;
It returns 25.84 because it checks select FC.minimum_accountable_unit, FC.precision
from fnd_currencies FC
where FC.currency_code = 'US';
and rounds it. So to me, if there is n functional solution found, since you cannot change precision only for AWT, it's better customize AP_CALC_WITHHOLDING_PKG to call a custom rounding for AWT.
Hope this guides.
Bilal Sarioz -
How to use NODIM func with out it's values being rounded
I created a new calculated key figure in Query Designer 3.x, and used the function NODIM() - Value with out dimensions. When I use this function, the values are rounding off to the nearest value.
For example, I have a value 0.000075 US$, when I use NODIM function the value is displayed as 0.000080. Value is getting rounded to nearest value.
I tried using absolute value it did not work.
Can any one tell me how to use NODIM function with out it's value being rounded to nearest value.
Thanks,Hi,
According to your description, you might want that "Notice" field has a default value when form is created and users can be able to change the value of that
field.
As a workaround, you can add an action rule in “Name” field via InfoPath to fill the default value in “Notice” field only when “Name” field is not blank and “Notice”
field is blank.
Settings of the rule are as below, you can modify it based on your need:
Here is a link about how to add an action rule in InfoPath form, you can use it as a reference:
https://support.office.microsoft.com/en-us/article/Add-rules-for-performing-other-actions-5322d726-b787-4e5f-8d37-ba6db68b451d?CorrelationId=8a64c12f-aa60-4d90-b1f9-a44fcc4e74b5&ui=en-US&rs=en-US&ad=US
Best regards
Patrick Liang
TechNet Community Support -
Excise Rounding--- Very Very Urgent
Hi,
In rounding OFF of Basic Excise Duty, Educational Cess & Higher S cess, the ystem is rounding to nearest rupee.
Suppose BED is 23.23, the system is rounding to 24.
i want rounding to be 24 only when the value is more than 23.5
For less than23.5 it should round off to 22 & not 24
In tax procedure Alternative Calculation type 17 is maintained against the Condition types.
Also in transaction OB90 the rounding unit is 100 against the Company code.
What should be done to give Proper rounding value depending on the value after decimal placeHi
1) How to make to cash configuration so that cash contra entry gets affected to other cash jouanl automatically.
Use the Cash Journal postings with different busi transaction which transfers the amount to differenet Cash account
2)how to view financial statment business area wise.
TCODE:F.01
3)Presently we maintain two business area how to make it manadatory field for end users.When i did it mandatory,i am not able to post entries in FBCJ.I used OBC4.Can anyone guide me where am i making mistake.
Instead of doing it through OBC4, write a validation (TCODE:GGB0 & OB28)
VVR
Maybe you are looking for
-
Unwanted color tags showing up on exported jpegs
Aperture has started assigning color tags (in my case, orange) upon export of some JPEGs. Around 10-20 percent of the files get said tags. This happens when exporting versions either original size or 50% (I haven't experimented with any other setting
-
Dynamic Userid setting for RFC to SAP
I would like to setup as Web Service through XI and then call a BAPI or RFC in my R/3. However I need to use the userid from the person calling the Web Service in my RFC call both from a security standpoint and for an Audit trail. Since could be di
-
iBook G4 10.4.11 System is getting hot and fan doesn't engage..... Suggestions? Thanks in advance
-
Location to location STO customization
Hi, I found many threads for the customization, of STO inetcompnay and intra compnay, but i want to set up STO for onluy location to location in the same plant, can you provide any stpes for this. regards, zafar Moderator message: Locked. Reason:
-
What's the best resolution for album art?
I have encountered some 500x500 album art images that don't fill the album art box, and some 200x200 album art image that do completely fill the box. So I assume that there's more to importing album art than just pixel counts. That leaves pixel densi