SAP中PATH和TCODE的相互查找
来源:互联网 发布:属于网络层协议的是 编辑:程序博客网 时间:2024/04/24 05:10
原文地址:http://www.erp100.com/93236/viewspace-6764345.html
1.查找SPRO中各个节点的T-CODE
我们发现各个维护点,在SPRO中都埋得比较深。如果能有快速的访问方式就好了。其实是有的,下面就三种显示举三例子:
2.根据用户输入的菜单中的TCODE,查找事务在菜单中的路径位置的程序:
tables: smencusnew, smencust, tstc.
data: begin of itab occurs 10.
include structure smencusnew.
data: end of itab.
data: begin of stack occurs 10,
id(5) type n,
end of stack.
data: i type i.
parameters: trans like tstc-tcode.
* Get the id of our transaction
select * from smencusnew where report = trans and customized = 'S'.
move-corresponding smencusnew to itab.
append itab.
endselect.
* Our transaction is not in smencusnew
if sy-subrc <> 0.
write: / trans color 5.
skip.
write: / 'Not in the profile generator''s table'.
exit.
endif.
* Get the parent id that links us to the root with the fewest levels
sort itab by menu_level.
read table itab index 1.
stack = itab-object_id. append stack.
stack = itab-parent_id. append stack.
* Search for the grandparets ...
do.
clear itab. refresh itab.
select * from smencusnew where object_id = stack-id and
customized = 'S'.
move-corresponding smencusnew to itab.
append itab.
endselect.
sort itab by menu_level.
read table itab index 1.
if itab-parent_id = '00001'. exit. endif.
stack = itab-parent_id. append stack.
enddo.
* Display the result
write: / trans color 5.hide trans. clear trans.
write: ' <<<< Doubleclick to see the transaction'.
skip.
write: /(30) 'Main Menu' color 2.
sort stack.
loop at stack.
i = i + 3.
select single * from smencust where spras = 'E' and object_id =
stack.
write: /i(30) smencust-text color 2.
endloop.
* Display the transaction when the user doubleclick on trans
at line-selection.
if not trans is initial.
select single * from tstc where tcode = trans.
call transaction trans.
endif.
clear trans.
- SAP中PATH和TCODE的相互查找
- SAP中实用的Tcode汇集
- sap中建立表格维护的tcode
- SAP常用的Tcode
- SAP中,常用的打开窗口及运行TCode方法
- SAP HR 中几个比较好用的TCODE
- SAP 批量锁住用户和TCODE的方法
- SAP XI常用的TCODE
- SAP有用的TCODE清单
- 如何查找SAP的旧TCODE对应新的TCODE
- 如何查找SAP的旧TCODE对应新的TCODE
- 如何查找SAP的旧TCODE对应新的TCODE
- 一些有用的SAP技术TCODE
- 一些有用的SAP技术TCODE
- 一些有用的SAP技术TCODE
- 一些有用的SAP技术TCODE
- SAP有用的TCODE清单-转载
- SAP BWI的常用TCODE列表
- CSDN之路
- [强列推荐]关于java的hashCode方法
- 【python本译】
- CBR简介
- 清除页面缓存的方法总结
- SAP中PATH和TCODE的相互查找
- HTTP请求模型和头信息
- 第七章 使用结构组合数据
- socket 发送http请求
- J2EE教学体会
- stl作为局部变量的内存问题
- 风险投资=骗子?
- Symbian GUI 应用资源文件介绍 zz
- 如何隐藏win32 console application的console窗口