2020.02.28 [essays] ABAP - SAP enhancement point to find a small note

1. SE30 run-time analysis and evaluation, find EXIT_ * functions that begin with - can be found CMOD enhancement point

Then go MODSAP table lookup:

We can run MM02 in SE30, the casually enter a material, a little change something, then save and exit,

Get run-time analysis reports:

 Get function: EXIT_SAPLMGMU_001

 Then SE16N in MODSAP query:

This enhancement is MM01 MM02 then when you create additional material to enhance the enhanced calibration point.

You can go to transaction code CMOD enhancement.

2. function: MODX_FUNCTION_ACTIVE_CHECK break point

 Make a break point in the last line of the function, and then run TCODE, if there will be enhanced jumped into the DEBUG interface, DEBUG interface, view L_FUNCNAME field corresponding value that is is looking for export

Or do presentations with MM02:

First enter MODX_FUNCTION_ACTIVE_CHECK in SE37 make a break point in the last line

 

Then execute MM02, when modifying preservation, enhancement point if there will trigger debug

SE11 go in to see the exports by MODSAP of it is that SMOD,

Then you can create an enhanced group in the CMOD, enhancement fill the find,

Finally, according to the actual business.

 

3. find BADI method: class object CL_EXITHANDLER

First run SE24, view class objects CL_EXITHANDLER, in which method: GET_INSTANCE 14 rows (CALL METHOD CL_EXITHANDLER => GET_CLASS_NAME_BY_INTERFACE) marked with a break point.

Next, run transaction code, when there is BADI will be executed, then in DEBUG mode, enter GET_INSTANCE method of class CL_EXITHANDLER, press F6 after the implementation of this method,

Point parameters EXIT_NAME see its corresponding value, all in such a way to achieve the object, and at that point we're looking for BADI.

We Transaction code ME22N example:

 执行ME22N:进入debug模式

双击EXIT_NAME参数可以看到BADI的名称,然后我们可以去SE18里面查看,这个BADI大致是做什么的

由此可以得知这个ME_PO_PRICING增强点是增强PO价格确定的。

若是这个不是你所需要的增强可以在DEBUG界面按F8让程序继续进行,遇到BADI又会进入DEBUG界面。

4.    通过开发类找出口

 ME21N事务代码为例,进入TCODE后,选择点系统 -》状态 -》程序名称,双击后进入到程序中,再点菜单栏中的转到 -》属性,找到开发类的名称,比如ME21N的开发类是‘ME’。

 

 

 

 如果是找出口,则到SMOD事务代码中,点加强边的按纽,在开发类中输入‘ME’,回车后就会显示出所有的出口。

打开SMOD

BADI也是同样的过程,只是到SE18中去确定BADI

 

 不过此方法找出来的出口,不是针对某个程序的出口,而是把开发类所对应的出口全找出口,所以

还要通过自己的判断找到所需求的出口

 

5.    根据SPRO配置说明或者modification等查找(重要)

其实使用中发现任何一个增强方法的查找都是不全面的,SAP系统十分复杂繁琐,增强方式也有很多。一般性的增强我们都可以先百度一下,说不定一起出来的还有例子,这应该是最快一种方法。

第五点是根据SPRO配置点附近增强说明去查找:这个个人觉得是最有头绪的,有理有据的。

举个例子:我们进入SPRO->销售与分销->系统调整->用户出口->销售中的User Exit->销售凭证处理的User Exit

点击

就可以查看出口说明(此处需要英文阅读)

 然后我们点击执行按钮或者运行SE38 

输入MV45AFZZ 点击查看

 以上两个较为常用,对于SD的增强来说

你会看到好多增强点,挑选一个适用的OK了。可能有不能确定的,业务顾问需要和开发顾问相互配合测试一下。

-Tab Zhu 不念过去 不畏将来

 

 

 

 

 

 

 

 

 

 

执行ME22N:进入debug模式

双击EXIT_NAME参数可以看到BADI的名称,然后我们可以去SE18里面查看,这个BADI大致是做什么的

 

Guess you like

Origin www.cnblogs.com/jxzhu/p/12381357.html