Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exception when calling alv_grid->set_toolbar_interactive method

Former Member
0 Likes
823

Hello,

when I call the set_toolbar_interactive methode of the alv_grid I get a short dump. The message says that a reference to a menubutton is not set. This problem also arises when I don't make any changes the the alv-grid instance before calling the method. Has anybody an Idea? Thanks.

Regards, Lars.

3 REPLIES 3
Read only

Former Member
0 Likes
541

Lars,

Have u excluded any Buttons from the Tool Bar ???

If u have excluded some buttons, i am feeling that would b the problem.

Thanks

Kam

Read only

Former Member
0 Likes
541

Place the method after call this method. please see the sample code below

**Calling the Method for ALV output

CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

IT_TOOLBAR_EXCLUDING = LT_EXCLUDE

IS_VARIANT = LS_VARI

IS_LAYOUT = GS_LAYOUT

I_SAVE = 'A'

CHANGING

IT_FIELDCATALOG = IT_FIELDCAT

IT_OUTTAB = IT_FINAL[].

  • Set editable cells to ready for input initially

CALL METHOD G_GRID->SET_READY_FOR_INPUT

EXPORTING

I_READY_FOR_INPUT = 1.

CALL METHOD G_GRID->SET_TOOLBAR_INTERACTIVE.

Read only

Former Member
0 Likes
541

Hello,

thanks very much for your help.

Regards. Lars.