效果图:

SAP中ABAP中 REUSE_ALV_GRID_DISPLAY自动排序

代码:

SAP中ABAP中 REUSE_ALV_GRID_DISPLAY自动排序

DATA: sortable TYPE slis_t_sortinfo_alv WITH HEADER LINE.  

sortable-spos = '1'."排序码  

sortable-fieldname = 'MATNR'."排序字段名字  

sortable-up = 'X'." 升序排列

*  sortable-Down = 'X'." 降序排列

  APPEND sortable .  

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'    

EXPORTING    

  i_callback_pf_status_set = 'ALV_STATUS_SET'    

  i_callback_user_command  = 'ALV_USER_COMMAND'  

    i_callback_program       = gd_repid      

is_layout                = gwa_layout    

  it_fieldcat              = git_field[]    

  it_sort                  = sortable[]    

TABLES       t_outtab                 = it_display[].

相关文章:

  • 2022-12-23
  • 2021-07-04
  • 2021-07-03
  • 2021-11-26
  • 2021-09-07
  • 2022-12-23
  • 2021-08-27
  • 2021-04-29
猜你喜欢
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案