E: Goods Receipt with UF

Note: Use Beas service layer for creating Goods Receipt if possible.

 

The following example creates a receipt and writes a text in user defined field "u_test2"

 

 

beasscript-logo-small

//Create goods receipt with UserFields
declare di_doc=ue_api_sbo
di_doc.getbusinessobject=59
di_doc.lines=itemcode=RM
di_doc.lines=quantity=1
di_doc.lines=userfield=U_test2=N
di_doc.add
if <di_doc.ret_code> = -then
  return failure
end if
messagebox=info$document created: <di_get.getnewobjectkey>
destroy=di_doc

 

help-hinweis Example Notes