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

abap general

Former Member
0 Likes
535

Hi ,

i am able to get the per value in the variable i_per = 752.30- .

This should be shown as 75.23% on the sap script.

how can i concatenate % to a variable type 'p' decimals 2.

Please let me know how to get this .

thanks,

Vind

Thanks,

Vind.

4 REPLIES 4
Read only

abdulazeez12
Active Contributor
0 Likes
518

Move your TYPE P value into a character varaible and concatenate it with '%'. Simple.

Read only

Former Member
0 Likes
518

Hi,

use like this

declare a new var i_new type c.

concatinate i_per '%' into i_new..

Reward if helpful

vivekanand

Read only

Former Member
0 Likes
518

create one more char type variable of same length as that of your P type field...

move the data of P type field into char field...

there you can append % sign with CONCATENATE statement...

Read only

Former Member
0 Likes
518

> i am able to get the per value in the variable i_per

> = 752.30- .

>

> This should be shown as 75.23% on the sap script.

You might need to divide by 10 at some point, or use one of the WRITE formatting options such as currency.