api_routing is a Object for Administration of Work schedule.
Only be used in beas, not beasgui!
You can declare the object with:
declare=<mybom>=ue_api_routing
getbykey=<item> load=<item>  | 
Load a Work Schedule  | 
load_or_new  | 
Load a work Schedule or create new  | 
new=<item>  | 
Create a Work Schedule, or loads if already exists  | 
addline  | 
Add a new Row  | 
setrow=<row>  | 
Set the actual Row  | 
update  | 
Update / Save the actual Work Schedule.  | 
resource=add  | 
Add a Resource.  | 
header  | 
all header function for routing header  | 
goto_pos=<pos_id>  | 
seek pos in the bom-list and set current position to this position if position not found, api_bom will return -1 in variable value 
 Example routing.getbykey=<routing-id> routing.goto_pos=10 if <value> n= 1 then routing.description=modified description end if 
  | 
All Methods will return a Variable "value" ("1=ok / 0=error" ).
Property  | 
Columnname in Table  | 
Description  | 
rowcount  | 
Count of all Rows. ReadOnly  | 
|
currentrow  | 
Actual Row. ReadOnly  | 
|
pos_id  | 
pos_id  | 
position id  | 
operation  | 
ag_id  | 
link to beas_ag  | 
workcenter  | 
aplatz_id  | 
link to beas_aplatz  | 
description  | 
bez  | 
|
description2  | 
anweisung  | 
second description (not editable in program)  | 
activ  | 
aktivformel  | 
activ formular  | 
zeitaufndkz  | 
||
zeitaufndat  | 
||
setupforcalculator  | 
traplatz  | 
|
setupforsched  | 
tr2aplatz  | 
|
maschinetime  | 
thaplatz  | 
|
labortime  | 
tnaplatz  | 
|
maschinelabortime  | 
teaplatz  | 
|
use  | 
nutzen  | 
|
number  | 
anzahl  | 
|
idletime  | 
tl  | 
|
wagegroup  | 
lohngruppe  | 
|
shareableresource  | 
mehrmasch_bed  | 
|
timesper  | 
menge_je  | 
|
timesin  | 
menge_zeitje  | 
1 (minute) or 60 (hours)  | 
clockmandantory  | 
bde  | 
y/n  | 
maschinegrouping  | 
mehrmaschinenbelegung  | 
y/n  | 
picture1 ... 3  | 
bild1 ...3  | 
3 Pictures  | 
inspectionplanqc  | 
qs_id  | 
|
cardcode  | 
cardcode  | 
|
udf1 ... 4  | 
udf1 ... 4  | 
4 userfields  | 
resource=routingpos  | 
pos_id  | 
when empty, then currend posid from routingpos  | 
resource=resourcepos  | 
wkzpos_id  | 
|
resource=resourceid  | 
wkz_id  | 
|
resource=quantity  | 
menge  | 
|
resource=description  | 
zusatzinfo  | 
|
resource=resourcetyp  | 
resourcentyp  | 
|
resource=setupforesched  | 
tr  | 
|
resource=maschinetime  | 
te  | 
|
resource=timesper  | 
menge_je  | 
|
resource=timesin  | 
menge_zeitje  | 
1 (minute) or 60 (hours)  | 
resource=rowcount  | 
Count of Rows. ReadOnly  | 
|
resource=currentrow  | 
Current Row. ReadOnly  | 
also all Columns from the Table "BEAS_APL" and / or Customer specific Columns.
Example (for insertion of routing):
declare=routing=ue_api_routing
routing=new=A001
routing=header=description=my first routing
routing=addline
routing=description=work
routing=workcenter=A001
routing=maschinetime=50
routing=update
destroy=routing
Example (for insertion of routing with corresponding resources):
declare=routing=ue_api_routing
routing=new=A001
routing=header=description=my first routing
routing=addline
routing=description=work
routing=workcenter=A001
routing=maschinetime=50
routing=resource=addline
routing=resource=resourcepos=10
routing=resource=resourceid=1
routing=resource=quantity=2
routing=resource=description=Res_01
routing=resource=resourcetyp=W
routing=resource=addline
routing=resource=resourcepos=20
routing=resource=resourceid=1
routing=resource=quantity=1
routing=resource=description=Res_02
routing=resource=resourcetyp=W
routing=update
destroy=routing