Update default and site specific order settings

hi all,

Please suggest me. I want to update default and specific order setting using excel import based item id I need to update purchase site sales site and inventory site id and purchase warehouse sales warehouse and inventory warehouse .using x++ code

thanks in advance