openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IQAPI_QCALL_EXTR_REMOTE:
    post:
      tags:
      - IQAPI_QUERY_CALL
      operationId: /rfc/IQAPI_QCALL_EXTR_REMOTE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DATA_OPTIONS:
                  type: object
                  properties:
                    DKIND:
                      type: string
                      maxLength: 6
                      description: 'SAP Query (L): Data type  enumValues: REF=Reference to internal data object,STREAM=Character flow,STRING=Character string,NORM=Normalized (cells),INT=Internal Field,TSTREA=Character Flow As Table'
                      enum:
                      - REF
                      - STREAM
                      - STRING
                      - NORM
                      - INT
                      - TSTREA
                    DFORMAT:
                      type: string
                      maxLength: 5
                      description: 'SAP Query (L): Data format  enumValues: INT=Internal format (MOVE),EXT=External format (WRITE with UNITS),ZSPEC=Special format (EXT or INT),WRITE=External format (WRITE without units),SPEC=Special format (WRITE or INT)'
                      enum:
                      - INT
                      - EXT
                      - ZSPEC
                      - WRITE
                      - SPEC
                EXTR_OPTIONS:
                  type: object
                  properties:
                    ACC_CHECK:
                      type: string
                      maxLength: 1
                      description: 'SAP Query (L): Boolean Value  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    ACC_NUMBER:
                      type: integer
                      format: int64
                      description: 'SAP Query (L): Max. number of times the database is accessed'
                    NO_AUTHCHK:
                      type: string
                      maxLength: 1
                      description: 'SAP Query (L): Boolean Value  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    NO_SELCHK:
                      type: string
                      maxLength: 1
                      description: 'SAP Query (L): Boolean Value  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      TAB:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field Name
                      TEXTFIELD:
                        type: string
                        maxLength: 1
                        description: 'InfoSet Query: Boolean Value'
                      NAME:
                        type: string
                        maxLength: 8
                        description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'ABAP: ID: I/E (include/exclude values)'
                      OPTI:
                        type: string
                        maxLength: 2
                        description: 'ABAP: Selection option (EQ/BT/CP/...)'
                      LOW:
                        type: string
                        maxLength: 132
                        description: 'Selection variants: Field content (LOW/HIGH)'
                      HIGH:
                        type: string
                        maxLength: 132
                        description: 'Selection variants: Field content (LOW/HIGH)'
                OLD_QID:
                  type: object
                  properties:
                    WORKSPACE:
                      type: string
                      maxLength: 1
                      description: 'SAP Query (L): Work area ID'
                    USERGROUP:
                      type: string
                      maxLength: 12
                      description: 'SAP Query (L): Name of a user group'
                    QUERY:
                      type: string
                      maxLength: 14
                      description: 'SAP Query (L): Query name (old)'
                QUERY:
                  type: string
                  maxLength: 30
                  description: Query name
                VARIANT:
                  type: string
                  maxLength: 14
                  description: Variant name
                DSTREAM_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 1024
                        description: 'SAP Query (L): Data line for download to memory'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DNORM:
                    type: array
                    items:
                      type: object
                      properties:
                        TLINE:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Position in a table'
                        TCOL:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Position in a table'
                        CELL_VALUE:
                          type: string
                          maxLength: 255
                          description: 'SAP Query (L): Value of a cell in a table'
                        VAL_LENGTH:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Length of the value in a table cell'
                  DSTREAM:
                    type: array
                    items:
                      type: string
                      maxLength: 1024
                      description: 'SAP Query (L): Data line for download to memory'
                  DSTRING:
                    type: string
                    description: Character string
                  USED_VARIANT:
                    type: string
                    maxLength: 14
                  DSTREAM_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 1024
                          description: 'SAP Query (L): Data line for download to memory'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
