Then you could consider lt_zgm as intermediary table with key Company and Country,
So in your final table you do READ lt_final WITH KEy country = .. company = ..
if found -> update
if not found -> insert,
and bind that lt_final to your uielement.
This way you only have one entry per Company/Country.