Skip to Content
avatar image
-2
Former Member

User Defined Toolbar buuton text needs to be changed at runtime

Dear Gurus,

I am adding a custom button on toolbar of ALV (CL_GUI_ALV_GRID).

My requirement is based on some condition at runtime I need to change the text of this button.

I search SCN but did not get any helpful answer.

Please help.

Regards,

Ashutosh Vikram

Add comment
10|10000 characters needed characters exceeded

  • How do you add your custom button to the toolbar, via event toolbar of cl_gui_alv_grid, or other way?

  • Former Member

    Hi Sandra,

    I added the button through event 'toolbar' of CL_GUI_ALV_GRID only.

    My requirement is on trigger of function code of this button i need to change few fields of ALV as well as text of this button also accordingly.

    But after the call of REFRESH_TABLE_DISPLAY the changed text of button is getting reset.

    Please suggest.

    Regards,

    Ashutosh Vikram

  • Get RSS Feed

2 Answers

  • Apr 20, 2017 at 10:18 AM
    -1

    Did you look at sample program BCALV_GRID_05?

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 20, 2017 at 10:21 AM

    Hi!

    You need to call method SET_TOOLBAR_INTERACTIVE of CL_GUI_ALV_GRID, it will trigger again TOOLBAR event. And you can change your buttons texts in the handler method.

    Evgeny.

    Add comment
    10|10000 characters needed characters exceeded