进入编辑器后,执行主菜单->Utilities->More utilities->编辑模式,创建一个自己的模式,例如MY_STYLE。
进入CMOD,创建一个项目,组件为SEUED001,在出口EXIT_SAPLLOCAL_EDT1_001里写上相关代码,如:
CASE KEYWORD.
DATA: W_BUFFER TYPE STRING.
WHEN 'MY_STYLE'.
W_BUFFER =
'*********************************************************************'.
APPEND W_BUFFER TO BUFFER.
W_BUFFER = '*& Program :'.
APPEND W_BUFFER TO BUFFER.
W_BUFFER = '*& Module :'.
APPEND W_BUFFER TO BUFFER.
W_BUFFER = '*& Funct. Spec. Ref. :'.
APPEND W_BUFFER TO BUFFER.
W_BUFFER = '*& Developer(Company):'.
APPEND W_BUFFER TO BUFFER.
W_BUFFER = '*& Create Date :'.
APPEND W_BUFFER TO BUFFER.
W_BUFFER = '*& Description :'.
APPEND W_BUFFER TO BUFFER.
W_BUFFER =
'*********************************************************************'.
APPEND W_BUFFER TO BUFFER.
ENDCASE.
保存激活,再到编辑器找到MY_STYLE这个模式,看看效果。
阅读(772) | 评论(2) | 转发(0) |