Entering content frame

Procedure documentation Triggering Events from External Programs Locate the document in its SAP Library structure

Use the R/3 program SAPEVT to trigger an event from a program running outside the R/3 System.

The syntax for SAPEVT is as follows:

sapevt <EVENTID> [-p <EVENTPARM>] [-t]
pf=<Profile Name>|name=<R/3 System name> nr=<R/3 System Number>

Example: sapevt END_OF_FI_DATATRANS name=C11 nr=11 triggers the event END_OF_FI_DATATRANS without a parameter. The event is triggered in R/3 System C11, instance number 11. Any jobs that are waiting for this event are started.

The SAPEVT parameters are as follows:

At least one instance of the R/3 System must be active when SAPEVT runs. Otherwise, the System will not know that the event has occurred. The instance must have the number specified in the SAPEVT call.

In more detail, the parameters for identifying the R/3 System are as follows:

You can find R/3 system profiles in the globally shared R/3 directory SYS\profile (Windows NT), or SYS/profile (UNIX).

Requirements for Using SAPEVT

To use SAPEVT to trigger an event, the following requirements must be met:

If no instance in an R/3 System is active when an external program triggers an event, than the event is ignored, the R/3 System will not know that the event has occurred.

If a job that was scheduled to run when an event occurs cannot be started immediately, it is rescheduled as an immediate-start job. It will then be run at the earliest possible opportunity.

If access to the directory is not possible, then you can create a local profile for SAPEVT. This profile need only contain values for the parameters rdisp/mshost and rdisp/msserv. Take the values from the profiles of the target R/3 System. Specify the local profile in the SAPEVT command line.

SAPEVT reports problems in establishing a connection to the R/3 System in its log file.

UNIX: /usr/sap/<R/3 System ID>/SYS/exe/run and SYS/profile

Windows NT: \\<Host Name>\sapmnt\<R/3 System ID>\SYS\exe\run and SYS\profile

Leaving content frame