openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSAQ_REMOTE_QUERY_FIELDLIST:
    post:
      tags:
      - AQRC
      operationId: /rfc/RSAQ_REMOTE_QUERY_FIELDLIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                QUERY:
                  type: string
                  maxLength: 14
                  description: Query
                USERGROUP:
                  type: string
                  maxLength: 12
                  description: User Group
                WORKSPACE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Work Area
                FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      LID:
                        type: string
                        maxLength: 3
                        description: 'SAP Query (L): List ID'
                      LINE:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Field position'
                      POS:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Field position'
                      SORT:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Sorting level'
                      NAME:
                        type: string
                        maxLength: 70
                        description: 'SAP Query (S): Field name (table field)'
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Field type'
                      OLENG:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Output length'
                      DECIMALS:
                        type: integer
                        format: int64
                        description: 'SAP Query (L): Number of decimal places'
                      CURRY:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Currency specification'
                      DESCENDING:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (L): Sort descending'
                SEL_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      KIND:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (S): Flag'
                      SPNAME:
                        type: string
                        maxLength: 8
                        description: 'SAP Query (S): Name of parameter/select-option'
                      FNAME:
                        type: string
                        maxLength: 70
                        description: 'SAP Query (S): Field name (table field)'
                      FTEXT:
                        type: string
                        maxLength: 60
                        description: 'SAP Query (S): Long text for a field'
                      STDSEL:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (S): Flag'
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (S): ABAP type'
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: 'SAP Query (S): Length'
                      CHE_RAD:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (S): Flag'
                      RGROUP:
                        type: string
                        maxLength: 4
                        description: 'SAP Query (L): Group name (selection screen)'
                      NODISPLAY:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (S): Flag'
                      OBLIGATORY:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (S): Flag'
              required:
              - QUERY
              - USERGROUP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        LID:
                          type: string
                          maxLength: 3
                          description: 'SAP Query (L): List ID'
                        LINE:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Field position'
                        POS:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Field position'
                        SORT:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Sorting level'
                        NAME:
                          type: string
                          maxLength: 70
                          description: 'SAP Query (S): Field name (table field)'
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Field type'
                        OLENG:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Output length'
                        DECIMALS:
                          type: integer
                          format: int64
                          description: 'SAP Query (L): Number of decimal places'
                        CURRY:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Currency specification'
                        DESCENDING:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (L): Sort descending'
                  SEL_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        KIND:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (S): Flag'
                        SPNAME:
                          type: string
                          maxLength: 8
                          description: 'SAP Query (S): Name of parameter/select-option'
                        FNAME:
                          type: string
                          maxLength: 70
                          description: 'SAP Query (S): Field name (table field)'
                        FTEXT:
                          type: string
                          maxLength: 60
                          description: 'SAP Query (S): Long text for a field'
                        STDSEL:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (S): Flag'
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (S): ABAP type'
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: 'SAP Query (S): Length'
                        CHE_RAD:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (S): Flag'
                        RGROUP:
                          type: string
                          maxLength: 4
                          description: 'SAP Query (L): Group name (selection screen)'
                        NODISPLAY:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (S): Flag'
                        OBLIGATORY:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (S): Flag'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
