Api to create and administratino an interruption
Object name: ue_interruption
Attention: If you call a property, you must set the function "new" or "load" before. Otherwise you generate a hard program error!
Method  | 
Description  | 
|---|---|
new  | 
create new entry 
 new set properties add 
 Follow fields are setted automatically date from, date to, from personell number, resourcetype=resource 
 You must set: reason  | 
add  | 
Add the "new" record value = 1 = ok, -1=error  | 
load=<number>  | 
without function  | 
stop  | 
Stop the active entry (simple function) object=ue_interruption=stop=<resourceId>=<intnr>  | 
maintenance=resourcetype=resource=[<mtcnr>=[<planid>]]  | 
get and set the maintenance set value il_maintenancenr and is_plan if empty, then no plan exist for this resource if you set the mtcnr and planid, beas use this if you set only the mtcnr, beas check, if a plan existing in plan you must activte the flag "for interruption"  | 
Properties
Property  | 
Description  | 
|---|---|
resourcetype  | 
Set type: resource or tool  | 
resource (aplatz_id, resource_id)  | 
set the resource   | 
reasonid (grundid)  | 
set the reason, linked to BEAS_STILLSTANDGRUND.GRUNDID beas load the reason and all other fields  | 
reasoninfo (grundinfo)  | 
set the reason description  | 
udf1 ... udf4  | 
set the udf info  | 
pers_id  | 
set the personell number, which is starting the interruption  | 
pers_id_end  | 
set the personell number, which is ending the interruption  | 
basetype  | 
linked to document  | 
basedocnum  | 
the linked docnum/docentry  | 
baseline  | 
interruption  | 
baseline2  | 
|
maintenancenr=nr  | 
you you set a maintenance nr and the flag "BEAS_STILLSTANDGRUND"."CreateMaintenance" in the reason-settings is activ, then beas create a maintenance order 
 if nr is empty, beas get the correct nr and planid automatically  | 
planid=<planid>  | 
set the plan id for the maintenance order (see maintenancenr)  |