类似BAPI将数据直接导入数据表
(1)创建数据表:SE11
把字段维护好之后——>技术设置——>实用程序——>表格维护生成器
保存——>激活
(2)代码编写
TABLES:zzt_011."zzt_011是自建表 DATA: GT_DBA_SELLIST TYPE STANDARD TABLE OF VIMSELLIST.
PERFORM FRM_VIEW_CALL USING 'zzt_011'.
FORM FRM_VIEW_CALL USING FU_VIEW TYPE DD02V-TABNAME.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
ACTION = 'U'
VIEW_NAME = FU_VIEW
TABLES
DBA_SELLIST = GT_DBA_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.
ENDFORM.
- 以上程序可以做标准模板,只改表名也可以
(3)运行
(4)测试:SE16N
也可以生成表格维护器,用Tcode:sm30维护