2007 Apr 05 3:43 PM
dear all,
I need to caliculate a Percentage amount and represent it as a XXX%. can I use any standard data element to acomplish this.
regards,
Vj
dear all,
I need to caliculate a Percentage amount and represent it as a XXX%. can I use any standard data element to acomplish this.
regards,
Vj
2007 Apr 05 3:48 PM
There are no data elements for that.
Yu should probably concatenate the Percentage value with a % and diaply using a char type variable.
data: v_int type i,
v_char(10).
v_char = v_int.
concatenate v_char '%' into v_char.
write:/ v_char.
Regards,
Ravi
2007 Apr 05 3:49 PM
I guess there is nothing like that , you have to calculate the percentage and display as XXX%
2007 Apr 05 3:50 PM
Hi,
You can do this way.
data per type i value '153'.
write (4) per using edit mask '___%'.
aRs
2007 Apr 05 4:29 PM
There are some existing data elements you could use to declare your data variable, and then use an edit mask as aRs suggested to add the '%' in the output.
For example P15_PERNE. This is type DEC with 6 characters, 3 for decimals, and output length of 7.
You could also look at AM_PPERC, AGKPZ.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |