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

coversion issue

Former Member
0 Likes
580

Hi ,

I have a conversion issue .

i have emp_id(8) type c and emp_obj(8) type n .

when i am using the conversion :

emp_id = emp_obj its saying type incompatible .

can anyone help on this ?

Thanks ,

Abhishek .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
547

In place of this

emp_id = emp_obj

u just use

move : emp_obj to emp_id.

4 REPLIES 4
Read only

Former Member
0 Likes
548

In place of this

emp_id = emp_obj

u just use

move : emp_obj to emp_id.

Read only

Former Member
0 Likes
547

Hi,

try with below sample code.

data: emp_id(8) type c,

emp_obj(8) type n .

emp_obj = 12345.

write emp_obj to emp_id.

Reward if useful.

Thanks,

Sreeram.

Read only

Former Member
0 Likes
547

Hi,

Try using FM CONVERT_STRING_TO_INTEGER.

Thanks,

Sri

Read only

Former Member
0 Likes
547

hi

good

declare emp_obj as type C,

thanks

mrutyun^