Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem in Division

0 Likes
532

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

4 REPLIES 4
Read only

Former Member
0 Likes
509

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?

Read only

Former Member
0 Likes
509

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

Read only

0 Likes
509

hi ravi,

i checked it by placing a breakpoint and there exists the values.

Read only

0 Likes
509

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