Where is the Current Plant Field?

We have multiple plants and parts that are specific to each plant. I need to find the field that contains the current plant that the user is located in. I need this to be able to show the user what plant they are currently in when entering order on the sales order screen or shipping in the customer shipment screen. The current plant shows in the toolbar at the bottom of the screen, but it is very small and does not show up on every screen. If I can locate that field I can write a customization or BPM that shows the user where they are or just prohibit them from choosing parts assigned to a different plant.

You can find the current plant in ttCallContextClient temp table CurrentPlant field,

On the Sales Order Header , Write a bpm to populate the current plant and save it in user defined field, you can do it on Update Pre Directive where Rowmod='a' or Post GetNewOrderHed
/*
ttOrderHed.ShortChar01 = ttCallContextClient.Currentplant
*/

Your Plant ID is saved now in the sales order

You can apply your validations on Pre Update, or GetOrderInfo,

Prevent creating the ship lines if the Order Plant is not equal the logged in plant
Or
Prevent shipping the pack if the Order Plant is not equal to the logged in plant

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.