1. SE11/SM54维护表的维护视图,注意视图类型,否则做成类似配置视图,则传输至生产系统
内容需要传输,而不能直接在生产系统中维护。
2.集中维护多视图,
I.创建:SE54,选择Edit Viewcluster,类似Tcode:KEI1。
视图集是各视图存在前后继关系时才使用的,操作复杂,如果视图不存在关联关系,不
应该考虑这种用法。
II. SE93调用SM30.,为每个视图建立一Tcode。Tcode太过分散,可SE43建立区域菜单将这些Tcode集中起来。
III. 制作一程序/Tcode调用函数VIEWCLUSTER_MAINTENANCE_CALL集中维护,
参考程序见下表,越简单越好,建议如此做法!
*清洗表统一维护 REPORT ZXOQXBWH. SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE TITLE1. SELECTION-SCREEN COMMENT /1(30) COMM1 . SELECTION-SCREEN ULINE. PARAMETERS: p1 RADIOBUTTON GROUP grp1 , p2 RADIOBUTTON GROUP grp1, p3 RADIOBUTTON GROUP grp1, p4 RADIOBUTTON GROUP grp1, p5 RADIOBUTTON GROUP grp1, p6 RADIOBUTTON GROUP grp1, p7 RADIOBUTTON GROUP grp1, p8 RADIOBUTTON GROUP grp1, p9 RADIOBUTTON GROUP grp1. SELECTION-SCREEN END OF BLOCK bk1. ***初始化参数. INITIALIZATION. TITLE1 = ‘ 【清洗表维护清单】 ‘. COMM1 = ‘请选择需要维护的清洗表:’. “ AT SELECTION-SCREEN OUTPUT. *判断用户权限 PERFORM VIEW_MAIN. *点击调用CAll视图维护函数。 FORM VIEW_MAIN. IF P1 = ‘X’ . *SET PARAMETER ID ‘DVI’ FIELD ‘V_001_B’. *CALL TRANSACTION ‘OBVU’ AND SKIP FIRST SCREEN . *BW系统无此 OBVU Tcode *CALL TRANSACTION ‘SM30’ AND SKIP FIRST SCREEN . *SM30跳过启动屏幕不行,所以使用函数VIEW_MAINTENANCE_CALL CALL FUNCTION ‘VIEW_MAINTENANCE_CALL’ EXPORTING ACTION = ‘U’ VIEW_NAME = ‘V_001_B’. ENDIF . IF P2 = ‘X’ . CALL FUNCTION ‘VIEW_MAINTENANCE_CALL’ EXPORTING ACTION = ‘U’ VIEW_NAME = ‘V023’. ENDIF . ENDFORM. |
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/20004.html