InventTable.purchInventLocationId Method

Gets a purchase warehouse ID.

Syntax

display InventLocationId purchInventLocationId(
   [InventLocationId _inventLocationId, 
    InventDimId _inventDimId, 
    InventSiteId _inventSiteIdParent])

Run On

Called

Parameters

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.

See Also

Reference

InventTable Table