The "__END_OF_RECORD__" block of the target structure for the partner information contains just one "transfer_record." by default. You could add the code there.
Always insert such extra coding in the step "maintain field mapping...", then it will persist. Never change the generated program directly.
If you cannot see the "__END_OF_RECORD__" block, choose "extras -> hide and display fields/code" and mark all checkboxes.
Thomas