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

Data type conversion

Former Member
0 Likes
592

Hi Experts,

I have one variable(lv_int) having data type integer. I wanted to use that variable(i.e. lv_var) for some calculation. But the other variable used in calculation having data type QUAN.

for exp.

data: lv_int type i,

lv_cal type mard-labst.

now calculation is like that

lv_cal = lv_cal + lv_int.

How I can do the proper calculation while calculating other variable.

Or How I can move the integer value to quantity field..

2 REPLIES 2
Read only

Former Member
0 Likes
360

Hi

neha wht u wrote works exactly in the way u wants auotomatic type conversion will takes place and works fine

if still u have any issues plzz contact me my mail id is mutyalasunilkumar@gmail.com

plzz reward if useful.

Read only

former_member386202
Active Contributor
0 Likes
360

Hi,

Whatever u have writen i think it will work properly otherwise declare that variable also as QUANT type.

or exp.

data: lv_int type labst,

lv_cal type mard-labst.

now calculation is like that

lv_cal = lv_cal + lv_int.

Regards,

Prashant