Api to create and administration 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
Following fields are set 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 |
Stops the active entry (simple function) object=ue_interruption=stop=<resourceId>=<intnr> |
maintenance=resourcetype=resource=[<mtcnr>=[<planid>]] |
gets and sets 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 |
Sets the type: resource or tool |
resource (aplatz_id, resource_id) |
sets the resource |
reasonid (grundid) |
set the reason, linked to BEAS_STILLSTANDGRUND.GRUNDID Beas loads the reason and all other fields. |
reasoninfo (grundinfo) |
sets the reason description |
udf1 ... udf4 |
sets the udf info |
pers_id |
sets the personnel number of the employee that starts the interruption |
pers_id_end |
sets the personnel number of the employee that starts the interruption |
basetype |
linked to document |
basedocnum |
the linked docnum/docentry |
baseline |
interruption |
baseline2 |
|
maintenancenr=nr |
you set a maintenance nr and the flag "BEAS_STILLSTANDGRUND"."CreateMaintenance" in the reason-settings is active, then Beas creates a maintenance order
if nr is empty, Beas gets the correct nr and planid automatically. |
planid=<planid> |
sets the plan ID for the maintenance order (see maintenancenr) |