POST

It is possible to add/change BoM position for a work order

 

- if the work order is not closed

- if "changeable" - flag is not disabled

 

The POST command allows to create or update existing entries

For creation the Document Number, Line Number, Item Code and Quantity is mandatory

Variant generator:  The system ignores this if started as a service.

POST
{"DocEntry":Numeric,"LineNumber":Numeric,"ItemCode":String,"Quantity":Numerc}

 

Example:

Add a BoM Line to Work order 3012 Line Number 10 with ItemCode "RM", Quantity 3

POST WorkorderBom

{"DocEntry":3012,"LineNumber":10,"ItemCode":"RM","Quantity":3}

 

Example:

Change existing entry with

POST
{"DocEntry":3012,"LineNumber":10,"LineNumber2":10,"Quantity":3}

 

Change existing entry with PUT

PUT WorkorderBom(3012,10,10)

{"Quantity":3}

 

 

Property

Type

Description

DocEntry

Edm.Int32

Work order Number

LineNumber

Edm.Int32

Work order position

LineNumber2

Edm.Int32

Bill of Material Position

ItemCode

Edm.String(50)

Material ID
Define this at beginning of the JSON definition

It reads all item information as Item Version, Description, Drawing number and many more

If item is not available, the system stops the process with an error

 

Only changeable if no linked document (example issue) is available and if the item is not order-related

Quantity

Edm.Decimal

The quantity in input unit

The quantity in production unit and warehouse unit is calculated automatically




CreateSubAssembly

Edm.Boolean

The system creates a subassemlby only if Bill of Material is order-related

UoM

Edm.String

Input UoM

Input_factor

Edm.Decimal

Define the conversion factor between Input unit and production unit. If not defined, the system uses 1 as a Conversion factor

Sort_id

Edm.Int32

The sorting inside the BoM List

Round_type

Edm.Int32

define the rounding

Round_dec

Edm.Int32

count of decimal places or multiple per for rounding

Color

Edm.Int32

color of the BoM in desktop application

Bitmap

Edm.String

the bitmap for display in desktop application

QuantityPer

Edm.Decimal

define the quantity per

if 0, the system uses the quantity as a fix quantity

iversion

Edm.String

define item version.

Note: the system does not check if the value is correct.

The system overwrites the Item name and Drawing number from item version

 

Only changeable if there is no linked document (example issue) available and the is not order-related

DrawingNumber

Edm.String

define drawing number

Position

Edm.String

the position text, if not same as line number

RoutingPosition

Edm.Int32

define the linked routing position

Note: Not checked. Use "0" to delete the link

Close

Edm.Boolean

Close the position or reopen the Bill of Material position.

All related userevents called

Length

Edm.Decimal

Length

Height

Edm.Decimal

Height

Width

Edm.Decimal

Width

WarehouseId

Edm.String

Related warehouse. Note: The system does not check it

BinCode

Edm.String

default Bin code

Project

Edm.String

Link to project

PrjUid

Edm.Int32

Project Task

DeliveryDate

Edm.DateTime

Planned Delivery Date

MateiralCosts

Edm.Decimal

Define planned material price if you don't want to use the standard price

Din

Edm.String

DIN

MatchCode

Edm.String

Match code

Wst_id

Edm.String

Wst_id