Appendix A: Creating a Menu Structure
A menu structure is a series of menu pages that are linked together to form a hierarchy. Each menu page contains a series of options which can be a mixture of other menu pages or application transactions. This can be demonstrated in the following diagram:-
- Each menu page is defined as a Transaction with TRANSACTION TYPE set to MENU.
- The contents of each menu page is constructed by using transaction MNU_0050M to link other transactions to the selected menu.
- By linking menus to other menus it is possible to create a hierarchical structure of infinite depth.
- The sequence in which the options on a menu page is displayed can be customised.
- A transaction may be linked to any number of menus, but cannot be attached to the same menu more than once.
- Users of each Security Class may be directed to start in any transaction in the system. This may be any transaction of any type, menu or non-menu.
- It is not necessary to create a separate menu structure for each Security Class. Before each menu page is loaded its contents are compared with the Transaction Access list for that Security Class, and any transaction which is not accessible is dropped from the menu display. In this way the same menu structure can appear to be different for different users.
- It is possible to define a menu page which is not referenced on any other menu. Unless that menu is defined as the starting transaction for the user's security class the only way to reach it would be to enter the menu identity in the JUMP TO box on a menu screen. This would have no effect unless the user had actually been granted access to that menu transaction.