openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSPC_API_PROCESS_GET_LOG:
    post:
      tags:
      - RSPC_API
      operationId: /rfc/RSPC_API_PROCESS_GET_LOG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_INSTANCE:
                  type: string
                  maxLength: 30
                  description: Process Instance (Value)
                I_JOBCOUNT:
                  type: string
                  maxLength: 8
                  description: Job ID
                I_LOGID:
                  type: string
                  maxLength: 25
                  description: Log ID of a Process Chain Run
                I_TYPE:
                  type: string
                  maxLength: 10
                  description: Process Type
                I_VARIANT:
                  type: string
                  maxLength: 30
                  description: Process Variant (Name)
                E_T_JOB_LOG:
                  type: array
                  items:
                    type: object
                    properties:
                      ENTERTIME:
                        type: string
                        maxLength: 6
                        description: Job log entry time
                      ENTERDATE:
                        type: string
                        format: date
                        description: Date of entry into job log
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGTYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      TEXT:
                        type: string
                        maxLength: 200
                        description: Message text uncoded, that is, parameters inserted and text
                      RABAXKEY:
                        type: string
                        maxLength: 64
                        description: DB key of an ABAP RABAX message
                      RABAXKEYLN:
                        type: integer
                        format: int32
                        description: Actual length of DB key of an ABAP RABAX message
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PROGRAM:
                        type: string
                        maxLength: 40
                        description: 'ABAP Program: Current Main Program'
                      PFKEY:
                        type: string
                        maxLength: 20
                        description: Current GUI Status
                      DYNPRO:
                        type: string
                        maxLength: 4
                        description: Current Screen Number
                E_T_PROCESS_LOG:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
              required:
              - I_LOGID
              - I_TYPE
              - I_VARIANT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_JOBCOUNT:
                    type: string
                    maxLength: 8
                    description: Job ID
                  E_JOBNAME:
                    type: string
                    maxLength: 32
                    description: Background job name
                  E_STATUS:
                    type: string
                    maxLength: 1
                    description: Status of a Process
                  E_T_JOB_LOG:
                    type: array
                    items:
                      type: object
                      properties:
                        ENTERTIME:
                          type: string
                          maxLength: 6
                          description: Job log entry time
                        ENTERDATE:
                          type: string
                          format: date
                          description: Date of entry into job log
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGTYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        TEXT:
                          type: string
                          maxLength: 200
                          description: Message text uncoded, that is, parameters inserted and text
                        RABAXKEY:
                          type: string
                          maxLength: 64
                          description: DB key of an ABAP RABAX message
                        RABAXKEYLN:
                          type: integer
                          format: int32
                          description: Actual length of DB key of an ABAP RABAX message
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PROGRAM:
                          type: string
                          maxLength: 40
                          description: 'ABAP Program: Current Main Program'
                        PFKEY:
                          type: string
                          maxLength: 20
                          description: Current GUI Status
                        DYNPRO:
                          type: string
                          maxLength: 4
                          description: Current Screen Number
                  E_T_PROCESS_LOG:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
