Profile file for the sapevt program
[.bash profile] [company profile] [de] [profile] [sapevt] [valkyrie profile]
Symptom
You cannot use program sapevt to trigger a Batch Event.
SAP message server host:
or
*** ERROR ***: Cannot determine mshost
This means that program sapevt could not determine the name of the host in the target system on which the message server is running.
Other terms
sapevt, default.pfl, batch job, RDDIMPDP, rdisp/msserv_internal
Reason and Prerequisites
This note does not describe an error, but simply provides additional information for Note 374379.
Solution
Apart from EventID, optional event parameters and optional trace switches, the sapevt program requires two further parameters, which are used for structuring the communication to the target system. These parameters are:
1. The name of the message server (parameter mshost)2. The name of a service on the message server (parameter msserv)
There are many ways of specifying these two parameters, both by using the command lines and implicitly (see Note 802172).
This note describes how to specify these parameters implicitly.
Each time program sapevt cannot get the above parameters from the command line, it accesses the default profile for sapevt. This is a file called default.pfl and, although it can be at any location in the file system, its path can be formed by sapevt on the basis of the specified parameters.
The path for the default profile for sapevt
sapevt only needs the name of the target system for the path. This should be specified explicitly: either as the parameter name=<SID> in the command line or as one of the standard parameters in the profile pf=<Profile File>. However, there are two different cases: Operating systems similar to Unix and operating systems from the Windows family.
1. Operating systems similar to Unix:
/usr/sap/<SID>/SYS/profile/DEFAULT.PFL
Note: Pay attention to case sensitivity.
2. Operating systems from the Windows family:
\\<localhost>\sapmnt\<SID>\sys\profile\default.pfl
Note: This path refers to a global (shared) directory called “sapmnt”.
The contents of the default profile for sapevt
As was already mentioned at the beginning of this note, the default profile is only accessed if the mshost and msserv parameters are not specified explicitly. To be able to find these parameters in the default profile, they must be defined there as follows:
rdisp/mshost = <mshost>
rdisp/msserv = <msserv>
Remarks
Remark 1: See Notes 826779 and 821875 to see whether parameter rdisp/msserv_internal has to be defined and if so, how it has to be defined.
Remark 2: The last line of a profile must be a blank line.
Remark 3: msserv usually has a value that appears as follows: sapms<SID> (see Note 802172). Since the parameter name (<SID>) is already known when the default profile is read, the parameter msserv can be omitted. It is then generated automatically.
Remark 4: Instead of creating a new file, you can use the default profile of the message server, where the parameters mentioned above are also defined. Copy this profile into the corresponding directory and rename it if necessary.