Workorder

 

 

 

Post work order

You can create a work order only with definition of Work order positions. You can't define Bill of Material or Routing position, only the BoM/Routing Id

hmtoggle_plus1Example create work order

Beas Script Example:

 

instance bsl b
b.post=Workorder={"WorkorderPos":[{"ItemCode":"FP","Quantity":2}]}
if <b.ret_code> = -1 then
   messagebox=Error create work order : <b.ret_value> 
else
  messagebox=Work order <b.ret_value> created
end if

 

The Post command use ue_api_wo for creation of workorder. See all properties in ue_api_wo