ue_api_wotools

 

This object supports the management of manufacturing orders

and give you a lot on additional tools

Only in Version > be.as  2009 SP3

 

 

Declare:

declare=mywo=ue_api_wotools

mywo=methods=parameter

destroy=mywo

 

getsubworkorders=<belnr_id>

Get all Sub-Workorders where link with this workorder

return in "value": "(belnr_id1,belnr_id2...)"

 

object=ue_api_wotools=getsubworkorders=5

messagebox=<value>

setallbarcodes

Set all  Barcode in routing (beas_ftapl.nummer) and bom (beas_ftstl.nummer) and position (beas_ftpos.barcode) where are not set (NULL)

 

object=ue_api_wotools=setallbarcodes

setwipaccounts

set the accounts for this workorderposition, if the accounts are empty.

returns e_wip and e_wipvar or if error, then e_error

 

select itemcode,whscode from beas_ftpos where belnr_id=<e_belnr_id> and belpos_id=<e_belpos_id>

setvar=e_itemcode=<wert1>

setvar=e_whscode=<wert2>

object=ue_api_wotools=setwipaccounts=belnr_id=belpos_id=itemcode=whscode=wipacct=wipvaracct

if <e_error> <>  then

 messagebox=error=<e_error>

 return failre

end if

// e_wip = wip-account

// e_wipvar = wip-variance-account

createresfromlink=x

Create a Reservation from current beas_ftpos-Customer-Order-Link (auftragint, auftragpos, basetype), if the link in beas_reservation_line not exist.

currentwindow: Check the Link for current window. Needed str_parm.belnr_id,str_parm.belpos_id, dw_1.docentry

x (number): Check this Workorder

<filter>: Check all Workorders with this filter (only table beas_ftpos), example: belnr_id between 1 and 50