Enhancement-user exits
CALL FUNCTION 'ZGDTEST'
EXPORTING
I_CHAR =
I_FLOAT =
* IMPORTING
* E_DATE =
* E_CHAR =
* E_VAR =
.
ENDFORM.
方法1:
SPRO -> SAP Reference IMG,按 ,Search Term中填入’USER EXIT’就可以查到每个模块相应的出口了,每个出口SAP都会有相应的使用说明。
例子:
User Exits In Sales Document Processing
程序:MV45AFZZ
使用说明:
Use this user exit to fill user-specific statistics update tables.
The user exit is called up by the FORM routine BELEG-SICHERN before the COMMIT command.
Note
If a standard field is changed, the field r185d-dataloss is set to X. The system queries this indicator at the beginning of the safety routine. This is why this indicator must also be set during the maintenance of user-specific tables that are also to be saved.
方法二
进入你要做增强的那个screen,找到相应的程序名,例: va01以下屏幕的程序就是SAPMV45A
用T-CODE: SE38, 输入程序名SAPMV45A,进入,按下,屏幕左部出现以下对话框。
选择Subroutines进行扩展,那些以USEREXIT开头的routines就是我们要找的出口,这里可以很方便地找到USEREXIT_SAVE_DOCUMENT,和之前的方法效果是一样的。