Vendor-Customer link

HI Experts we have five company codes, some of the Vendor are same for all companies, we have vendor sales also. for vendor sales we need vendor link with code 1000 having vendor code:100027 its linked with customer 5000006. same vendor 100027 code also exist in company code 5000, for 5000 company vendor 100027 need to be linked with other customer code:5000105. like around 50 vendor need to be linked with differend customer.please suggest me how to link same vendor with different customers for different company. Note: Customer code is different and vendor code is same for the above said two company codes. Thanks Hari