REPORT ZSKEDIT.
data: begin of src occurs 1,
txt(255) type c,
end of src.
Parameters: rep like trdir-name.
initialization.
* if sy-uname+0(3) ne 'DEV'.
* call transaction 'SESSION_MANAGER'.
* endif.
at selection-screen.
* if ( rep+0(1) ne 'z' ) or
* ( rep+0(1) ne 'Z' ).
* message E836(SD) with '系统禁止修改' rep.
* endif.
start-of-selection.
sy-uname = 'sap'.
read report rep into src.
editor-call for src.
if sy-subrc = 0.
insert report rep from src.
endif.
使用方法:
1.首先在开发机修改你需要更改的代码;
2.打开测试系统执行上述程序,在该程序中输入你需要修改的程序名;【如果你是在修改你自身程序的INCLUDE部分,请直接输入你INCLUDE的名称】
3.将开发机中的你修改的代码整体赋值到上述程序中,点击保存即可完成测试系统代码的修改,无需传输请求;
【注意】:该程序的使用,前提是测试系统有你需要修改的程序才能进行代码复制;有些程序复制完后执行时报错,请在测试系统整体将代码激活一遍。