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 =
Similar Messages
-
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 -
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 -
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 -
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 -
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 -
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. -
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,
Madhu1. 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 -
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.
jigarDeclare 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 -
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 -
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. -
Rounding off value on RG1 register
Dear Gurus,
When I extracting RG1 register values of duty are not round up.
In logistic genral, Basic setting, Company code setting, I marked the cheakbox for rounding off.
Then also problem is still there.
There are any note for that?
Pls give me soluation.
Thanks & RegardsDear uday
In LGBasic Settings>Maintain Company Code settings, as you said on the right side, there is a field "Exc Rndg". You would have selected but if you go inside this by clicking the blue lens, you can see two fields under the tab "Rounding Rules". Tick the box for "Rounding duty on Removal". Now retry.
thanks
G. Lakshmipathi
Maybe you are looking for
-
HP Officejet 4500 = Printing problem
Hello, I have an HP Officejet 4500. When I run a printing test, it prints out fine so it does not appear to be an ink problem or connection issue. But when I try to print out a document from my computer, the paper feeds through but does not print.
-
I can't think of any other industry that refuses to provide basic information on their product. More proof of Verizon's quality customer service without the quality. Soon Verizon may be without the customers part too. A sad reflection on Verizo
-
How do I keep iTunes from automatically transferring purchases from my iPhone?
Well, earlier in the year I had a Hard Drive failure. After having it fixed not all my files where on my Mac, including my iTunes media. So I connect my iPhone and it asks me if I want to transfer purchases? I click yes, the transfer wnet fine but so
-
Firefox opens on my homepage, but whatever item I click on, a full-page popup appears asking me to answer a survey or promoting some service or product. I have used Firefox for years, but this madness is driving me back to Internet Explorer.
-
Which Macbook Pro is better for a Music Tech major?
I am going to convert to a Macbook Pro from a PC because of the vast numbers of music programs it offers. I just want to know some opinions of which of the 13.3 inch ones would be best. I know there is a difference between processors, but I'd like to