Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3120821
  • 博文数量: 238
  • 博客积分: 864
  • 博客等级: 军士长
  • 技术积分: 2940
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-08 23:01
个人简介

WeChat: cj_william / Mail: william.chen.cn@outlook.com

文章分类

全部博文(238)

文章存档

2018年(2)

2016年(35)

2015年(47)

2014年(104)

2013年(38)

2012年(12)

分类: 其他平台

2015-12-29 20:49:28

DATA:
  is_variant  LIKE disvariant.

对应组合参数:
      i_save                            = 'A'               "A : default + based on user
      is_variant                        = is_variant



*&---------------------------------------------------------------------*
*&      Form  DISPLAY_ALV
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
FORM display_alv .
  is_variant-report = sy-repid.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      is_layout                         = is_layout
      it_fieldcat                       = it_fieldcat
      i_grid_title                      = 'Title'
      i_save                            = 'A'
      is_variant                        = is_variant
    TABLES
      t_outtab                          = it_output
    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.                    " DISPLAY_ALV


阅读(1580) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~