SHARE
TWEET

Untitled

a guest Nov 15th, 2019 139 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REPORT zwf_test.

DATA: et_workflist           TYPE TABLE OF swr_wihdr,
      et_im_task_filter      TYPE  swrttask,
      em_im_status_filter    TYPE swrtstatus,
      et_worklist_attributes TYPE TABLE OF swr_wiaddattr.


APPEND VALUE #( wi_rh_task = 'TS96000355' ) TO et_im_task_filter.

CLEAR: et_workflist, et_worklist_attributes.

CALL FUNCTION 'SAP_WAPI_CREATE_WORKLIST'
  EXPORTING
    user                 = sy-uname
    language             = sy-langu
    translate_wi_text    = abap_false
    passive_substitution = abap_true
    im_task_filter       = et_im_task_filter
*    im_status_filter     = em_im_status_filter
  TABLES
    worklist             = et_workflist
    worklist_attributes  = et_worklist_attributes.

IF sy-subrc EQ 0.

ENDIF.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top