PCExecuteSupplyLocation.findSupplyLocation Method [AX 2012]
Finds the company, site, and warehouse from which the item should be supplied.
Note |
|---|
|
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using. |
Microsoft Dynamics AX 2012 R3
public void findSupplyLocation(
ItemId _itemId,
InventDim _inventDim,
InventQty _qty,
TransDate _transDate,
List _legalEntityChain)
Microsoft Dynamics AX 2012 R2 (SYS)
public void findSupplyLocation(
ItemId _itemId,
InventDim _inventDim,
InventQty _qty,
TransDate _transDate,
List _legalEntityChain)
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public InventDim findSupplyLocation(
ItemId _itemId,
InventDim _inventDim,
InventQty _qty,
TransDate _transDate)
Microsoft Dynamics AX 2012 (FPK)
public InventDim findSupplyLocation(
ItemId _itemId,
InventDim _inventDim,
InventQty _qty,
TransDate _transDate)
Microsoft Dynamics AX 2012 (SYS)
public InventDim findSupplyLocation(
ItemId _itemId,
InventDim _inventDim,
InventQty _qty,
TransDate _transDate)
Run On
CalledParameters
- _itemId
- Type: ItemId Extended Data Type
The configurable item.
- _inventDim
- Type: InventDim Table
The sales dimension.
- _qty
- Type: InventQty Extended Data Type
The inventory quantity.
- _transDate
- Type: TransDate Extended Data Type
The transaction date.
- _legalEntityChain
- Type: List Class
The chain of legal entities.
This method assumes that there is never any on hand quantity to consider for the specific item/dimension.
Another assumption is that the current company is the legal entity of the source document line when this method is called.
Otherwise, the correct InventDim record will not be found, or in the case of virtual companies, the company() method on the selected InventDim record will yield an incorrect result.
This method was modified to add the legal entities that are encountered to the list that is passed as an argument.
Note