openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IDOC_ERROR_WORKFLOW_START:
    post:
      tags:
      - EDIW
      operationId: /rfc/IDOC_ERROR_WORKFLOW_START
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DOCNUM:
                  type: integer
                  format: int64
                  description: IDoc number created for system error process
                EVENTCODE:
                  type: string
                  maxLength: 4
                  description: Process code - must exist in TEDE5
                MESS:
                  type: object
                  properties:
                    MSGID:
                      type: string
                      maxLength: 20
                      description: Message Class
                    MSGTY:
                      type: string
                      maxLength: 1
                      description: Message Type
                    MSGNO:
                      type: integer
                      format: int64
                      description: Message Number
                    MSGV1:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV2:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV3:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV4:
                      type: string
                      maxLength: 50
                      description: Message Variable
                NASTKEY:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: Error message for process code 'EDIM'
                OTYPE:
                  type: string
                  default: ' '
                  maxLength: 10
                  description: Error message for process code 'EDIM'
                PARTNER:
                  type: string
                  default: ' '
                  maxLength: 51
                  description: Error message for process code 'EDIM'
                STATUSMESS:
                  type: object
                  properties:
                    MSGID:
                      type: string
                      maxLength: 20
                      description: Message Class
                    MSGTY:
                      type: string
                      maxLength: 1
                      description: Message Type
                    MSGNO:
                      type: integer
                      format: int64
                      description: Message Number
                    MSGV1:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV2:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV3:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV4:
                      type: string
                      maxLength: 50
                      description: Message Variable
              required:
              - DOCNUM
              - EVENTCODE
      responses:
        '200':
          description: OK
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
