openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TH_SAP_LOGIN:
    post:
      tags:
      - THFB
      operationId: /rfc/TH_SAP_LOGIN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                TCODE:
                  type: string
                  default: '    '
                  maxLength: 20
                  description: Transaction to be performed
                USER_KEY:
                  type: string
                  maxLength: 512
                  description: User key for remote logon
                USER_KEY_LENGTH:
                  type: integer
                  format: int32
                  default: 0
                  description: User key for remote logon
                USE_BDC:
                  type: integer
                  format: int32
                  default: 0
                  description: User key for remote logon
                BDCTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      PROGRAM:
                        type: string
                        maxLength: 40
                        description: BDC module pool
                      DYNPRO:
                        type: integer
                        format: int64
                        description: BDC Screen number
                      DYNBEGIN:
                        type: string
                        maxLength: 1
                        description: BDC screen start
                      FNAM:
                        type: string
                        maxLength: 132
                        description: Field name
                      FVAL:
                        type: string
                        maxLength: 132
                        description: BDC field value
              required:
              - USER_KEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BDCTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        PROGRAM:
                          type: string
                          maxLength: 40
                          description: BDC module pool
                        DYNPRO:
                          type: integer
                          format: int64
                          description: BDC Screen number
                        DYNBEGIN:
                          type: string
                          maxLength: 1
                          description: BDC screen start
                        FNAM:
                          type: string
                          maxLength: 132
                          description: Field name
                        FVAL:
                          type: string
                          maxLength: 132
                          description: BDC field value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
