Application Development 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: 

Converting Character value into numeric or Packed

Former Member
0 Kudos

Hi,

I want to j_1iexchdr-exnum(character) value into numeric or packed. Please suggest a solution. i have used FM OIJY_CONVERT_CHAR_TO_PACK but what values i have to pass in I_DCPFM and I_DIGITS.

Thanks

K Srinivas

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos

hi,

use this function module.

MOVE_CHAR_TO_NUM.

3 REPLIES 3

GauthamV
Active Contributor
0 Kudos

hi,

use this function module.

MOVE_CHAR_TO_NUM.

former_member1245113
Active Contributor
0 Kudos

Hi,

Try PACK and UNPACK key words

PACK source to destination

Regards

Ramchander Rao.K

Former Member
0 Kudos

Hi,

Take a data type which replicate the packed decimal and use the move statement .

for eg : v_pack type packed data type(all quantity fields will be packed data type).

Move XYZ('char') to v_pack.