This is code sample for updating the header of a SOP document. We use the SOPTransactionType and taSopHdrIvcInsert eConnect objects.
Edit 3/29/2021
Please see the comments below for some user feedback. We appreciate the feedback!