用事务代码查看视图的函数

文章目录

      • 1 Introduction
      • 2 Code

1 Introduction

If we continue to see view with T-code. We can use the function for it .

2 Code

REPORT z_websrv_con.

CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
  EXPORTING
    action                       = 'U'   "操作类型:U修改/S显示/T传输
    view_name                    = 'ZTPMCONFIG01'  "维护视图名
*    TABLES
*   dba_sellist                  = gt_sellist
  EXCEPTIONS
    client_reference             = 1
    foreign_lock                 = 2
    invalid_action               = 3
    no_clientindependent_auth    = 4
    no_database_function         = 5
    no_editor_function           = 6
    no_show_auth                 = 7
    no_tvdir_entry               = 8
    no_upd_auth                  = 9
    only_show_allowed            = 10
    system_failure               = 11
    unknown_field_in_dba_sellist = 12
    view_not_found               = 13
    maintenance_prohibited       = 14
    OTHERS                       = 15.
IF sy-subrc <> 0.
ENDIF.

你可能感兴趣的:(ABAP,SAP)