openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAP_WAPI_WORKITEM_COMPLETE:
    post:
      tags:
      - SWRR
      operationId: /rfc/SAP_WAPI_WORKITEM_COMPLETE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTUAL_AGENT:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: Current User
                DO_CALLBACK_IN_BACKGROUND:
                  type: string
                  default: X
                  maxLength: 1
                  description: Execute Commit
                DO_COMMIT:
                  type: string
                  default: X
                  maxLength: 1
                  description: Execute Commit
                IFS_XML_CONTAINER:
                  type: string
                  format: byte
                  description: Execute Commit
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                SET_OBSOLET:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                WORKITEM_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
                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
                SIMPLE_CONTAINER:
                  type: array
                  items:
                    type: object
                    properties:
                      ELEMENT:
                        type: string
                        maxLength: 32
                        description: Element
                      VALUE:
                        type: string
                        maxLength: 255
                        description: Character value
              required:
              - WORKITEM_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_STATUS:
                    type: string
                    maxLength: 12
                    description: Processing Status of a Work Item
                  RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return Value (0 - 2)
                  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
                  SIMPLE_CONTAINER:
                    type: array
                    items:
                      type: object
                      properties:
                        ELEMENT:
                          type: string
                          maxLength: 32
                          description: Element
                        VALUE:
                          type: string
                          maxLength: 255
                          description: Character value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
