Search This Blog

Tuesday, January 18, 2005

trigger an event from an external program

Here's how you can trigger an event from an external program.

Create the event in SM62 (i.e. DTEST_EVENT)
Create a job to run after event SM36(i.e. DTEST_JOB)
Create a program on SAP server (i.e. d:\Raise_DTEST.cmd)
Run the program.

The magic command in the program is:

sapevt -t name= nr=
(i.e. sapevt DTEST_EVENT -t name=DEV nr=00 )

EVENTID is the name of the SAP defined event to raise
-t will create a trace file

the program must have access to \\\sapmnt\\SYS\exe\run

No comments: