SHARE
TWEET

Untitled

a guest Nov 15th, 2019 267 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REPORT zwf_test.
  2.  
  3. DATA: et_workflist           TYPE TABLE OF swr_wihdr,
  4.       et_im_task_filter      TYPE  swrttask,
  5.       em_im_status_filter    TYPE swrtstatus,
  6.       et_worklist_attributes TYPE TABLE OF swr_wiaddattr.
  7.  
  8.  
  9. APPEND VALUE #( wi_rh_task = 'TS96000355' ) TO et_im_task_filter.
  10.  
  11. CLEAR: et_workflist, et_worklist_attributes.
  12.  
  13. CALL FUNCTION 'SAP_WAPI_CREATE_WORKLIST'
  14.   EXPORTING
  15.     user                 = sy-uname
  16.     language             = sy-langu
  17.     translate_wi_text    = abap_false
  18.     passive_substitution = abap_true
  19.     im_task_filter       = et_im_task_filter
  20. *    im_status_filter     = em_im_status_filter
  21.   TABLES
  22.     worklist             = et_workflist
  23.     worklist_attributes  = et_worklist_attributes.
  24.  
  25. IF sy-subrc EQ 0.
  26.  
  27. 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