retrieve data for the object, which defined before
setvar=ll_docentry=3000
// Declare the object "SalesOrder"
declare d=ue_api_sbo
d.getbusinessobject=oOrders
// getbykey - for sales order we need only the document entry
d.getbykey=<ll_docentry>
// now you can change the object
// ...
// at end you update the document
d.update
// and destroy
destroy d