openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSAQ_REMOTE_QUERY_CALL:
    post:
      tags:
      - AQRC
      operationId: /rfc/RSAQ_REMOTE_QUERY_CALL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DATA_TO_MEMORY:
                  type: string
                  default: ' '
                  maxLength: 1
                DBACC:
                  type: integer
                  format: int32
                  default: 0
                EXTERNAL_PRESENTATION:
                  type: string
                  default: ' '
                  maxLength: 1
                QUERY:
                  type: string
                  maxLength: 14
                  description: Name of query
                SKIP_SELSCREEN:
                  type: string
                  default: X
                  maxLength: 1
                USERGROUP:
                  type: string
                  maxLength: 12
                  description: Name of user group
                VARIANT:
                  type: string
                  default: ' '
                  maxLength: 14
                  description: Variant
                WORKSPACE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Work Area
                FPAIRS:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX_A:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Field position (long)'
                      INDEX_U:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Field position (long)'
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Currency specification'
                LDATA:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 1024
                        description: 'SAP Query (L): Data line for download to memory'
                LISTDESC:
                  type: array
                  items:
                    type: object
                    properties:
                      LID:
                        type: string
                        maxLength: 3
                        description: 'SAP Query (L): List ID'
                      FPOS:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Field position'
                      FCONT:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Number of next line'
                      FCURPOS:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Field start position in list line'
                      FGRAF:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Used as graphic text'
                      FTYP:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Field type'
                      FLEN:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Field length'
                      FDEC:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Number of decimal places'
                      FOLEN:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Output length'
                      FCUR:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Currency specification'
                      FADD:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Internal field'
                      FDESC:
                        type: string
                        maxLength: 40
                        description: 'SAP Query (L): Field description'
                      FNAME:
                        type: string
                        maxLength: 30
                        description: 'SAP Query (L): Original field name'
                      FCOL:
                        type: string
                        maxLength: 30
                        description: 'SAP Query (L): One-line original field header'
                      FNAMENEW:
                        type: string
                        maxLength: 70
                        description: 'SAP Query (L): Name of original field (new length)'
                      FNAMEINT:
                        type: string
                        maxLength: 30
                        description: 'SAP Query (L): Name in the database table'
                      FKEY:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Key field'
                      FGTYP:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Type of graphic display'
                      FNZERO:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Display without zeroes'
                      FSUM:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Totaling field'
                      FSONLY:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Sorting field without display'
                      FSORT:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Sorting level'
                      FSODS:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Sort descending'
                      FSUBT:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Subtotal'
                      FLPOS:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Field position (long)'
                      FNUMB:
                        type: string
                        maxLength: 2
                        description: 'SAP Query (L): Functional group name'
                      FNUMBT:
                        type: string
                        maxLength: 24
                        description: 'SAP Query (L): Field group text'
                      FNOSUM:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Field cannot be summarized'
                      FSONP:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): New Page when sorting'
                SELECTION_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      SELNAME:
                        type: string
                        maxLength: 8
                        description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                      KIND:
                        type: string
                        maxLength: 1
                        description: 'ABAP: Type of selection'
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'ABAP: ID: I/E (include/exclude values)'
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'ABAP: Selection option (EQ/BT/CP/...)'
                      LOW:
                        type: string
                        maxLength: 45
                        description: 'ABAP/4: Selection value (LOW or HIGH value, external format)'
                      HIGH:
                        type: string
                        maxLength: 45
                        description: 'ABAP/4: Selection value (LOW or HIGH value, external format)'
              required:
              - QUERY
              - USERGROUP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LISTTEXT:
                    type: string
                    maxLength: 60
                  LIST_ID:
                    type: string
                    maxLength: 3
                  PROGRAM:
                    type: string
                    maxLength: 40
                  USED_VARIANT:
                    type: string
                    maxLength: 14
                  FPAIRS:
                    type: array
                    items:
                      type: object
                      properties:
                        INDEX_A:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Field position (long)'
                        INDEX_U:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Field position (long)'
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Currency specification'
                  LDATA:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 1024
                          description: 'SAP Query (L): Data line for download to memory'
                  LISTDESC:
                    type: array
                    items:
                      type: object
                      properties:
                        LID:
                          type: string
                          maxLength: 3
                          description: 'SAP Query (L): List ID'
                        FPOS:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Field position'
                        FCONT:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Number of next line'
                        FCURPOS:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Field start position in list line'
                        FGRAF:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Used as graphic text'
                        FTYP:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Field type'
                        FLEN:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Field length'
                        FDEC:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Number of decimal places'
                        FOLEN:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Output length'
                        FCUR:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Currency specification'
                        FADD:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Internal field'
                        FDESC:
                          type: string
                          maxLength: 40
                          description: 'SAP Query (L): Field description'
                        FNAME:
                          type: string
                          maxLength: 30
                          description: 'SAP Query (L): Original field name'
                        FCOL:
                          type: string
                          maxLength: 30
                          description: 'SAP Query (L): One-line original field header'
                        FNAMENEW:
                          type: string
                          maxLength: 70
                          description: 'SAP Query (L): Name of original field (new length)'
                        FNAMEINT:
                          type: string
                          maxLength: 30
                          description: 'SAP Query (L): Name in the database table'
                        FKEY:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Key field'
                        FGTYP:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Type of graphic display'
                        FNZERO:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Display without zeroes'
                        FSUM:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Totaling field'
                        FSONLY:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Sorting field without display'
                        FSORT:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Sorting level'
                        FSODS:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Sort descending'
                        FSUBT:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Subtotal'
                        FLPOS:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Field position (long)'
                        FNUMB:
                          type: string
                          maxLength: 2
                          description: 'SAP Query (L): Functional group name'
                        FNUMBT:
                          type: string
                          maxLength: 24
                          description: 'SAP Query (L): Field group text'
                        FNOSUM:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Field cannot be summarized'
                        FSONP:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): New Page when sorting'
                  SELECTION_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        SELNAME:
                          type: string
                          maxLength: 8
                          description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                        KIND:
                          type: string
                          maxLength: 1
                          description: 'ABAP: Type of selection'
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'ABAP: ID: I/E (include/exclude values)'
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'ABAP: Selection option (EQ/BT/CP/...)'
                        LOW:
                          type: string
                          maxLength: 45
                          description: 'ABAP/4: Selection value (LOW or HIGH value, external format)'
                        HIGH:
                          type: string
                          maxLength: 45
                          description: 'ABAP/4: Selection value (LOW or HIGH value, external format)'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
