It can be, like I said it doesn’t matter.
You can write a BAQ of the Company table (so you get 1 record) then add a bunch of empty calculated fields
Calculated_CustNum
Calcualted_ShipTo
Calcualted_etc…
Then in the UBAQ Update code you use these fields to create the sales order.
Via rest you do a PAtch -> ds{ Calculated_CustNum=34, Calculated_ShipTo=“Larry”} etc…
The UBAQ doesn’t care that those values didn’t come from the BAQ.
Though like I said it is usually easier to write the BAQ from the OrderHed table so you don’t have to create all those fields by hand.
Think of the BAQ Display Tab as your “Input data fields” You bring in the Order Hed table and “display” CustNum, ShipTo, Orderdate etc…
Then you fill those fields in with your data and do a Patch.