Posted: Wed Feb 27, 2013 11:21 am Post subject: button in toolbar
Хочу добавить кнопку в алв, реализованный методом REUSE_ALV_GRID_DISPLAY, подскажите как мне это сделать? мой метод убирает существующие уже в алв кнопки, а они мне нужны тоже:
DATA: BEGIN OF i_mard OCCURS 0,
matnr TYPE mard-matnr,
werks TYPE mard-werks,
END OF i_mard.
TYPE-POOLS:slis.
DATA:i_fieldcat TYPE slis_t_fieldcat_alv,
w_fieldcat LIKE LINE OF i_fieldcat.
SELECT matnr werks FROM mard INTO CORRESPONDING FIELDS OF TABLE i_mard UP TO 100 ROWS.
DATA:l_program TYPE sy-repid VALUE sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = l_program
it_fieldcat = i_fieldcat
* I_CALLBACK_PF_STATUS_SET = 'MYSTATUS'
TABLES
t_outtab = i_mard.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*FORM SET_MYSTATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
* SET PF-STATUS 'MYSTATUS'.
*ENDFORM.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.