‎2007 Sep 28 2:47 PM
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.
‎2007 Sep 28 2:50 PM
Move your TYPE P value into a character varaible and concatenate it with '%'. Simple.
‎2007 Sep 28 2:52 PM
Hi,
use like this
declare a new var i_new type c.
concatinate i_per '%' into i_new..
Reward if helpful
vivekanand
‎2007 Sep 28 2:55 PM
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...
‎2007 Sep 28 3:28 PM
> 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.