Application Development 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: 

Status GUI items ME51N

Former Member
0 Kudos

How can I add a button in the status of the items table control in ME51N?

In program SAPLMEGUI I do not see any STATUS GUI that corresponds.

Thanks.

1 REPLY 1

Former Member
0 Kudos

I have solved it.

In the include LMEGUICJM, in the METHOD toolbar_init.

Putting the following thing:

L_quick = ' My button '.

CALL METHOD cl_gui_toolbar=>fill_buttons_data_table

EXPORTING

fcode = '&MYCODE'

icon = icon_select_detail

  • DISABLED =

butn_type = cntb_btype_button

  • TEXT =

quickinfo = l_quick

  • CHECKED =

CHANGING

data_table = lt_my_buttons

EXCEPTIONS

cntb_btype_error = 1

OTHERS = 2.

The code of this button in the include LMEGUICJL, METHOD if_command_mm~execute.