SAP | 常见的命令字段格式

以下列出了一些可以使用的常见命令字段格式。虽然不是很全,但是对新手入门还是可以起到一定的帮助性作用的。
/nxxxx :在同一会话(窗口)中调用事务
/*xxxx :在同一会话(窗口)中调用事务;跳过初始屏幕
/oxxxx : 在附加会话中调用事务
/n :结束当前事务(*警告:*未保存的更改将丢失而不发出警告)
/i :删除当前会话
/o :生成会话列表
/ns000 :结束当前交易并返回开始菜单
/nend :从系统中注销
/nex :在没有确认提示的情况下从系统中注销(*警告:*未保存的更改将丢失,并发出警告)
/h :打开调试
tip:xxxx 代表交易代码
下面就选择其中几个基本命令进行一下演示:
1、/nxxxx:关闭当前的会话窗口,并根据所输入的 tcode,进入到新的界面。


2、/n :也可以不加 tcode,单独使用的话会直接结束当前界面,并返回到主界面


3、/oxxxx : 会保留当前的会话界面,同时生成一个新的界面,/o 一般都是同事务代码一起使用。


4、/nend :从系统中注销,相当于直接退出系统,会伴有注销的弹窗提示

5、/nex :和 nend 功能相似,区别是无任何提示,直接退出 SAP,自己在测试的时候一定要先把各项数据保存再测,因为他会把所有的窗口全部关闭!!!
6、/h :调试,可以自己试一下,这里就不详说了,和 debug 的作用一样。
最后,再分享一个在主界面显示应用程序对应代码的小方法:
通过启用显示技术名称的设置,就可以轻松检查与每个交易关联的 Tcode。操作步骤为菜单路径“附加功能 • 设置”,或按 (Shift)+(F9)

启用此设置后,当你在 SAP Menu 中打开树结构时,你应该会看到为每个应用程序显示的事务代码


版权声明: 本文为 InfoQ 作者【暮春零贰】的原创文章。
原文链接:【http://xie.infoq.cn/article/0ce2ce27c14c514c44e2ae53f】。文章转载请联系作者。
评论