Skip to Content
avatar image
Former Member

set_toolbar_interactive

Hi;

I receive dump error message "Access not possible using 'NULL' object reference." if i call method set_toolbar_interactive to set my toolbar object in ALV grid. Which parameter should i pass to this method?

Thx

Ali

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 12, 2006 at 09:46 AM

    Hi Ali,

    Refer Sample program:

    BCALV_GRID_05

    BCALV_GRID_VERIFY

    Reward points if that helps.

    Manish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 12, 2006 at 10:06 AM

    Hello Ali

    The event TOOLBAR has the importing parameter E_OBJECT.

    Your event handler method should look like this:

      handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
        IMPORTING
          e_object
          sender.

    The toolbar functions are stored in e_object->mt_toolbar.

    Your error message indicates that you probably have suppressed the toolbar of the ALV grid (layout-no_toolbar = 'X'). To omit the error simply add the following line in your event handler method:

    * Check if we have a toolbar instance
      CHECK ( e_object IS BOUND ).

    Regards

    Uwe

    Add comment
    10|10000 characters needed characters exceeded