openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWW_WI_FORWARD:
    post:
      tags:
      - SWWA
      summary: Forward Work Item (All Types)
      operationId: /rfc/SWW_WI_FORWARD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ADMIN_MODE_NO_X_CHECK:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'Admin Mode: No Execution Check of WI'
                CURRENT_USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: User Forwarding Work Item
                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
                PRECONDITIONS_CHECKED:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator for Control of Status Checks and Type Checks
                WI_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
                NEW_AGENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: string
                        maxLength: 12
                        description: Agent ID in Organizational Management
              required:
              - WI_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_STATUS:
                    type: string
                    maxLength: 12
                    description: New Status of Work Item
                  NEW_AGENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: string
                          maxLength: 12
                          description: Agent ID in Organizational Management
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
