Hello,
its depending on Partner function determination , when define the partner determination procedure , this procedure can assign the partner function here you check the not modifiable , so you do not change the that partner function , this is the settings , check at sale order also SP partner function it not modifiable mode only,
go to VOPAN, here check delivery partner settings
see thread/3211131