Data Description

The SM59 event is used in SAP to determine the status of an RFC connection.

Potential Use Cases

This event could be used in the following scenarios:

  • Alert on instances where RFC connections go down.

  • Visualize RFC connection failures over time.

  • Correlate RFC connection failures to other system activities such as tRFC failures and failed outbound iDocs.

Metric Filters

This metric filter is used to stop or start the collection of RFC connections in the system. Log into the managed system and execute the /n/bnwvs/main transaction. Then go to Administrator → Metric Filters → More → SM59 dest. filter.

Then either check or uncheck the Exclude box based on whether you would like to collect the results of the RFC connection test. If the Exclude checkbox is selected it means that the event will not be collected. Similarly, if the Exclude checkbox is not selected it means the event will be collected. Populate the table as desired, and save.

SP 6.07 and below:

SP 6.08+:

Starting from SP 6.08 it is possible to activate RFC destination check from all application servers available in the system. Checkbox ‘Check in All App Servers’ needs to be set in this case. Login/authorization check is also an option for ABAP destinations ('ABAP Connection Login Check' checkbox should be activated in the filter dialog).

Splunk Event

The event will look like this in Splunk:

SAP Navigation

Log into the managed system and execute the SM59 transaction. Expand the desired RFC connection type and double-click the RFC destination of interest.

Then perform a connection test by selecting the Connection Test button.

The results of the connection test will then be displayed. If it is a failure, this will be collected in the REASON field in Splunk. If it is a success, it will show a null value in the REASON field in Splunk.

Field Mapping

Field

Description

Unit of Measure

CURRENT_TIMESTAMP

The date time stamp when the information was collected

YYYYMMDDHHMMSS

EVENT_SUBTYPE

String

EVENT_TYPE

SM59

String

REASON

Failure reason

String

RFCDEST

Logical Destination (Specified in Function Call)

String

RFCTYPE

Type of Entry in RFCDES

String

SUCCESS

Single-Character Indicator

Boolean

UTCDIFF

The UTC OFFSSET in HHMMSS that the data was collected in

HHMMSS

UTCSIGN

The UTC positive or negative OFFSET indicator. Positive (+) means add UTCDIFF to find the time zone of the data, negative (-) means subtract the UTCDIFF to find the time zone adjusted date time the data was collected in.

+ | -