The GRAPH_BUTTON_MENUE Function Module 

The GRAPH_BUTTON_MENUE function module executes a call to the SAP Pushbutton Graphics program. Unlike the GRAPH_BUTTON_MATRIX function module, this module allows you to program pushbutton displays with menues. The user who clicks on a button gets a menu of options rather than a static display.

Parameters for GRAPH_BUTTON_MENUE include all those for GRAPH_BUTTON_MATRIX, as well as the MTITL, MCOLN, MROWN, and MENU parameters. (See the following table.)

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_BUTTON_MENUE

Name

Status

Initial Value

COLLN

Import

15

COL11...COL16

Import

SPACE

COL21...COL26

Import

SPACE

COL31...COL36

Import

SPACE

CTXT1...CTXT9

Import

SPACE

INBUF **

Import

SPACE

MODIF

Import

'X'

MTITL

Import

SPACE

OUTFT

Import

SPACE

PWDID **

Import

SPACE

ROWLN

Import

1

STAT **

Import

SPACE

STITL

Import

SPACE

SUPER **

Import

SPACE

TTEXT

Import

SPACE

VALD1

Import

0

VALU1

Import

100

VAL11...VAL15

Import

0

VTXT1

Import

SPACE

WINID **

Import

SPACE

WINPOS

Import

SPACE

WINSZX

Import

'50'

WINSZY

Import

'50'

B_TYP

Export

 

COLNR

Export

 

CUA_ID

Export

 

M_TYP **

Export

 

MCOLN

Export

 

MROWN

Export

 

RBUFF **

Export

 

ROWNR

Export

 

RWNID **

Export

 

ATTR

Internal Table

 

DATA

Internal Table

 

MENU

Internal Table

 

SIZE

Internal Table

 

Note: ** denotes a dialog parameter

 

An ABAP program that calls this function module must be sure to use the STAT parameter. At least one of the calls to a graphics function module (not necessarily the one to GRAPH_BUTTON_MENUE) must be made with a Wait-for-input STAT value.

After the pushbutton pad is displayed, the online user can either close the window or click on a graph item (a pushbutton, or, if present, application-defined menu items or function keys). If the user clicks on an button, the SAP Pushbutton Graphics displays the requested menu. If the user then selects a menu entry, SAP Pushbutton Graphics places a message reporting user input on the message queue. The waiting function module receives this message and returns to the ABAP program with the row and column of the menu entry. (See the descriptions of the MENU, MROWN, and MCOLN parameters for more information.)

SAP Pushbutton Graphics responds in a similar manner for application-defined menu items or function keys. (The ABAP program defines these by calling GRAPH_ACTION.) If the user clicks on one of these items, SAP Pushbutton Graphics places a message reporting this on the message queue. The waiting function module receives the message and returns to the ABAP program with information identifying the selected item in the CUA_ID parameter field.