openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/S_OSP_WF_GET_NOTIFICATIONS:
    post:
      tags:
      - S_OSP_WF_PATTERN_RUNTIME
      summary: FM to get Work Item Nofitications using Extended Notif framework
      operationId: /rfc/S_OSP_WF_GET_NOTIFICATIONS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_COMPLETED_WORK_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'
                  ET_NEW_WORK_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
                  ET_RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
