10-17-2008 5:52 PM
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.
10-17-2008 5:55 PM
10-17-2008 5:55 PM
10-17-2008 5:58 PM
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.
10-17-2008 6:31 PM
Please check your
i_callback_program = pgm
is in CAPS and calling your main program
a®
10-17-2008 6:34 PM