Retirement tax questions

What do you enter as payer ID number on 1099-R since it keeps asking for one?  As for Foreign Tax credit can you confirm you need to put the taxes for pension before the ones for dividends due to something with the order of multiple 1116 forms are handled in TT so the credit is calculated properly