openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWF_CREATE_EVENT:
    post:
      tags:
      - SWF_WSC_RFC
      summary: 'Workflow interfaces: Create event'
      operationId: /rfc/SWF_CREATE_EVENT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COMMIT_WORK:
                  type: string
                  default: X
                  maxLength: 1
                  description: Do not trigger "Commit Work" at end
                EVENT:
                  type: string
                  maxLength: 32
                  description: Event
                EVENT_LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Event language
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                OBJECT_KEY:
                  type: string
                  maxLength: 70
                  description: Business Object Repository object key
                OBJECT_TYPE:
                  type: string
                  maxLength: 10
                  description: Business Object Repository object type
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: SAP System, User Logon Name
                XML_CONTAINER:
                  type: array
                  items:
                    type: string
                    format: byte
                    description: 'Container: Line of Binary Table for XML'
                XML_SIZE:
                  type: integer
                  format: int32
                  description: Size in Bytes
                MESSAGE_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      MSG_TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      LINE:
                        type: string
                        maxLength: 273
                        description: Text line for message
                MESSAGE_STRUCT:
                  type: array
                  items:
                    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:
              - EVENT
              - OBJECT_KEY
              - OBJECT_TYPE
              - XML_CONTAINER
              - XML_SIZE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EVENT_ID:
                    type: integer
                    format: int64
                    description: Event ID
                  RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return code (0 - 3, 999)
                  MESSAGE_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSG_TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        LINE:
                          type: string
                          maxLength: 273
                          description: Text line for message
                  MESSAGE_STRUCT:
                    type: array
                    items:
                      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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
