PurchaseOrder

Read and Create Purchase order

 

GET

PurchaOrderLines

   GET

 

Current creation of Purchase document over BSL not possible. But you can create the logic self over BSL Customizing and ue_api_document

 

jbscript-logo-small

let vdoc=ue_api_sbo;          
vdoc.getbusinessobject("opor");     
vdoc.docduedate= Date();     
vdoc.cardcode="S001";     
vdoc.lines.itemcode="Ext_Service";     
vdoc.lines.quantity=1;     
vdoc.lines.userfields.U_beas_belnrid=wo;     
vdoc.lines.userfields.U_beas_belposid=10;     
vdoc.lines.userfields.U_beas_posid=20;     
vdoc.lines.price=10;          
if (vdoc.add()==-1) {
   alert("Can't create document");      
   return -1;    
    }​​​​
 
let purchaseordernum=vdoc.get.getnewobjectkey();