‎2007 Feb 20 12:33 PM
Hi all,
I have the Following problem in Function Module.
<b>lv_umren is of type DEC
lv_umrez is of type DEC
lv_prqty is of type QUAN</b>
where as <b>lv_to_quantity is of TYPE p DECIMALS 3</b>
<b>lv_to_quantity = ( lv_umren / lv_umrez ) * lv_prqty.</b>
but i am unable to get the value into lv_to_quantity.
where as when the same code is executed in a report it worked fine.
regards,
santosh
‎2007 Feb 20 12:40 PM
Hi,
I think there wont be any problem, this seems to be fine.
Let us know what problem exactly u r facing and what FM?
What values u gave for calculation?
‎2007 Feb 20 12:44 PM
Hi santosh, Place a break point at this statement and see if you are getting the values in the fields in the Right Hand Side of the calculation.
Regards,
Ravi
‎2007 Feb 20 12:46 PM
hi ravi,
i checked it by placing a breakpoint and there exists the values.
‎2007 Feb 20 1:01 PM
Hi Ravi ,
If the value exists then there is no problem with the exprression.
Do you want this value to be passed back by the FM , if that is the case plase check if the name of the variables used in the interface of the FM are the same or not.
Regards
Arun