openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_XMI_SELECT_LOG:
    post:
      tags:
      - SXMI
      summary: Selection of Translated Entries in XMI Log
      operationId: /rfc/BAPI_XMI_SELECT_LOG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EXTUSER:
                  type: string
                  default: '*'
                  maxLength: 16
                  description: Tool user to be viewed
                FROMTIMSTMP:
                  type: integer
                  format: int64
                  description: Start of the period to be viewed
                INTERFACE:
                  type: string
                  default: '*'
                  maxLength: 3
                  description: Interface to be viewed
                OBJECT:
                  type: string
                  default: '*'
                  maxLength: 50
                  description: Object to be viewed
                SESSIONID:
                  type: string
                  default: '*'
                  maxLength: 24
                  description: ID of the XMI session to be viewed
                TOTIMSTMP:
                  type: integer
                  format: int64
                  description: End of the period to be viewed
                LOG:
                  type: array
                  items:
                    type: object
                    properties:
                      LOGID:
                        type: string
                        maxLength: 24
                        description: 'XMI logging: Unique DB key of log entry'
                      LOGTIMSTMP:
                        type: integer
                        format: int64
                        description: Time Stamp (Date and Time)
                      EXTCOMPANY:
                        type: string
                        maxLength: 16
                        description: 'XMI logging: company name of external management tool'
                      EXTPRODUCT:
                        type: string
                        maxLength: 16
                        description: 'XMI logging: Program name of external management tool'
                      SAPUSER:
                        type: string
                        maxLength: 12
                        description: 'XMI logging: SAP user name of external management tool'
                      EXTUSER:
                        type: string
                        maxLength: 16
                        description: 'XMI logging: Name of user in external management tool'
                      INTERFACE:
                        type: string
                        maxLength: 3
                        description: Interface ID (for example, XBP)
                      VERSION:
                        type: string
                        maxLength: 10
                        description: Version of XMI interface delivered for check purposes
                      SESSIONID:
                        type: string
                        maxLength: 24
                        description: ID of XMI session
                      OBJECT:
                        type: string
                        maxLength: 50
                        description: 'XMI logging: Name of object (job name, spool ID ...)'
                      SERVER:
                        type: string
                        maxLength: 20
                        description: 'XMI logging: Name of server, on which XMI action was exectd'
                      AUDITLEVEL:
                        type: integer
                        format: int64
                        description: 'A higher audit level means more detailed logs  enumValues: 1=Log entries: Errors of read actions   (contains 2-9),0=Log entries: Change actions           (contains 1-9),9=For future use,3=Log entries: Actions (detailed)       (contains 4-9),2=Log entries: Read actions             (contains 3-9)'
                        enum:
                        - '1'
                        - '0'
                        - '9'
                        - '3'
                        - '2'
                      MSG:
                        type: string
                        maxLength: 255
                        description: The expanded (translated) message for ext. tools
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMBER:
                    type: integer
                    format: int32
                    description: Number of selected log entries
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                  TRANSLATED:
                    type: string
                    maxLength: 1
                    description: All log entries are translated
                  TRUNCATED:
                    type: string
                    maxLength: 1
                    description: Messages that are too long were cut off
                  LOG:
                    type: array
                    items:
                      type: object
                      properties:
                        LOGID:
                          type: string
                          maxLength: 24
                          description: 'XMI logging: Unique DB key of log entry'
                        LOGTIMSTMP:
                          type: integer
                          format: int64
                          description: Time Stamp (Date and Time)
                        EXTCOMPANY:
                          type: string
                          maxLength: 16
                          description: 'XMI logging: company name of external management tool'
                        EXTPRODUCT:
                          type: string
                          maxLength: 16
                          description: 'XMI logging: Program name of external management tool'
                        SAPUSER:
                          type: string
                          maxLength: 12
                          description: 'XMI logging: SAP user name of external management tool'
                        EXTUSER:
                          type: string
                          maxLength: 16
                          description: 'XMI logging: Name of user in external management tool'
                        INTERFACE:
                          type: string
                          maxLength: 3
                          description: Interface ID (for example, XBP)
                        VERSION:
                          type: string
                          maxLength: 10
                          description: Version of XMI interface delivered for check purposes
                        SESSIONID:
                          type: string
                          maxLength: 24
                          description: ID of XMI session
                        OBJECT:
                          type: string
                          maxLength: 50
                          description: 'XMI logging: Name of object (job name, spool ID ...)'
                        SERVER:
                          type: string
                          maxLength: 20
                          description: 'XMI logging: Name of server, on which XMI action was exectd'
                        AUDITLEVEL:
                          type: integer
                          format: int64
                          description: 'A higher audit level means more detailed logs  enumValues: 1=Log entries: Errors of read actions   (contains 2-9),0=Log entries: Change actions           (contains 1-9),9=For future use,3=Log entries: Actions (detailed)       (contains 4-9),2=Log entries: Read actions             (contains 3-9)'
                          enum:
                          - '1'
                          - '0'
                          - '9'
                          - '3'
                          - '2'
                        MSG:
                          type: string
                          maxLength: 255
                          description: The expanded (translated) message for ext. tools
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
