cancel
Showing results for 
Search instead for 
Did you mean: 

percentage calculation

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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