openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RFC_GET_STRUCTURE_DEFINITION_P:
    post:
      tags:
      - RFC1
      operationId: /rfc/RFC_GET_STRUCTURE_DEFINITION_P
      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: int64
                        description: Position of the field in the table
                      OFFSET:
                        type: integer
                        format: int64
                        description: Offset of a field
                      INTLENGTH:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      DECIMALS:
                        type: integer
                        format: int64
                        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: int64
                    description: Table length 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: int64
                          description: Position of the field in the table
                        OFFSET:
                          type: integer
                          format: int64
                          description: Offset of a field
                        INTLENGTH:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        EXID:
                          type: string
                          maxLength: 1
                          description: ABAP Data Type
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
