openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/STFC_STRUCTURE:
    post:
      tags:
      - STFC
      operationId: /rfc/STFC_STRUCTURE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IMPORTSTRUCT:
                  type: object
                  properties:
                    RFCFLOAT:
                      type: number
                      description: Float field
                    RFCCHAR1:
                      type: string
                      maxLength: 1
                      description: Character field of length 1
                    RFCINT2:
                      type: integer
                      format: int32
                      description: INT2 field
                    RFCINT1:
                      type: integer
                      format: int32
                      description: INT1 field
                    RFCCHAR4:
                      type: string
                      maxLength: 4
                      description: Character field of length 4
                    RFCINT4:
                      type: integer
                      format: int32
                      description: INT4 field
                    RFCHEX3:
                      type: string
                      format: byte
                      description: HEX field of length 3
                    RFCCHAR2:
                      type: string
                      maxLength: 2
                      description: Character field of length 2
                    RFCTIME:
                      type: string
                      maxLength: 6
                      description: Validity Period
                    RFCDATE:
                      type: string
                      format: date
                      description: Date field
                    RFCDATA1:
                      type: string
                      maxLength: 50
                      description: Comment
                    RFCDATA2:
                      type: string
                      maxLength: 50
                      description: Comment
                RFCTABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      RFCFLOAT:
                        type: number
                        description: Float field
                      RFCCHAR1:
                        type: string
                        maxLength: 1
                        description: Character field of length 1
                      RFCINT2:
                        type: integer
                        format: int32
                        description: INT2 field
                      RFCINT1:
                        type: integer
                        format: int32
                        description: INT1 field
                      RFCCHAR4:
                        type: string
                        maxLength: 4
                        description: Character field of length 4
                      RFCINT4:
                        type: integer
                        format: int32
                        description: INT4 field
                      RFCHEX3:
                        type: string
                        format: byte
                        description: HEX field of length 3
                      RFCCHAR2:
                        type: string
                        maxLength: 2
                        description: Character field of length 2
                      RFCTIME:
                        type: string
                        maxLength: 6
                        description: Validity Period
                      RFCDATE:
                        type: string
                        format: date
                        description: Date field
                      RFCDATA1:
                        type: string
                        maxLength: 50
                        description: Comment
                      RFCDATA2:
                        type: string
                        maxLength: 50
                        description: Comment
              required:
              - IMPORTSTRUCT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ECHOSTRUCT:
                    type: object
                    properties:
                      RFCFLOAT:
                        type: number
                        description: Float field
                      RFCCHAR1:
                        type: string
                        maxLength: 1
                        description: Character field of length 1
                      RFCINT2:
                        type: integer
                        format: int32
                        description: INT2 field
                      RFCINT1:
                        type: integer
                        format: int32
                        description: INT1 field
                      RFCCHAR4:
                        type: string
                        maxLength: 4
                        description: Character field of length 4
                      RFCINT4:
                        type: integer
                        format: int32
                        description: INT4 field
                      RFCHEX3:
                        type: string
                        format: byte
                        description: HEX field of length 3
                      RFCCHAR2:
                        type: string
                        maxLength: 2
                        description: Character field of length 2
                      RFCTIME:
                        type: string
                        maxLength: 6
                        description: Validity Period
                      RFCDATE:
                        type: string
                        format: date
                        description: Date field
                      RFCDATA1:
                        type: string
                        maxLength: 50
                        description: Comment
                      RFCDATA2:
                        type: string
                        maxLength: 50
                        description: Comment
                  RESPTEXT:
                    type: string
                    maxLength: 255
                    description: Exporting response message
                  RFCTABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        RFCFLOAT:
                          type: number
                          description: Float field
                        RFCCHAR1:
                          type: string
                          maxLength: 1
                          description: Character field of length 1
                        RFCINT2:
                          type: integer
                          format: int32
                          description: INT2 field
                        RFCINT1:
                          type: integer
                          format: int32
                          description: INT1 field
                        RFCCHAR4:
                          type: string
                          maxLength: 4
                          description: Character field of length 4
                        RFCINT4:
                          type: integer
                          format: int32
                          description: INT4 field
                        RFCHEX3:
                          type: string
                          format: byte
                          description: HEX field of length 3
                        RFCCHAR2:
                          type: string
                          maxLength: 2
                          description: Character field of length 2
                        RFCTIME:
                          type: string
                          maxLength: 6
                          description: Validity Period
                        RFCDATE:
                          type: string
                          format: date
                          description: Date field
                        RFCDATA1:
                          type: string
                          maxLength: 50
                          description: Comment
                        RFCDATA2:
                          type: string
                          maxLength: 50
                          description: Comment
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
