Fonction SAP BAPI_XMI_SELECT_LOG - Selection of Translated Entries in XMI Log

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EXTUSER BAPIXMSLCT-EXTUSER C 16 '*' X Tool user to be viewed
FROMTIMSTMP BAPIXMSLCT-FROMTMSTMP N 14 X Start of the period to be viewed
INTERFACE BAPIXMSLCT-INTERFACE C 3 '*' X Interface to be viewed
OBJECT BAPIXMSLCT-OBJECT C 50 '*' X Object to be viewed
SESSIONID BAPIXMSLCT-SESSIONID C 24 '*' X ID of the XMI session to be viewed
TOTIMSTMP BAPIXMSLCT-TOTMSTMP N 14 X End of the period to be viewed

Paramètre Reférence Type Long. Description
NUMBER BAPIXMCNT-FILLCOUNT I 4 Number of selected log entries
RETURN BAPIRET2 u 548
TRANSLATED BAPIXMBOOL-REP C 1 All log entries are translated
TRUNCATED BAPIXMBOOL-REP C 1 Messages that are too long were cut off

Paramètre Reférence Long. Facultatif Description
LOG BAPIXMLOGX 461 Selected log entries

Functionality
Use this method to read the XMI session log. You can then format theentries read for display in an external product.
The log contains messages that may originate from the XMI interface,other CCMS system administration interfaces or from an externalproduct. The log summarizes the activities of all sessions with CCMSsystem administration interfaces.

Further information
XMI documentation (SAPnet/CCMS)

Description
This parameter contains the number of log entries found.

Description
INCLUDE BAPI_TABLE

Value range
MSG_NOT_LOGGED_ON: You have not logged onto the R/3 System.
MSG_CANT_LOG: The action had to be terminated because the R/3 XMIloggin mechanism reported an error.
MSG_PROBLEM_DETECTED: A problem occurred in an XMI function module thatis not directly connected with the XMI functions. The problem wasprobably caused by a called function module. To analyze the problem,analyze the R/3 System log.
MSG_INVALID_RANGE: The entry to restrict the selection of log entrieswas invlaid. It may be, for example, that a time stamp does not conformto UTC.
MSG_CANT_LOG_ACTION: The action had to be terminated because the R/3XMI logging mechanism reported an error.

Description
This parameter is set if all returned log entries could be translatedby the R/3 System. This means that for each entry, a message text wasuploaded in the logon language of the interface user (the R/3 user withwhom an external product has logged onto the R/3 System).
If the parameter is not set, the system returns the English standardtext for at least one log entry.

Value range
'X' or ' '.

Description
This parameter is set if at least one of the returned log entries wastoo long and was therefore cut off at the end.
If the parameter is not set, all entries had a permitted length andwere returned complete.

Value range
'X' or ' '

Description
The name of the user in the external system to whom the messages to beread concern.
The user name is only available as a search criteria if it wasspecified at the same time that the message was entered. This is notconpulsory for external products.

Value range
User name in the external system in text.

Description
Use this parameter to specify a time frame for the log entries to beread. Here you specify the start of the time frame. The frame refers tothe time stamp that is hel din the R/3 System log when a message isentered.

Value range
Time stamp in UTC format of the XMI interface. The UTC time stamp iscalculated in Greenwich Mean Time (GMT) and has the following format:YYYYMMDDSSMMSS. Example: 18.12.1996 CET 14:06:35 in this notation is19961218130635.

Description
Enter here the interface identification code that refers to themessages to be read.
The code is only then available as a search criteria if you specify itwhen you enter a message. This is not compulsory for external products.SAP XMI messages always specify the interface.

Value range
The codes of the CCMS system administration interfaces:

  • XBR (DB backup)

  • XBP (Background processing)

  • XMB (Basic functions)

  • XOM (Output management)

  • XDB (DB administration)
  • Description
    The name of the object that refers to the messages that are to be read.
    The object name is a freely-selectable text that should enable messagesto be assigned to objects or components.

    Value range
    For external products or components: You can find the object name usedin the product documentation.
    The SAP objects are as follows:

    • JOB: /

    • ALERT:

    • ABAP:

    • APPSERVER:

    • SYSLOG:

    • WORKPROCESSES:

    • USER:
    • Description
      The XMI session identification that refers to the messages to be read.

      Value range
      The ID that is assigned by the R/3 System when methodSystemMngmtSession.Logon is called.

      Description
      You use this parameter to determine a time frame for the log entries tobe read. Here you specify the end of the time frame. The frame refersto the time stamp that is held by the R/3 System when a message isentered in the XMI log.

      Value range
      Time stamp in UTC format of the XMI interface. The UTC time stamp iscalculated in Greenwich Mean Time (GMT) and has the following format:YYYYMMDDSSMMSS. Example: 18.12.1996 CET 14:06:35 in this notation is19961218130635.

      Description
      This table contains returned XMI log entries.
      INCLUDE BAPI_DATAELEMENT