How to achieve round off value in SAP?
here I have given my Query ..I need to calculate rounding off value for this query..
SELECT (CAST($[OBTN.U_Length] AS FLOAT)/CAST($[OBTN.U_Width] as FLOAT) *($[BTNT.Quantity]))
Hi Karthick,
I am not sure wheter I understood you, but are you searching for
SELECT FLOOR((CAST($[OBTN.U_Length] AS FLOAT)/CAST($[OBTN.U_Width] as FLOAT) *($[BTNT.Quantity])))
regards,
Maik
Similar Messages
-
Unplanned delivery cost picking rounding off value in sap miro
Dear Experts,
I have configured unplanned delivery costs to be posted to separate GL account. I have set the default tax code also. In OBYC i have set the frieght and transportation GL account against UPF transaction key. Now even though the user is not entering any value in unplanned delivery cost field, system is automatically taking the rounding off values(manually entered by user to match the vendor invoice) from MIRO line item and is posting to the freight account.
Query -2 - while reversing the already posted MIRO document in MR8M the rounding of value which has been taken automatically in unplanned delivery cost is showing in the error message as :
"Balance is not equal to zero: 0.35- inr"
please refer below screen shot for the error message
Please suggest.
Regards
Chinmayaplease read my blog it explains how to close a question, just replying "closed" does not do really this job
How to close a discussion and why -
How to get round off values in key figures
Hi,
My report has key figure which is showing as 6.64033 and I want it to be 6.64.
If it is showing 6.64677 I would like to be shown as 6.65.
Please suggest.
Thanks...Why don't you try this. In the Query Designer, set your key figure properties as follow:
Display Tab > Number of Decimal Places > 0.00 -
How to use Round off function in TAX Formula
Dear All,
I have to do Round off in the Tax Formula. Hence I was suggested by the SAP Forum Team to use Round off function in the Tax Formulae.
But sir I don't know how to use Round off function in the Tax Formulae.
For Eg. BaseAmt = Total
TaxAmt = BaseAmt * Rate
Now within this Eg. How will i use the Round off function and where i will use it.
Please guide me with example.
Regards
Hitesh ParsawalaHi Hitesh,
you can do like this
Cess_ST_TaxAmt=Round(Cess_ST_BaseAmt*Cess_ST_Rate,0)
where you can introduce rounding function by choosing from dropdown available in Operation and by click on Insert.
It will post following in formulla window
Round (Number, Decimals as Number)
where in parameter you have to give 1.Number-which is to be round and 2.Decimals as Number-as per your requirement like by 2 decimal or 0 decimal
If required give me call,
BR
Samir Gandhi -
Rounding off value problem in sales order
Hi All,
This is related to a rounding off value problem in sales order.
The problem is described by an example which is as follows -
Selling Price of Material A = Rs. 176.76
Excise charged = Rs. 21.80
Total Price = Rs.176.76 + Rs.21.80 = Rs. 198.56
On this total Trade Discount (ZDTD) having access sequence,is calculated at the rate of 4% = Rs. 7.94
But the condition base value after the discount is showing Rs.198.60 instead of Rs.198.56
I want the system to reflect the value as Rs.198.56 intact and it should not round up to the nearest value i.e. Rs. 198.60
Why is this happening? Is it possible to reflect the exact value? If yes what is needed to be done?
The commercial round off is activated for the DIFF Condition Type.
Looking forward to some valuable suggestions.
Thanks & Regards
Priyanka MitraHi Ramesh,
Thanks for your suggestion but the problem has been solved by me.
Regards
Priyanka Mitra -
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,
GorakshHi 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 -
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,
VamshiUse 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,
susantaHi..
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 -
Hi guys
Even after giving indicator "17" in (Rounding as per T001R) in the pricing procedure, we are not getting the round off value while sales processing.. Any suggestions.
Regards
SidhuHi Raghu
As per your suggestion i checked the rounding rule and its given commercial there. Its been given the same for our other clients also. The thing is that we need to get the round off value in the total.
regards
Sidhu -
Rounding Off Value is not copying from Sales Order to Invoice
Hi Experts,
In Pricing Procedure i maintained DIFF- Rounding Off Condition type with the following Combinations.
Print:X
Requirement:13
Cal Type: 16
Bas Type: 4
When i create sales order the system is calculating Rounding Off after saving the sales order.The requirement is that it should shows the rounding off value before saving the sales order.Secondly when i make invoice the rounding off value is not copying from the saved sales order.After i save the invoice in VF02 the rounding off value is coming .
Regards
SubhasishCond type DIFF has cond catgory L Generally new when copying. So the value from sales order will not be copied, it will be redetermined in invoice.
Also rounding off cond is to round the total value which can change in invoice based on the invoice qty. -
How to avoid rounding off large Double values?
For converting from String to Double, consider a piece of code as below:
String str = "999999999999999.99999";
Double d = Double.valueOf( str );In this case, d will contain the value 1E15 and not 999999999999999.99999.
Is there any way by which we can avoid this rounding off?
TIA,
Ninad.> String str = "999999999999999.99999";Note that you have a total of 20 decimal digits here.
A double only has 53 bits to represent the mantissa
so it can only accurately represent about 16 decimal digits. -
Hi
I want to pick up decimals only in packed value.
Example
data: I_TOTAL LIKE J_1ITAXVAR-J_1ITAXAM1.
round off bellow value to my conditions.
if value is 1994.50 and bellow .50. i want to change 1994.
if value is 1994.51 and above .51 then only change to 1995
which function module works like as above my conditions.
or send to the detail code
Please send me as early as possible.
Regards,
Harihi Hari,
Use ROUND FM to achieve this ...
data : orig_amt type p decimals 10 value '0.29846',
round_amt type p decimals 4.
call function 'ROUND'
exporting
decimals = 4
input = orig_amt
sign = '-'
importing
output = round_amt
exceptions
input_invalid = 1
overflow = 2
type_invalid = 3
others = 4.
write : round_am.
Regards,
Santosh -
Hi,
I need to Round off the value in MIRO. Example, we have Rs.1000/- as the price and tax as Rs.12.36/-, system should round off this 12.36 to Rs.13 and display the tax amount as Rs.13.
Is this possible in Standards?
If so , where do we need to make the settings?
Please help.
Thanks.Hi,
Please refer the below links..
MIRO-Rounding off
Rounding in MIRO
Rounding off MIRO for decimal
Thanks. -
Hi Abapers,
i am using 'ZTOOL' transaction code which is plant maintainence. my requirement is i am handling bdc table control which fields are give below when i am putting the given values
work centre : 140-296
short text : ' sdn is having good experts'.
work : 6,5
duratioon : 3,7
but output is coming in the below way
work centre : 140-296
short text : ' sdn is having good experts'.
work : 7,0
duratioon : 4,0
it is off rounding the values. i want the accurate value. what you want me to do? i tryed a lot. please guide me.
the out put should be
work centre : 140-296
short text : ' sdn is having good experts'.
work : 6,5
duratioon : 3,7HI,
Please use 'STRING' data type instead of the current one.
It will sort out your issue.
Regards,
Anversha -
Depreciation Amount for Asset taking in Round-Off Value and not in Decimals
Gurus,
When I run the Depreciation, the System is calculating amount in Round-off and not in decimals
Whereas I have knowledge that It shud calculate in decimals or to the exact amount whatever it comes, but the system is automatically rounding -off the value to the nearest ruppee
So please inform about what has gone wrong in my case.!!
Regards,
Nimish Agarwal
New DelhiDear:
Go to OAYO and do the do the necessary configuration there. Field Arithmetic Rounding
Using this indicator you specify that rounding should take place according to the rule: tenths up to and including 4 are rounded downward to the next whole number, starting with 5 they are rounded upward to the next whole number.
This refers to the decimal places of a currency.
Example: 4.49 is rounded to 4
4.50 is rounded to 5
Check the other
Regards
Maybe you are looking for
-
we are unable to domain smippl.com it gives error This domain name can't be used because it contains a protected word or inappropriate language. Please contact support if you feel this is not the case. It is a real estate company : SARLA MADAN INFRAS
-
Why isn't the legend of korra book 3 available on iTunes
Does anyone know why the legend of korra book 3 is not available in the U.S. iTunes store????
-
IPhoto gives import error "file not valid" when import more than one photo
Trying to import lots of photos. Every time I try to import more than a few, I get an error that "The following files could not be imported (they may be an unrecognized file type of the files may not contain valid data)." When I go back to importing
-
Need help deleting trace files
Hi, I am new to Oracle RAC and I need to get rid of trace files since they are growing too big. I have one that is 22Gigs and I only have 60 Gigs available right now on that drive. I want to know if I can delete the file manually using the rm command
-
Nokia Suite - restoring backup from .NBU but Text ...
I am having a problem with restoring of my Backup to my mobile C6-00 using nokia suite. I have taken backup (.NBU) file from my old C6-00 and restoring it on my new C6-00 every time I am getting error that all other things are restored like settings,