E: Purchase order

Create purchase order with DI-API

 

 

beasscript-logo-small

// 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> = -then
  return failure
end if
messagebox=Created document: <di_doc.getnewobjectkey>
destroy di_doc

 

help-hinweis Example Notes