The GRAPH_BUSG_MENU_SET Function Module 

The GRAPH_BUSG_MENU_SET function module is a special-purpose routine that lets you define a graphics toolbox. A toolbox is a row of buttons that appears in the business graphics window with specified labels. The user can click on a toolbox button, and SAP Business Graphics reports the selection back to the ABAP program.

In SAP Business Graphics, the utility function modules GRAPH_SET_CUA_STATUS or GRAPH_ACTION are not available for defining pushbuttons.

An ABAP program must call GRAPH_BUSG_MENU_SET before calling the function module for which the toolbox is to be defined. GRAPH_BUSG_MENU_SET itself does not open a graphics window; it merely records the toolbox information in static storage. The next SAP Business Graphics function module you call (that opens a window or triggers a screen update) will find this information and display toolbox buttons in the window.

You can only use GRAPH_BUSG_MENU_SET to place buttons in a single window. If you want in other BUSG windows (existing or not yet opened), you must call GRAPH_BUSG_MENU_SET again.

To call GRAPH_BUSG_MENU_SET, your program provides a single table parameter containing labels for the toolbox buttons. If the online user clicks on one of these buttons, the function module reports this to the ABAP program in the B_TYP and B_KEY parameters. (B_TYP='C' and B_KEY contains the index (in MENU_TAB) for the button pressed.)

You cannot use GRAPH_BUSG_MENU_SET to wait for input: the STAT parameter is not allowed with this function module.

The following table contains a list of all possible parameters you can use with this function module.

For a detailed description of parameters and exceptions, see the R/3 system documentation (Tools ® ABAP Workbench, Function library button, or transaction code SE37).

Parameters used with GRAPH_MATRIX

Name

Status

Initial Value

MENU_TAB

Internal Table