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

CONVERT NUMERIC TO NON NUMERIC

Former Member
0 Likes
531

Hi experts,

How can i convert from numeric field into non numeric field i.e) if i declare a type c and b type i.

i want to convert b to type c. how can i do ...help me please....

4 REPLIES 4
Read only

Former Member
0 Likes
491

just assign:

a = b.

Regards,

ravi

Read only

Former Member
0 Likes
491

You can simply do a = b, or use the WRITE b TO a LEFT-JUSTIFIED.

Read only

former_member156446
Active Contributor
0 Likes
491

Hi Manjula

use this FM : CONVERT_STRING_TO_INTEGER

else tyr using Field symbols:


field-symbols: <fs> type any.
a type c,
b type i.

assign a to <fs>
move <fs> to b.

Read only

Former Member
0 Likes
491

hi

good

U can check like this.

codeIf string ca '0123456789'.

write: 'Numeric'.

else.

write: 'Non Numeric'.

endif.[/code]

U can use the FM NUMERIC_CHECK also.-

thanks

mrutyun^