Show TOC

 Activating and Deactivating Function CodesLocate this document in the navigation structure

Use

Within a status, functions can be active or inactive. Active functions are executable functions and inactive functions are not executable. You should deactivate a function if the mode of your application changes and the function is no longer available. For example, in view mode, a function such as delete would not be active.

If inactive functions are assigned to the application toolbar, the system does not display the function unless you have set the Display of inactive functions option for the application toolbar. For more information, see Displaying Inactive Functions .

In the standard toolbar, the system grays out inactive functions at runtime.

The system grays out inactive functions in the menu. You can activate or deactivate menu options from within the Menu Painter. You can also deactivate functions at runtime. For more information about dynamic deactivation, see Deactivating a Function at Runtime .

You can activate or deactivate functions for:

  • a single function in one status.
  • several functions in one status (for example, after adopting a menu bar, application toolbar, or function key setting).
  • single functions in more than one status in an application (for example, when you want to add new functions to a menu that is used more than once).
Procedure

To activate or deactivate a function code in the status work area of the Menu Painter, use the corresponding procedure below:

Activating/Deactivating Individual Functions

  1. Position the cursor on the corresponding function in the function list.
  2. Choose  Function Code.

    The function code and description are now displayed in a different color. The system has activated inactive functions or deactivated active functions. If the system displays the function in red in the Menu Painter, it is deactivated. If the function is colored in black, it is already active.

Activating/Deactivating Several Functions

  1. To activate several functions in the current status, choose Extras → Active functions in current status.

    The system displays a list of all functions used in the status.

  2. You can now deactivate a set of functions by deselecting the corresponding indicators.
  3. Choose  Copy.
    Note

    You can use the same procedure to activate several functions at the same time.

Activating/Deactivating Functions in Several Statuses

  1. To activate a function in several statuses, choose Extras → Active functions in multiple statuses.
  2. Enter a function code
  3. Choose Continue.

    The system generates a list showing all the statuses where the function is used.

  4. Select the statuses in which you want to make the change.
  5. Choose  Copy.