Must have a owned shop nearby a shipyard.
While in the build mode function during the building of a ship design using the ship yard, using the inventory, you can drag and drop any material to the "Sell to Shop" button with an unlimited number. (Up to 50k at one time due to shop limits)
The materials "sold" this way stay in the shop and can be taken out at will outside the shipyard build mode and used immediately. Tested this on two dedicated LAN servers with same results.