PdcAllocation.LMV ID

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

LMV_ID as Integer

Description

Sets or returns the stock line id(LMV_ID) of an allocation.

Notes

This property can set or return the stock line id(LMV_ID) of an allocation. The set is mostly used for when creating a new allocation. If no LMV_ID was set, and the Save function is called, it will check if the material has location management. If it doesn’t have location management it will check if there is a LMV_ID for this materialNo in the database and use that LMV_ID for this allocation.

If the material has location management then it can’t determine which LMV_ID has to be used and therefore the Save function will return an error.

Code example

dim alloc
Set alloc = PDC.Logistics.Allocations.New
alloc.LMV_ID = 223

Availability

Available since May 2017 (from version 5.4)