Creating the same invent in to companies

I want to create in X++ the same line in InventTable for two companies. The X++ programm works in one company.

Hi You can use "changecompany(“name of company”). However, read one article on Technet on that before because there are some issues with the right scope. Just go to Technet and search for “changecompany”)