在ABAP中,可以使用功能模块-DDIF_VIEW_PU T和DDIF_VIEW_ACTIVATE来激活视图。应该正确定义所有表参数,否则可能导致创建过程出错。
DDIF_VIEW_PUT-用于在ABAP词典中写入视图的接口。
您可以参考以下链接以了解更多详细信息-
http://www.se80.co.uk/sapfms/d/ddif/ddif_view_put.htm
调用功能'DDIF_VIEW_PUT'“ DD:在ABAP词典中编写视图的接口
导出
name = " ddname Name of the view to be written * dd25v_wa = ' ' " dd25v View header * dd09l_wa = ' ' " dd09v Technical settings of the view * TABLES * dd26v_tab = " dd26v Basis tables of the view * dd27p_tab = " dd27p View fields * dd28j_tab = " dd28j Join conditions of the view * dd28v_tab = " dd28v Selection conditions of the view EXCEPTIONS VIEW_NOT_FOUND = 1 " Header of the view could not be found NAME_INCONSISTENT = 2 " Name in Sources Inconsistent with NAME VIEW_INCONSISTENT = 3 " Inconsistent Sources PUT_FAILURE = 4 " Write Error (ROLLBACK Recommended) PUT_REFUSED = 5 " Write not Allowed . " DDIF_VIEW_PUT DDIF_VIEW_ACTIVATE: Interface for activating a view EXPORTING name = " ddname Name of view to be activated * auth_chk = 'X' " ddbool_d 'X': Perform authorization check for DB operations * prid = -1 " sy-tabix ID for Log Writer IMPORTING rc = " sy-subrc Result of Activation EXCEPTIONS NOT_FOUND = 1 "View not found PUT_FAILURE = 2 "View could not be written . " DDIF_VIEW_ACTIVATE
这两个视图都可以在T代码中使用:SE80或SE37。您可以使用这两个事务来显示SAP系统中可用的SAP功能模块文档。
您还可以在SAP ABAP中创建事务代码SE11的视图,如下所示:
您必须维护并激活视图。激活后,您可以查看标准事务代码SE16的内容,如下所示-