Hide a local menu option from the STOMGTCOD field

I needed to hide a local menu option from the STOMGTCOD field. I tried using the GMENLOC function, but without success. Is there any other way to do this? Thanks