openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWW_RI_CALLBACK_REMOTE_RESULT:
    post:
      tags:
      - SWWR
      operationId: /rfc/SWW_RI_CALLBACK_REMOTE_RESULT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CALLED_IN_BACKGROUND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator Showing Whether FM Called in Background
                DEBUG_FLAG:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator for Control of Synchronous Callback
                IM_LOG_USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: Logon name of user
                IM_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'
                IM_WI_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
              required:
              - IM_WI_ID
      responses:
        '200':
          description: OK
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
