I am trying to automate "Mark Shipped" functionality of purchase order using scheduled script. I have tried to set the status of purchase order using the following code
nlapiSubmitField('purchaseorder',purchaseorderid,'status','F',false);
I also tried with
nlapiSubmitField('purchaseorder',purchaseorderid,'orderstatus','F',false);
But it didn't work.