Dear Naveen,
The Code Which you are Posted is Working absolutely fine, For Using the Collect Statement, The Left most Column of the Internal Table should be non numeric, Depending the Non Numeric Values it Will sum up the Numeric Data.
Suppose in the Above Code, Itab Has 4 fields.
F1 - NON NUMERIC
F2 - NUMERIC,
F3 - NON NUMERIC
F4 - NUMERIC,
If we use the collect statement in the itab work area the collect will not work. So we have move in to another work area / <fs> which is in a format like.
F1 - NON NUMERIC. (Only the first field should be Non Numeric rest all the fields should be numeric)
F2 - Numeric