cancel
Showing results for 
Search instead for 
Did you mean: 

hi i need to rounded 136.35 to 137 .00 in samrt forms

parthkosarkar1
Explorer
0 Kudos

i m using round fm .but its not working for me showing me time conflict error

Accepted Solutions (1)

Accepted Solutions (1)

ChrisSolomon
Active Contributor
0 Kudos

You didn't post WHICH function you are using, nor what your inputs to it are....and I think you mean "type conflict" not "time"....which is pretty easy....it means you are trying to pass something to the function of the wrong type. You will likley need to recast a parameter(s) and then call FM.

parthkosarkar1
Explorer
0 Kudos

thank you

but at the time if debugging it showing me the perfect value

data :v_tax1 type i ,

fm round

input = v_tax

exp

output =v_tax1.

but when i remove the type i from variable it works properly .

but the round didnt work that time

it shows me value with like 137.36.

ChrisSolomon
Active Contributor
0 Kudos

The BEST answer is actually Horst Keller's below.

Answers (2)

Answers (2)

horst_keller
Product and Topic Expert
Product and Topic Expert
raghug
Active Contributor

Did you read the Function module's documentation for "ROUND"? Or try the Round numeric function instead of the function module, you can read all about it here https://help.sap.com/saphelp_nw70/helpdata/en/48/d3e4c6d49f5c97e10000000a42189d/content.htm. You don't even need to call a function module.

Edit: The link is to an older version of the same thing Horst Keller pointed out. Goes to show it has been around for a while.