Skip to Content
0
Former Member
Oct 14, 2009 at 12:05 PM

FMS for Instock for a particular Warhouse in Item Choose From List

73 Views

Dear Experts,

I have an requirement as such that there are e.g 5 warehouses in Item Master Data as A,B,C,D,E. Now while doing any marketing document when the user press tab in the Item No in the choose from list the Instock Column shows the Total Stock in all the warehouses. Means if Item No 123 has stock in Warehouse A - 2, Warehouse B - 3, Warehouse C - 0 so in the Instock Column it would show as the total of all the Warehouse which is 5 but if I want to show only for a particular Warehouse e.g A which is 2 how can I show it in the choose from list.

I have tried to create a UDF also in the Item Master Data and applied a formatted search as :

SELECT T0.OnHand FROM [dbo].[OITW] T0 WHERE T0.WhsCode = 'A' AND T0.ItemCode = $[$5.0.0]

and the udf seems to be working only in the Item Master Window and showing the A warehouse Stock as 2.

I also brought the Udf column in the choose from List of Items but here its not showing any value for the items as desired.

Can anyone please help and let me know what can be done to sort this issue.

Awaiting for a positive response.

Regards,

Depika