NAV 2015 - Copy a specific field of RecordRef

I need to see more of your code, like how do you handle update/insert of the ToTableRef variable.