SHARE
TWEET

Untitled

a guest Nov 14th, 2019 144 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 = 'TS00008267' ) TO et_im_task_filter.
  10. APPEND VALUE #( wi_stat = 'STARTED' ) TO em_im_status_filter.
  11.  
  12. CALL FUNCTION 'SAP_WAPI_CREATE_WORKLIST'
  13.   EXPORTING
  14.     user                = sy-uname
  15.     language            = sy-langu
  16.     translate_wi_text   = abap_false
  17.     im_task_filter      = et_im_task_filter
  18.     im_status_filter    = em_im_status_filter
  19.   TABLES
  20.     worklist            = et_workflist
  21.     worklist_attributes = et_worklist_attributes.
  22.  
  23. IF sy-subrc EQ 0.
  24.  
  25. 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