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

Conversion Routines

sreeramkumar_madisetty
Active Contributor
0 Likes
608

Hi

Can anybody help me in Conversion Routines those Convert from Character to Numeric.

Regards,

Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
585

Hi Sreeram,

Check these function modules.

CHAR_HEX_CONVERSION

CHAR_INT_CONVERSION

CHAR_NUMC_CONVERSION

CHAR_PACK_CONVERSION

Thanks,

Vinay

4 REPLIES 4
Read only

Former Member
0 Likes
585

Hi

Which type of conversion?

U can use MOVE statament.

Max

Read only

Former Member
0 Likes
586

Hi Sreeram,

Check these function modules.

CHAR_HEX_CONVERSION

CHAR_INT_CONVERSION

CHAR_NUMC_CONVERSION

CHAR_PACK_CONVERSION

Thanks,

Vinay

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
585

No routine required...........



report zrich_0001.

data: c(5) type c value 25.
data: n(5) type n.
data: p(8) type p decimals 2.
data: i type i.


n = c.
p = c.
i = c.

write:/ n.
write:/ p.
Write:/ i.

Unless you have special characters in the value, like thousand seperator, if so you can get rid of it using the TRANSLATE keyword. Example.

Translate c using ', '.
condense c no-gaps.

Regards,

Rich Heilman

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
585

Hi

It's Answered.