openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSDAW_TABLE_SELECT:
    post:
      tags:
      - RSDAW_NEARLINE_SERVER
      operationId: /rfc/RSDAW_TABLE_SELECT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_OWNER:
                  type: string
                  maxLength: 30
                I_PACKAGE_SIZE:
                  type: integer
                  format: int32
                I_TABLE_NAME:
                  type: string
                  maxLength: 30
                I_T_QUERY_COLUMN_DEFINITIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      POSITION:
                        type: integer
                        format: int32
                        description: 'BW Nearline Interface: Position of Element'
                      COLUMN_NAME:
                        type: string
                        maxLength: 30
                        description: 'BW Nearline Interface: Column Name'
                      AGGREGATE_FUNCTION:
                        type: string
                        maxLength: 10
                        description: 'BW Nearline Interface: Aggregation Function'
                      DISTINCT:
                        type: string
                        maxLength: 1
                        description: 'BW Nearline Interface: Indicator; Distinct Values Only'
                      COLUMN_ALIAS:
                        type: string
                        maxLength: 30
                        description: 'BW Nearline Interface: Alias Name for a Column'
                I_WHERE_CLAUSE:
                  type: string
              required:
              - I_OWNER
              - I_PACKAGE_SIZE
              - I_TABLE_NAME
              - I_T_QUERY_COLUMN_DEFINITIONS
              - I_WHERE_CLAUSE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_CONTEXT_CONTAINER:
                    type: string
                    format: byte
                  E_END_OF_DATA:
                    type: string
                    maxLength: 1
                  E_T_DATA_RECORDS:
                    type: array
                    items:
                      type: string
                      description: 'BW Nearline Service: Data Record in CSV Format'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
