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

Converting Character value into numeric or Packed

Former Member
0 Likes
590

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
Read only

GauthamV
Active Contributor
0 Likes
534

hi,

use this function module.

MOVE_CHAR_TO_NUM.

3 REPLIES 3
Read only

GauthamV
Active Contributor
0 Likes
535

hi,

use this function module.

MOVE_CHAR_TO_NUM.

Read only

Former Member
0 Likes
534

Hi,

Try PACK and UNPACK key words

PACK source to destination

Regards

Ramchander Rao.K

Read only

Former Member
0 Likes
534

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.