Hi,
You can upload the data through LSMW or BDC.
In case you want same number to be assigned then used external number range.
You can also enter the legacy vendor code in Search item or maintain it in Prev.acct no. which is Reference data available in Accounting info.
Regards,
Tejas