openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAP_WAPI_COUNT_WORKITEMS:
    post:
      tags:
      - SWRC
      summary: 'Workflow Interfaces: Number of Work Items for User'
      operationId: /rfc/SAP_WAPI_COUNT_WORKITEMS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DETAIL_LEVEL:
                  type: integer
                  format: int64
                  default: 0
                  description: Detail Level (0, 1, 2)
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP System, Current Language
                REFRESH_INTERVAL:
                  type: integer
                  format: int64
                  default: 600
                  description: Refresh Interval (in Seconds)
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: User
                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
                MESSAGE_STRUCT:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                TASK_FILTER_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      TASK:
                        type: string
                        maxLength: 14
                        description: Task ID
                WORKITEMS_PER_TASK:
                  type: array
                  items:
                    type: object
                    properties:
                      TASK:
                        type: string
                        maxLength: 14
                        description: Task ID
                      WI_COUNT:
                        type: integer
                        format: int32
                        description: 'Workflow interfaces: Counter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return Code (0, 1, 2, 3, 999)
                  WI_COUNT:
                    type: integer
                    format: int32
                    description: Number of Work Items in Inbox
                  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
                  MESSAGE_STRUCT:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                  TASK_FILTER_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        TASK:
                          type: string
                          maxLength: 14
                          description: Task ID
                  WORKITEMS_PER_TASK:
                    type: array
                    items:
                      type: object
                      properties:
                        TASK:
                          type: string
                          maxLength: 14
                          description: Task ID
                        WI_COUNT:
                          type: integer
                          format: int32
                          description: 'Workflow interfaces: Counter'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
