how to add value to the string table

Hi All!

How to add Dyanamically values to the string table ,string table should have 3 columns f.key,product code ,Component Type Id columns,i am looping on order document contains component documentlist…this list contains Component Type id and product code,those many components are there i need add respective values in string table column of product code and component type id and also increment the f.key column vth 1 for new row…, i am working on 6.0.1 version…

pls can any one help me to acieve this