Hi Praveen,
You can reference to Sriram suggestion for a more clear and generic program flow:
1) Define itab temp_result same type as result_packet
2) Loop at result_packet and generate your desire result to itab temp_result
3) Overwrite result_packet with temp_result ( i.e. result_packet = temp_result)
Regards
Bill