openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/LWE_COMPLETE_ITEM:
    post:
      tags:
      - LWE_RUNTIME
      operationId: /rfc/LWE_COMPLETE_ITEM
      requestBody:
        content:
          application/json:
            schema:
              properties:
                WF_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
                WORKITEM_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
                LWE_STATUS:
                  type: array
                  items:
                    type: object
                    properties:
                      WI_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      WI_STAT:
                        type: string
                        maxLength: 12
                        description: 'Processing Status of a Work Item  enumValues: STARTED=In Process,CANCELLED=Logically Deleted,READY=Ready,EXCPHANDLR=Exception Being Handled,COMMITTED=Executed (Only If Expl. End Confirmation Is Expected),WAITING=Waiting (Also: Work Items in Resubmission),COMPLETED=Completed,ERROR=Error,EXCPCAUGHT=Exception Caught,CHECKED=In Preparation,SELECTED=Reserved'
                        enum:
                        - STARTED
                        - CANCELLED
                        - READY
                        - EXCPHANDLR
                        - COMMITTED
                        - WAITING
                        - COMPLETED
                        - ERROR
                        - EXCPCAUGHT
                        - CHECKED
                        - SELECTED
                      NODE_ID:
                        type: integer
                        format: int64
                        description: Node Number
                      LABEL_ID:
                        type: string
                        maxLength: 32
                        description: Character field, length 32
                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
              required:
              - WF_ID
              - WORKITEM_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FLOWITEM_STATUS:
                    type: string
                    maxLength: 12
                    description: Processing Status of a Work Item
                  RETCODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  LWE_STATUS:
                    type: array
                    items:
                      type: object
                      properties:
                        WI_ID:
                          type: integer
                          format: int64
                          description: Work item ID
                        WI_STAT:
                          type: string
                          maxLength: 12
                          description: 'Processing Status of a Work Item  enumValues: STARTED=In Process,CANCELLED=Logically Deleted,READY=Ready,EXCPHANDLR=Exception Being Handled,COMMITTED=Executed (Only If Expl. End Confirmation Is Expected),WAITING=Waiting (Also: Work Items in Resubmission),COMPLETED=Completed,ERROR=Error,EXCPCAUGHT=Exception Caught,CHECKED=In Preparation,SELECTED=Reserved'
                          enum:
                          - STARTED
                          - CANCELLED
                          - READY
                          - EXCPHANDLR
                          - COMMITTED
                          - WAITING
                          - COMPLETED
                          - ERROR
                          - EXCPCAUGHT
                          - CHECKED
                          - SELECTED
                        NODE_ID:
                          type: integer
                          format: int64
                          description: Node Number
                        LABEL_ID:
                          type: string
                          maxLength: 32
                          description: Character field, length 32
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
