api_bom is a Object for Administration of the parts lists.
Current this object is not complete and don't work with unit system (factor between different untits)
You can declare the object with:
declare=<mybom>=ue_api_bom
Property |
Description |
|
---|---|---|
getbykey=<bom-id> load=<bom-id> load_or_new=<bom_id> |
|
|
new=<bom-id> |
|
|
addline |
Adds a Row |
|
setrow=<row> |
Set the actual Row |
|
update |
Updates (saves ) the actual Parts List. |
|
goto_pos=<pos_id> |
|
|
itemcodechange |
|
|
header |
bom - header function |
|
processxmlrequest |
Processes a series of commands formed as a XML request, this allows to replace and/or update a BOM for an item using a single XML document. See processxmlrequest |
|
import |
||
renumber |
|
Property |
Columnname in Table |
Description |
|
---|---|---|---|
rowcount |
Count of all Rows. ReadOnly |
||
currentrow |
Actual Row. ReadOnly |
||
pos_id |
pos_id |
|
|
pos_text |
pos_text |
visible position number |
|
sortid |
sortid |
Sort |
|
length |
abm1 |
Length |
|
width |
abm2 |
Width |
|
height |
abm3 |
Height |
|
itemcode |
art1_id |
itemcode for bom see itmecode change |
|
quantity |
menge_verbrauch menge_lager quantity_unit |
Change Quantity Attention: this api can't work with different units |
|
quantityperpiece |
menge_je |
Quantity for each building group. If you enter 0 than Fixed quantity |
|
activ |
aktiv |
Position activ? Can be set with [1,J,T,Y] |
|
pos_id |
pos_id |
Position |
|
usertext |
usertext |
User Text |
|
info |
info |
Info |
|
whscode |
whscode |
whscode |
|
shortvariant |
shortvariant |
Breakdown assemblies with this shortvariant |
|
udf1 ... udf15 |
udf1 ... udf15 |
udf1 ... udf4 |
|
userfields |
XXXX |
You can assign values to any field of table BEAS_STL you simply has to set the value, to any specific field.
bom=U_XXX=YYY |
Properties for import
Field |
Description |
|
---|---|---|
headerdefinition |
field,field,field |
Defintion of header import |
delimeter |
<tab> or , or other sign |
the Delimeter. Standard is <tab> |
createrouting |
true/false |
if true, beas create one routing-position |
replacemode |
replace/update |
if "replace" then beas delete the full bom if "update" then beas make an update |
also all Columns from the Table "BEAS_STL" and / or Customer specific Columns.
Example:
declare=bom=ue_api_bom
bom=new=A001
// in error case: cancel!
if <return> = -1 then
destroy=bom
return failure
end if
bom=header=description=my bom
bom=addline
bom=itemcode=B001
bom=quantity=4
bom=update
// don't forget: close api !!!
destroy=bom