InventTable.purchInventLocationId Method
Gets a purchase warehouse ID.
Syntax
display InventLocationId purchInventLocationId(
[InventLocationId _inventLocationId,
InventDimId _inventDimId,
InventSiteId _inventSiteIdParent])
Run On
Called
Parameters
- _inventLocationId
Type: InventLocationId Extended Data Type
The current purchase warehouse ID.
- _inventDimId
Type: InventDimId Extended Data Type
The inventory dimension ID for which to retrieve a warehouse; optional.
- _inventSiteIdParent
Type: InventSiteId Extended Data Type
A purchase site ID to which the _inventLocationId parameter belongs; optional.
Return Value
Type: InventLocationId Extended Data Type
A purchase warehouse ID.
Remarks
The value of the _inventLocationId will be returned back if it is not empty and the mandatory warehouse parameter is not set on the item's purchase order settings.If the _inventDimId parameter is not specified, the default settings are used.The _inventSiteIdParent parameter applies only when the _inventLocationIdparameter is specified.If the _inventSiteIdParent and _inventLocationId parameters are passed and no site specific settings are found, the check whether the passed _inventLocationId parameter belongs to the site specified by the _inventSiteIdParent parameter will be performed, and if it does not, then an empty string will be returned back, but if it does, then the _inventLocationId parameter is returned.