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

TYPE CONVERSION

Former Member
0 Likes
661

Hi All,

I have a requirement in which i have to convert the quantity value to a character value.

please let me know it's urgent.

Thanks

Krishan

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
635

Hi,

U can simply move the data using WRITE/MOVE then condense it.

WRITE w_quantity_field TO w_char_field.

CONDENSE w_char_field.

WRITE: /1 w_quantity_filed,

/1 w_char_field.

Thanks,

Vinod.

4 REPLIES 4
Read only

Former Member
0 Likes
635

try it by using ' write ....to ...'

Read only

Former Member
0 Likes
635

No need of any conversion for this.

just assign the quantity field to character field of same length.

data lv_char type string.

data lv_quan type numc.

write lv_quan to lv_char.

This will work

Kothand

Read only

vinod_vemuru2
Active Contributor
0 Likes
636

Hi,

U can simply move the data using WRITE/MOVE then condense it.

WRITE w_quantity_field TO w_char_field.

CONDENSE w_char_field.

WRITE: /1 w_quantity_filed,

/1 w_char_field.

Thanks,

Vinod.

Read only

Former Member
0 Likes
635

Hi

check the link given below :

With Regards

Nikunj shah