openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PERFORM_EXPLAIN:
    post:
      tags:
      - SDB6EXPLAIN
      summary: 'DB6: Explain Statement and Fill the Explain Tables'
      operationId: /rfc/DB6_PERFORM_EXPLAIN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                NEWOL:
                  type: string
                  maxLength: 1
                  description: 'DB6: Schema Name'
                NEWQD:
                  type: string
                  maxLength: 5
                  description: 'DB6: Schema Name'
                OPTHINT:
                  type: string
                  maxLength: 4048
                  description: 'DB6 CCMS: 4048 Character Text'
                REOPT:
                  type: integer
                  format: int32
                  description: boolean variable (X=true, -=false, space=unknown)
                SCHEMA:
                  type: string
                  maxLength: 20
                  description: 'DB6: Schema Name'
                STMT_STR:
                  type: string
                  maxLength: 32000
              required:
              - NEWOL
              - NEWQD
              - OPTHINT
              - SCHEMA
              - STMT_STR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERROR_SOURCE:
                    type: string
                    maxLength: 10
                    description: 'Runtime: Current line of an internal table'
                  EXPLAIN_TIME:
                    type: string
                    maxLength: 26
                    description: Character field length 26
                  OUTPUT_SQL_ERROR_NUMBER:
                    type: integer
                    format: int32
                    description: 'Runtime: Current line of an internal table'
                  OUTPUT_SQL_ERROR_TEXT:
                    type: string
                    maxLength: 32000
                    description: 'Runtime: Current line of an internal table'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
