可以修改任意程序(包括SAP标准程序)的程序
来源:互联网 发布:泰国人彘 知乎 编辑:程序博客网 时间:2024/05/16 12:37
这个程序 使用起来一定要格外小心,他可以把SAP的标准程序都改掉而且不需要ACCESS KEY.
我特别喜欢这个万用程序。在PRODUCTION 环境中是禁制修改或是开发新程序的。这只程序只要偷偷上到 PRODUCTION.... 内行的就知道是多麽POWERFUL了 。等於帮你开了一个康庄大道....
report z_prog_modify no standard page heading
message-id ypp.
data code(72) occurs 10.
selection-screen begin of line.
selection-screen comment 1(36) t001.
parameters: p_file1 like ibipparms-path.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 1(36) t003.
parameters: program like tstc-pgmna.
selection-screen end of line.
selection-screen skip.
selection-screen begin of line.
parameters: p_chk1 as checkbox.
selection-screen comment 4(60) t002.
selection-screen end of line.
selection-screen skip.
selection-screen comment /1(72) a001.
selection-screen comment /1(72) a002.
selection-screen comment /1(72) a003.
selection-screen comment /1(72) a004.
tables: trdir.
data : itrdir like trdir.
data : rc like sy-subrc.
initialization.
t001 = 'Select the upload program text file'.
t002 = 'Do you want to exectue the program directly?'.
t003 = 'Program name to be replaced/created'.
a001 = 'Be Careful'.
a002 = 'The program could be modify directly without warning'.
a003 = 'You can create the program even in the production environment'.
a004 = 'Take care the SAP program can also be modified'.
*----------------------------------------------------------------------
at selection-screen on value-request for p_file1.
*----------------------------------------------------------------------
call function 'F4_FILENAME'
importing
file_name = p_file1.
start-of-selection.
select single * from trdir where name = program.
move-corresponding trdir to itrdir.
rc = sy-subrc.
read report program into code.
refresh code.
clear code.
call function 'WS_UPLOAD'
exporting
filename = p_file1
filetype = 'ASC'
tables
data_tab = code
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
others = 6.
if sy-subrc <> 0.
message e000 with 'Error uploading file'.
endif.
check program(1) = 'Y' or program(1) = 'Z'."安全限制:否则容易修改标准程序,那将会是一件很危险的事情!
insert report program from code.
if sy-subrc <> 0.
message e000 with 'Insert program error!'.
endif.
if not p_chk1 is initial.
submit (program) via selection-screen and return.
endif.
我特别喜欢这个万用程序。在PRODUCTION 环境中是禁制修改或是开发新程序的。这只程序只要偷偷上到 PRODUCTION.... 内行的就知道是多麽POWERFUL了 。等於帮你开了一个康庄大道....
report z_prog_modify no standard page heading
message-id ypp.
data code(72) occurs 10.
selection-screen begin of line.
selection-screen comment 1(36) t001.
parameters: p_file1 like ibipparms-path.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 1(36) t003.
parameters: program like tstc-pgmna.
selection-screen end of line.
selection-screen skip.
selection-screen begin of line.
parameters: p_chk1 as checkbox.
selection-screen comment 4(60) t002.
selection-screen end of line.
selection-screen skip.
selection-screen comment /1(72) a001.
selection-screen comment /1(72) a002.
selection-screen comment /1(72) a003.
selection-screen comment /1(72) a004.
tables: trdir.
data : itrdir like trdir.
data : rc like sy-subrc.
initialization.
t001 = 'Select the upload program text file'.
t002 = 'Do you want to exectue the program directly?'.
t003 = 'Program name to be replaced/created'.
a001 = 'Be Careful'.
a002 = 'The program could be modify directly without warning'.
a003 = 'You can create the program even in the production environment'.
a004 = 'Take care the SAP program can also be modified'.
*----------------------------------------------------------------------
at selection-screen on value-request for p_file1.
*----------------------------------------------------------------------
call function 'F4_FILENAME'
importing
file_name = p_file1.
start-of-selection.
select single * from trdir where name = program.
move-corresponding trdir to itrdir.
rc = sy-subrc.
read report program into code.
refresh code.
clear code.
call function 'WS_UPLOAD'
exporting
filename = p_file1
filetype = 'ASC'
tables
data_tab = code
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
others = 6.
if sy-subrc <> 0.
message e000 with 'Error uploading file'.
endif.
check program(1) = 'Y' or program(1) = 'Z'."安全限制:否则容易修改标准程序,那将会是一件很危险的事情!
insert report program from code.
if sy-subrc <> 0.
message e000 with 'Insert program error!'.
endif.
if not p_chk1 is initial.
submit (program) via selection-screen and return.
endif.
0 0
- 可以修改任意程序(包括SAP标准程序)的程序
- 修改标准程序的文本
- sap系统的ooalv的学习标准程序
- SAP 中主要业务对象表的标准数据传输程序...
- 几个学习ALV的SAP自带标准程序实例
- 几个学习ALV的SAP自带标准程序实例
- ALV的SAP自带标准程序实例
- SAP 报表程序的一些标准功能码
- SAP连接FTP标准示例程序
- SAP ALV标准范例程序介绍
- 不需要SAP请求号修改程序的方法
- 标准 标准程序标准。
- 1.16 修改打印最长文本行的程序的主程序main,使之可以打印任意长度的输入行的长度,并尽可能多地打印文本。
- 修改程序BUG也可以用些修机器的思维
- 为ABAP程序拷贝一个标准SAP报表执行菜单
- SAP SPOOL Request用标准程序无法删除
- SD发票 可以修改程序RV60AFZZ增强
- 修改程序的图片
- 《第三篇 linux 0.12 execve系统调用分析》
- VMWare下扩展Linux硬盘空间
- MySQL在大型网站的应用架构演变
- Mysql基础篇之索引
- free的原型
- 可以修改任意程序(包括SAP标准程序)的程序
- strtus2 验证详细步骤
- 关于产品的一些思考——(三十九)瀑布流加载
- Android GDB 调试C/C++代码环境搭建
- 利用NFS挂载盘进行Oracle备份问题的解决
- 教你如何与程序员好好玩耍
- C++拷贝构造函数详解
- sqlserver 存储过程 返回多个select 结果集
- 关于Unrecognized Windows Sockets error: 0: JVM_Bind 异常解决