openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RFC_GET_STRUCTURE_DEFINITION:
    post:
      tags:
      - RFC1
      operationId: /rfc/RFC_GET_STRUCTURE_DEFINITION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                TABNAME:
                  type: string
                  maxLength: 30
                  description: Table name
                UCLEN:
                  type: string
                  format: byte
                  description: Table name
                FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      POSITION:
                        type: integer
                        format: int32
                        description: Position of field in structure (from 1)
                      OFFSET:
                        type: integer
                        format: int32
                        description: Field offset from beginning of structure (from 0)
                      INTLENGTH:
                        type: integer
                        format: int32
                        description: Internal length of field
                      DECIMALS:
                        type: integer
                        format: int32
                        description: Number of decimal places
                      EXID:
                        type: string
                        maxLength: 1
                        description: ABAP Data Type
              required:
              - TABNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TABLENGTH:
                    type: integer
                    format: int32
                    description: Length of the table in bytes
                  FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        POSITION:
                          type: integer
                          format: int32
                          description: Position of field in structure (from 1)
                        OFFSET:
                          type: integer
                          format: int32
                          description: Field offset from beginning of structure (from 0)
                        INTLENGTH:
                          type: integer
                          format: int32
                          description: Internal length of field
                        DECIMALS:
                          type: integer
                          format: int32
                          description: Number of decimal places
                        EXID:
                          type: string
                          maxLength: 1
                          description: ABAP Data Type
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
