1、定义Event
Tcode:SM62
2、程序中触发SAP Event
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
EVENTID = 'Z_BARRY_TEST'
EVENTPARM = 'ZTESTJOB'
EXCEPTIONS
BAD_EVENTID = 1
EVENTID_DOES_NOT_EXIST = 2
EVENTID_MISSING = 3
RAISE_FAILED = 4
OTHERS = 5.
3、在操作系统层面上触发Event
利用程序SAPEVT(UNIX)/SAPEVT.EXE(Windows)
一般在目录\usr\sap\\SYS\exe\run 下面
语法: sapevt event [-p param] [-t] pf=
| name= nr=
例句:
F:\usr\sap\CBR\SYS\exe\run\sapevt z_barry_test -t pf=/usr/sap/CBR/SYS/profile/CBR_DVEBMGS00_ciberides nr=00
或者:
F:\usr\sap\CBR\SYS\exe\run\sapevt z_barry_test -t name=CBR nr=00
SAP Help网址:
阅读(5196) | 评论(1) | 转发(0) |