openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWW_WI_REJECT:
    post:
      tags:
      - SWWA
      summary: Reject Work Item (Only Type W)
      operationId: /rfc/SWW_WI_REJECT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DEBUG_FLAG:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator Showing Whether Callback Synchronous (Debugging)
                DO_COMMIT:
                  type: string
                  default: X
                  maxLength: 1
                  description: Indicator for Control of Commit Logic
                IM_FUNCNAME:
                  type: string
                  maxLength: 30
                  description: Function Name that Is Logged
                NO_CALLBACK_ON_COMPLETION:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'Caution: Parameter Not Evaluated'
                PRECONDITIONS_CHECKED:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator for Control of Status Checks and Type Checks
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: Rejecting User
                WI_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
              required:
              - WI_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    type: object
                    properties:
                      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'
                      WORKAREA:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MESSAGE:
                        type: integer
                        format: int64
                        description: Message number
                      TEXT:
                        type: string
                        maxLength: 256
                        description: Error Message
                      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
                  SWF_RETURN:
                    type: object
                    properties:
                      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'
                      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'
                      WORKAREA:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MESSAGE:
                        type: integer
                        format: int64
                        description: Message number
                      MSGTYP:
                        type: string
                        maxLength: 1
                        description: Message Type
                      TEXT:
                        type: string
                        maxLength: 256
                        description: Error Message
                      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
                      EXC_CLSNAM:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      EDGE_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Workflow definition: Semantics of line  enumValues: A=Exception of BOR Object Type,E=Event (Only BOR Object Types),F=Workflow Exception (for Block Exception Handler),D=Deadline,X=Exception of Business Class,Y=Event (BOR, Business Classes, ...),R=Result'
                        enum:
                        - A
                        - E
                        - F
                        - D
                        - X
                        - Y
                        - R
                      SUBRC:
                        type: integer
                        format: int32
                        description: Return Value of ABAP Statements
                      GUID:
                        type: string
                        maxLength: 32
                        description: 'Workflow: Result GUID'
                  WI_RESULT:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      WI_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      WI_AAGENT:
                        type: string
                        maxLength: 12
                        description: Actual Agent of Work Item
                      WI_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Work item type  enumValues: E=Work Item that Waits for an Event (Wait Step),C=Work Item that Represents a Container Linkage,R=Work Item that Represents a Remote Work Item (http),F=Workflow (Also Subworkflow),X=Work Item that Represents a Block,B=Work Item for Background Step,A=Work Item that Represents a Work Queue,Q=Work Item that Represents a Dialog Block,W=Dialog Work Item; Represents a Single-Step Task,N=Notification Item (No Longer Used),P=Work Item that
                          Represents a Remote Work Item (Proxy WI),D=Deadline Work Item; Notification upon Missed Deadline'
                        enum:
                        - E
                        - C
                        - R
                        - F
                        - X
                        - B
                        - A
                        - Q
                        - W
                        - N
                        - P
                        - D
                      WI_CREATOR:
                        type: string
                        maxLength: 90
                        description: Creator of a work item
                      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
                      WI_DH_STAT:
                        type: integer
                        format: int64
                        description: 'Deadline Status of a Work Item  enumValues: 8996=Latest Start,8990=Requested Start,8998=Latest End,0000=Deadline Not Yet Reached,8997=Requested End'
                        enum:
                        - '8996'
                        - '8990'
                        - '8998'
                        - '0000'
                        - '8997'
                      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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
