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: 

Buttons in menu SALV

Former Member
0 Kudos

Guys , I went to se80 called salv function and copied the standard gui to my program , then went to se41 and active , however when i execute program i dont see the buttons in the menu , What did I miss? it is driving me crazy.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Check once your menu and your program everything is active.

Former Member
0 Kudos

Did you set the PF status in your program?

Rob

0 Kudos

Yes Everything is active. the menu , the program

*----------------------------------------------------------------------*
FORM cria_listagem_alv.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = pgm
      it_fieldcat              = fieldcat
      it_sort                  = sortcat
      i_callback_pf_status_set = 'SET_PF_STATUS'
      i_callback_user_command  = 'USERCOMMAND'
      is_layout                = layout
    TABLES
      t_outtab                 = ti_saida
    EXCEPTIONS
      program_error            = 1
      OTHERS                   = 2.

  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " cria_listagem_alv
*&---------------------------------------------------------------------*
*&      Form  set_pf_status
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->EXTAB      text
*----------------------------------------------------------------------*
FORM set_pf_status USING extab TYPE slis_t_extab.
  SET PF-STATUS 'STANDARD' EXCLUDING extab.
ENDFORM.                    "SET_PF_STATUS
*&---------------------------------------------------------------------*
*&      Form  usercommand
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->UCOMM      text
*      -->SELFIELD   text
*----------------------------------------------------------------------*
FORM usercommand USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
   IF ucomm = '&PRO'.
   ENDIF.
ENDFORM.

former_member194669
Active Contributor
0 Kudos

Please check your


i_callback_program       = pgm

is in CAPS and calling your main program

Former Member
0 Kudos

pgm was not filled