简体   繁体   中英

Delete row button in alv grid in sap

i am using function "REUSE_ALV_GRID_DISPLAY" in order to display a grid. My problem is that not all the buttons in alv toolbar are displayed. For example, i can not see the "delete row" button. This is my call:

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'    
  EXPORTING
     IT_FIELDCAT                       = fieldcatalog
  TABLES
      t_outtab                          = lt_files_records_final    
  EXCEPTIONS
     PROGRAM_ERROR                     = 1
     OTHERS                            = 2
            .

Can you please help?

IF you need the full editor functionality (including cell editors), you will have to move away from the (obsolete and unsupported) function module to the class CL_GUI_ALV_GRID . See the documentation here .

If you only need a delete button, it might be easier to add a custom button. Check the program SALV_DEMO_TABLE_FUNCTIONS for an example (and start using the ALV OM instead of the old function modules - much easier to code with).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM