api_wobom is a Object for Administration of Work order bill of material
NOTE:
Please use BeasServiceLayer WorkorderBom for manage / change Bill of Material positions
This object is only available for compatibility.
You can declare the object with:
declare=<wobomobjectname>=ue_api_wobom
example
declare=wobom=ue_api_wobom
wobom.getbykey=1244=10
wobom.addline
wobom.itemcode=A001
wobom.quantity=2
wobom.udf1=hello world
wobom.save
if you want to insert a new line, work with sorting by "POS_TEXT"
Example: you have bom position 10 and 20 and want insert position 15
declare=wobom=ue_api_wobom
wobom.getbykey=1244=10
wobom.addline
wobom.itemcode=A001
wobom.quantity=2
// define the position (text information)
wobom.pos_text=15
// sort (beas use numberic sort, means: convert information to numberic
wobom.sortbypostext
// save
wobom.save
Methoode |
Description |
|
---|---|---|
getbykey=<belnr_id>=<belpos_id>
|
|
|
new=<belnr_id>=<belpos_id> |
Create a new bom. |
|
addline |
Add a new bill of material row |
|
setrow=<row> |
Set the actual Row |
|
update save |
|
|
goto_pos=<pos_id> |
|
|
goto_postext=<pos_text> |
|
|
sortbypostext |
|
|
sortbyposid |
|
You can use the property name OR the table column name
all other not documented properties: use direct the table name
attention: beas don't check the value. If you insert wrong values, you have this in the database!
Property |
Columnname in Table BEAS_FTSTL |
read |
write |
Description |
|
---|---|---|---|---|---|
rowcount |
x |
|
Count of all Rows. ReadOnly |
||
currentrow |
x |
|
Actual Row. ReadOnly |
||
pos_id |
pos_id |
x |
x |
Internal position number Update: Don't change the pos_id. Please use the POS_TEXT Attention: The pos_id don't define the sorting! |
|
pos_text |
pos_text |
x |
x |
visible position number (alpha numeric) |
|
sortid |
sortid |
|
x |
|
|
itemcode |
art1_id |
|
x |
|
|
version |
u_beas_ver |
|
x |
|
|
variant |
shortvariant |
|
x |
short variant (A-Z) |
|
configuration |
vri |
|
x |
configuration number |
|
fixquantity |
menge_verbrauch_ve |
|
x |
fix quantity. scrap quantity. beas calculate this quantity only 1 time and not per assembly |
|
quantity |
menge_verbrauch |
|
x |
quantity per assembly in use unit |
|
per |
menge_je |
|
x |
define "quantity per", example per 1000 assemblies |
|
calcutatedscrap |
ausschuss |
|
x |
calculated scrap quantity. See documentation. You can change, define this manually. |
|
roundingtype |
round_type |
|
x |
Define rounding type 0-4 |
|
roundingdec |
round_dec |
|
x |
Rounding - count of decimal places |
|
length, width, height |
abm1,abm2,abm3 |
|
x |
||
info |
info |
|
x |
info line in bom |
|
additionaltext |
usertext |
|
x |
additional user text |
|
warehouse |
whscode |
|
x |
warehouse code |
|
matchcode |
match |
|
x |
matchcode from this item beas insert automatically the additional costs information (fields VK_ZUSCHLAG, GK_ZUSCHLAG) |
|
materialgroup |
gruppe |
|
x |
material group of this item |
|
rawmaterial |
wst_id |
|
x |
rawmaterial of this item |
|
density |
dichte |
|
x |
density of this field |
|
udf1 ... udf15 |
|
x |
all udf fields |