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: 

add percentage to field

Former Member
0 Kudos

hallow

i have table with field with umbers and i wont to add percentage to number

what is the best way to do that ?

i give exaple

itab now

num

100

200

300

400

itab i wont

num

100%

200%

300%

400%

Regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Within loop ,just use concatenate command

here itab-numc is the charcter field

loop at itab.

move itab-num to itab-numc.

concatenate itab-numc '%' into itab-numc.

write:/ itab-numc.

endloop.

Concatenate command will work for charcter,Numeric

Thanks

Seshu

1 REPLY 1

Former Member
0 Kudos

Within loop ,just use concatenate command

here itab-numc is the charcter field

loop at itab.

move itab-num to itab-numc.

concatenate itab-numc '%' into itab-numc.

write:/ itab-numc.

endloop.

Concatenate command will work for charcter,Numeric

Thanks

Seshu