Ganesh, the problem is i don't know how to give reference to the material. see you are right that i need to somehow tell the system to do this.
Company Code Plant Material Price Units Formula (Price * Units)
COMP1 KOR 101 100 100 1,000
COMP1 KOR 102 200 100 2,000
PRICE * UNITS for each material then add them up and give me the totals by company code.
right now
it is like this
PRICE + Price = something
Unit * Unit = Some thing
Something*Something = total.
It i simply taking what ever is in the column and then multiplying them together. which is wrong.