openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CALO_LOG_READ_MESSAGES:
    post:
      tags:
      - CALO
      summary: Read Messages from Current Log Entry
      operationId: /rfc/CALO_LOG_READ_MESSAGES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                LOG_CLASS:
                  type: string
                  default: '4'
                  maxLength: 1
                MESSAGES_AND_PARAMETERS:
                  type: array
                  items:
                    type: object
                    properties:
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      MSG_LINENO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      LANGUAGE:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      MSG_TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSG_ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSG_NO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSG_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSG_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSG_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSG_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSG_TXT:
                        type: string
                        maxLength: 273
                        description: 'Application Log: Message text with parameters'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESSAGES_AND_PARAMETERS:
                    type: array
                    items:
                      type: object
                      properties:
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        MSG_LINENO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        LANGUAGE:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        MSG_TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSG_ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSG_NO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSG_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSG_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSG_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSG_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSG_TXT:
                          type: string
                          maxLength: 273
                          description: 'Application Log: Message text with parameters'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
