on 03-23-2008 11:07 AM
hi guru,
i have 2 vaues one is onspec total = 543 . 00
grand total = 1098.00
how i caculate percentage means i want (543 / 1098)*100
help me in alv ....
thanks
Hi ,
Build an internal table with the % field too .
Let us assume there are 10 records with all the other fields values except the % ,then
Loop at IT_TAB into wa_tab.
compute Wa_tab-percentage = ( wa_tab-onspec * 100 ) / wa_tab-grand_total .
modify it_tab from wa_tab transporting percentage where key1 = wa_tab-key1.
clear wa_tab.
endloop.
Now use this internal table in ALV
Reward Points if u find it useful
-Sapsurfer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.