openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWW_WI_RETURN_READ:
    post:
      tags:
      - SWWA
      summary: Read Return Data of Work Item
      operationId: /rfc/SWW_WI_RETURN_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                WI_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
                WI_STATUS:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: Status of Work Item
              required:
              - WI_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  WI_RETURN:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      WI_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      CODE:
                        type: integer
                        format: int64
                        description: Exception for method
                      ERRORTYPE:
                        type: integer
                        format: int64
                        description: 'Error type  enumValues: 1=Application Error,2=System error,0=Temporary error'
                        enum:
                        - '1'
                        - '2'
                        - '0'
                      NAME:
                        type: string
                        maxLength: 20
                        description: Symbolic name for exception
                      WORKAREA:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MESSAGE:
                        type: integer
                        format: int64
                        description: Message number
                      VARIABLE1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      WI_ASD:
                        type: string
                        format: date
                        description: Current start date of work item
                      WI_AST:
                        type: string
                        maxLength: 6
                        description: Current start time of work item
                      WI_AED:
                        type: string
                        format: date
                        description: End Date of Work Item
                      WI_AET:
                        type: string
                        maxLength: 6
                        description: Current end time of work item
                      CATID:
                        type: string
                        maxLength: 2
                        description: 'Category of Objects in Persistent Object References  enumValues: NN=Category (still) Not Known - Internal use only!!!,BC=Instances of Business Classes (ABAP Objects),BO=Instances of BOR Object Types,CL=Instances of ABAP Objects Classes - Internal Use Only!'
                        enum:
                        - NN
                        - BC
                        - BO
                        - CL
                      EXCP_TYPE:
                        type: integer
                        format: int64
                        description: 'Workflow: Type of Exception  enumValues: 0000=Others,0001=Error in "Create Object",0003=Execution Stopped (Enqueued),0002=Execution Stopped (Suspended)'
                        enum:
                        - '0000'
                        - '0001'
                        - '0003'
                        - '0002'
                      EXC_CLSNAM:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      WI_ASTS:
                        type: integer
                        format: int64
                        description: 'Workflow: Start Time Time Stamp'
                      WI_AETS:
                        type: integer
                        format: int64
                        description: 'Workflow: Completion Time Stamp'
                      GUID:
                        type: string
                        maxLength: 32
                        description: 'Workflow: Result GUID'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
