刘波的学习园地

让我们一起进步!
posts - 31, comments - 7, trackbacks - 0, articles - 11
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

2008年9月18日

SAP系统中,为了省去输入程序名称等繁琐步骤,SAP提供一种命令,称作‘事务代码’,通过执行事务代码达到快速进入相应程序的目的。那么在系统中如何去查找事务代码,事务代码和程序的对应关系如何呢?我们可以通过如下方式来查询:

方法一:通过查询表TSTC或者TSTCT;SAP系统将所有的事务代码都存储在这个表中,包括字开发的Y*和Z*;

方法二:Tcode:SE93,这个是SAP提供的制作Tcode的程序,我们可以使用这里的输入引导F4来完成查找,但是这个查找效率没有方法一高;

方法三:Tcode:SM01,这是SAP提供的事务代码锁定/解锁的程序,我们可以在这里找到所有的事务代码,并且对其进行是否锁定的控制。

那么又如何查找Tcode在菜单中的位置呢?

方法一:在’SAP轻松访问‘界面使用搜索功能即可找到;

方法二:可以通过tcode‘Search_SAP_Menu’来查找,查找结果以清单的方式显示;

posted @ 2008-09-18 13:43 Leo's 阅读(903) 评论(0) 编辑

在SAP系统中,SAP提供了Badi和用户出口来方便用户对标准程序来进行增强,那么我们可以通过如下方法来找到它们:

获取用户出口:

方法一:用SAP提供的一个程序来执行获取,这个程序不是已经内嵌到系统中,需要下载代码,放到自定义的程序中来执行,

           代码下载地址:http://www.sap-img.com/ab038.htm 或者:http://saptechnical.com/Tutorials/ExitsBADIs/FindUserExitswithTCode.htm

方法二:Tcode:SMOD,进去后,写星号,按F4,调用搜索帮助,调出所有清单,从清单中搜索得到‘user exit’的项目;

获取BADI(以下从SDN转帖):

方法一:Goto Transaction SE24->class name as CL_EXITHANDLER->
Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.
Now enter transaction code .
U will be stopped on the break point at cl_exithandler .In the exit name u can find list of badi's attached to the tcode..
Find the sutable BADI according to your requirement
方法二: Go to any transaction (say CV02N) and from the menu, select System ->Status to get the program name.
In the program, search for CL_EXITHANDLER=>GET_INSTANCE with the radio button “In Main Program” selected.
Select one program from the list of programs containing calls to BAdIs.
The changing parameter INSTANCE will have the interface assigned to it.
Find out the corresponding BAdI Interface and definition
For eg: if the inteface name is IF_EX_DOCUMENT_MAIN02 is the interface , the BAdI definition name will be DOCUMENT_MAIN02.

posted @ 2008-09-18 11:47 Leo's 阅读(451) 评论(0) 编辑