Hiding Product status List Options

SOLVED

After reviewing the product status options under product setup (Active, Obsolete, not usable, on shortage.. etc), we have decided that certain options are not applicable to our business process. To avoid confusion to our users, we'd like to hide some of the options from users. I know it's generally a very bad idea to remove any options from a standard local menu. Is there a way to keep the local menu the way it is, but visually hide those options on the screen? I am open to 4GL code changes, and but am unsure about how to code it.

Any help is appreciated! Thank you! 

  • +1
    verified answer

    Good day, on the ITMSTA field, on screen ITM0, add two field actions (before field/after field). In the field actions you use the GMENLOC variable to disable the entries in the menu you do not want to display, example below disables entry 3 and 4:

    ########################################

    Subprog AS_ITMSTA(VALEUR)
    Variable Integer VALEUR
    Raz [V]GMENLOC
    [V]GMENLOC(3)=1
    [V]GMENLOC(4)=1
    End

    ########################################
    Subprog AP_ITMSTA(VALEUR)
    Variable Integer VALEUR
    Raz [V]GMENLOC
    End

  • 0 in reply to Regard Hulsbos

    You are a genius! That works!

    One thing to mention, to make this work, the data type need to be changed from "M" to "MM".

    Thank you so much for your help!