openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWN_UWL_GET_WORKLIST:
    post:
      tags:
      - SWN_UWL_WL
      operationId: /rfc/SWN_UWL_GET_WORKLIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IM_ITEM_TYPE_FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      ITEM_TYPE:
                        type: string
                        maxLength: 255
                        description: UWL type, id and general name
                IM_STATUS_FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      WI_STAT:
                        type: string
                        maxLength: 12
                        description: Processing Status of a Work Item
                IM_TASK_FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      WI_RH_TASK:
                        type: string
                        maxLength: 14
                        description: Task ID
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                TRANSLATE_WI_TEXT:
                  type: string
                  default: ' '
                  maxLength: 1
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                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
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DEADLINE_ITEMS:
                    type: array
                    items:
                      type: object
                      properties:
                        USER_ID:
                          type: string
                          maxLength: 12
                          description: User Name
                        EXTERNAL_ID:
                          type: string
                          maxLength: 300
                          description: 'UWL: External id of item from provider'
                        EXTERNAL_TYPE:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        SUBJECT:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        CREATED_TIME:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
                        CREATOR_ID:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        COMPLETED_FLAG:
                          type: string
                          maxLength: 1
                          description: UWL flag
                        DUE_TIME:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
                        DESCRIPTION:
                          type: string
                          maxLength: 1024
                          description: UWL long string
                        EXECUTION_URL:
                          type: string
                          maxLength: 1024
                          description: UWL Execution Url
                        EXTERNAL_OBJECT_ID:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        ESCALATED_BY:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        ITEM_TYPE:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        ATTACHMENT_COUNT:
                          type: integer
                          format: int32
                          description: UWL count
                        MEMO_COUNT:
                          type: integer
                          format: int32
                          description: UWL count
                        PRIORITY:
                          type: string
                          maxLength: 12
                          description: UWL short string
                        STATUS:
                          type: string
                          maxLength: 12
                          description: UWL short string
                        SUBSTITUTED_FOR:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        FORWARDED_BY:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        ADDTL_ATTRIBUTES:
                          type: array
                          items:
                            type: object
                            properties:
                              NAME:
                                type: string
                                maxLength: 32
                                description: BOR attribute name
                              VALUE:
                                type: string
                                maxLength: 255
                                description: UWL attribute value
                              TYPE:
                                type: string
                                maxLength: 1
                                description: UWL char
                  RETURN_CODE:
                    type: integer
                    format: int32
                  WORKLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        USER_ID:
                          type: string
                          maxLength: 12
                          description: User Name
                        EXTERNAL_ID:
                          type: string
                          maxLength: 300
                          description: 'UWL: External id of item from provider'
                        EXTERNAL_TYPE:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        SUBJECT:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        CREATED_TIME:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
                        CREATOR_ID:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        COMPLETED_FLAG:
                          type: string
                          maxLength: 1
                          description: UWL flag
                        DUE_TIME:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
                        DESCRIPTION:
                          type: string
                          maxLength: 1024
                          description: UWL long string
                        EXECUTION_URL:
                          type: string
                          maxLength: 1024
                          description: UWL Execution Url
                        EXTERNAL_OBJECT_ID:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        ESCALATED_BY:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        ITEM_TYPE:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        ATTACHMENT_COUNT:
                          type: integer
                          format: int32
                          description: UWL count
                        MEMO_COUNT:
                          type: integer
                          format: int32
                          description: UWL count
                        PRIORITY:
                          type: string
                          maxLength: 12
                          description: UWL short string
                        STATUS:
                          type: string
                          maxLength: 12
                          description: UWL short string
                        SUBSTITUTED_FOR:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        FORWARDED_BY:
                          type: string
                          maxLength: 255
                          description: UWL type, id and general name
                        ADDTL_ATTRIBUTES:
                          type: array
                          items:
                            type: object
                            properties:
                              NAME:
                                type: string
                                maxLength: 32
                                description: BOR attribute name
                              VALUE:
                                type: string
                                maxLength: 255
                                description: UWL attribute value
                              TYPE:
                                type: string
                                maxLength: 1
                                description: UWL char
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
