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 Dividing

0 Likes
606

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

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
586

hi,

chk the value in

 lv_umrez.

if it is zero, u will not get any value.

regards

Anver

5 REPLIES 5
Read only

anversha_s
Active Contributor
0 Likes
587

hi,

chk the value in

 lv_umrez.

if it is zero, u will not get any value.

regards

Anver

Read only

0 Likes
586

i have checked the value and it is not Zero.

if the value is Zero it Should not have even worked in a report.

values are lv_umren = 1

lv_umrez = 32

and lv_prqty = 32.000

where as the result wat i got was lv_to_quantity = 0.000

regards,

santosh.

Message was edited by:

santosh

Read only

0 Likes
586

hi,

<u>if the value is Zero it Should not have even worked in a report.</u>

please chk this in run time.

Regards

anver

Read only

0 Likes
586

lv_to_quantity = ( lv_umren ) * lv_prqty

lv_to_quantity1 = lv_to_quantity /lv_umrez mm

kishan negi

Read only

0 Likes
586

Thanx Kishan It Solved My Problem

Regards,

santosh.