openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EUP_GENERATE_IFORM_WITH_FIELDS:
    post:
      tags:
      - GP_PROCESS_RUNTIME
      summary: Generate interactive form with fields.
      operationId: /rfc/EUP_GENERATE_IFORM_WITH_FIELDS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_ACCEPT_BY:
                  type: string
                  format: date
                  description: Field of type DATS
                IV_ANONYMOS:
                  type: string
                  maxLength: 1
                  description: Single-Character Flag
                IV_DELIVERY_CHANNEL:
                  type: string
                  description: Single-Character Flag
                IV_EXECUTOR:
                  type: string
                  maxLength: 12
                  description: User Name
                IV_GLOBAL_VERSION:
                  type: integer
                  format: int32
                  description: Natural number
                IV_LOCAL_VERSION:
                  type: integer
                  format: int32
                  description: Natural number
                IV_MESSAGE_ATTACHMENT_ONE:
                  type: object
                  properties:
                    CONTENT:
                      type: string
                      format: byte
                      description: ''
                    TYPE:
                      type: string
                      description: ''
                    FILE_NAME:
                      type: string
                      description: ''
                IV_MESSAGE_ATTACHMENT_TWO:
                  type: object
                  properties:
                    CONTENT:
                      type: string
                      format: byte
                      description: ''
                    TYPE:
                      type: string
                      description: ''
                    FILE_NAME:
                      type: string
                      description: ''
                IV_MESSAGE_FORM_FILE_NAME:
                  type: string
                  description: Single-Character Flag
                IV_RECIPIENT_ADDRESS:
                  type: string
                  description: Single-Character Flag
                IV_SYSTEM_ID:
                  type: string
                  maxLength: 8
                  description: Name of SAP R/3 System
                IV_TEMPLATE_ID:
                  type: string
                  maxLength: 32
                  description: GUID in 'CHAR' Format in Uppercase
                IT_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      LABEL_NAME:
                        type: string
                        maxLength: 255
                        description: ''
                      NAMESPACE:
                        type: string
                        maxLength: 255
                        description: ''
                      VALUE:
                        type: string
                        maxLength: 255
                        description: ''
                IT_MESSAGE_TEMPLATE_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 255
                        description: ''
                      VALUE:
                        type: string
                        maxLength: 1024
                        description: ''
              required:
              - IV_ACCEPT_BY
              - IV_ANONYMOS
              - IV_EXECUTOR
              - IV_GLOBAL_VERSION
              - IV_LOCAL_VERSION
              - IV_SYSTEM_ID
              - IV_TEMPLATE_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_FORM_DATA:
                    type: string
                    format: byte
                    description: Name of SAP R/3 System
                  EV_MIME_TYPE:
                    type: string
                    description: Name of SAP R/3 System
                  EV_TASK_ID:
                    type: string
                    maxLength: 32
                    description: GUID in 'CHAR' Format in Uppercase
                  IT_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        LABEL_NAME:
                          type: string
                          maxLength: 255
                          description: ''
                        NAMESPACE:
                          type: string
                          maxLength: 255
                          description: ''
                        VALUE:
                          type: string
                          maxLength: 255
                          description: ''
                  IT_MESSAGE_TEMPLATE_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 255
                          description: ''
                        VALUE:
                          type: string
                          maxLength: 1024
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
