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: 

Convert 5% into 05

Former Member
0 Kudos

hi

Am getting the output is 5.00 that i want to convert to 05. How can do that.

suppose 6.00 means 06 like that

Let me know help me

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ramesh,

Data : value1 type P decimals 2.

value1 = 5.00.

value1 = ( value1 / 100 ).

write : value1.

Thanks.

Reward If Helpful.

4 REPLIES 4

Former Member
0 Kudos

Hi ramesh,

Data : value1 type P decimals 2.

value1 = 5.00.

value1 = ( value1 / 100 ).

write : value1.

Thanks.

Reward If Helpful.

Former Member
0 Kudos

Ramesh,

Can you please tell me the field name for which you want to do this???

Thanks,

Satish

Former Member
0 Kudos

do like this

data : vtemp(2) type n.

vtemp = <yourdata>

write : / vtemp.

regards

shiba dutta

Former Member
0 Kudos

I was going to suggest using function module CONVERSION_EXIT_ALPHA_INPUT, but I prefer shiba's suggestion.

Regards,

Nick