Create purchase order with DI-API
// Work with Purchase order
declare=di_doc=ue_api_sbo
di_doc=getbusinessobject=22
di_doc=cardcode=P001
di_doc=lines=itemcode=RM
di_doc=lines=quantity=1
di_doc=add
if <di_doc.ret_code> = -1 then
return failure
end if
messagebox=Created document: <di_doc.getnewobjectkey>
destroy di_doc