相关文章:http://www.cnblogs.com/caizjian/p/3334280.html
function:VIEW_MAINTENANCE_CALL
功能:维护表视图等
The function module calls the extended table maintenance (View maintenance).
参数:
import:ACTION S = Display U = Change T = Transport
CORR_NUMBER 传送号(上面的action是t)
SHOW_SELECTION_POPUP 是否弹出选择画面
VIEW_NAME 视图名
NO_WARNING_FOR_CLIENTINDEP 跨集团是否现实警告
VARIANT_FOR_SELECTION 变式名
CHECK_DDIC_MAINFLAG 察看是否为可维护对象
其他的参数暂时没有用到
示例:
REPORT zppr0013.
*&---------------------------------------------------------------------*
*& 常量声明
*&---------------------------------------------------------------------*
CONSTANTS:
con_action_u TYPE c LENGTH 1 VALUE 'U',
con_tname TYPE tabname VALUE 'ZPPT021'.
* con_tname TYPE tabname VALUE 'ZPPT018'.
*&---------------------------------------------------------------------*
*& 选择屏幕开始
*&---------------------------------------------------------------------*
START-OF-SELECTION.
PERFORM frm_sm30_call.
*&---------------------------------------------------------------------*
*& Form frm_sm30_call
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM frm_sm30_call.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = con_action_u
view_name = con_tname.
ENDFORM. "frm_sm30_call