on 03-06-2009 2:50 PM
Hi all,
Iam displaying the percentage value in the last column by using oops grid,
values are like 23.45 , 50
but we need to display in the format 23.45% , 50%.
wat I need to do for that.
Regards,
Anil.
A SUGGESTION CAN MAKE A DIFFERENCE.
Hi frnd,
After populating the internal table, put loop on that table and copy the type P field value to char type variable and concatenate "%" and modify the internal table.
For eg:
ur internal table has 2 filed
f1 type p decimals 2,
f2 type matnr,
add one more filed to the structure,
f3 type char10.
then populate internal table.
after that put loop on this table.
Loop at table into wa.
wa-f3 = wa-f1.
concatenate wa-f3
'%'
into wa-f3.
MODIFY table FROM wa TRANSPORTING f3.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi frnd,
Concatnate 23.45, 20 with "%" and display it in the oops grid it will work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nivetha,
At what step we can concatnate the symbol (%),
while populating it in the internal table,but it defined as type p .
while displaying we are just sending internal table into the method set_table_for_first_display.
can we do something in fieldcat .
One more point is - it is last column in the display.
Thanks,
Anil.
hi,
You need to use symbols to achieve such functionality in ALVs.
In this link a sample program for displaying symbols has been given Check it. A similar programming would help achieve your requirement.
[Symbol|https://wiki.sdn.sap.com/wiki/display/Snippets/DISPLAYINGSYMBOLSINALVWITHCLASScl_salv_table]
Thanks
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.