cancel
Showing results for 
Search instead for 
Did you mean: 

SAP File Lifecycle Management - Can I restrict users from accessing FLM data through SBWP

0 Kudos

Is it possible to restrict users from accessing FLM data through SBWP?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Yes, it is possible to restrict users from accessing FLM data through SAP Business Workplace (SBWP).

Technically any FLM user can access FLM data through SBWP, however the users should NOT access data through SBWP.  Hence, you should restrict this access. You can restrict access by implementing a BADI.  Below are the details of implementing the BADI:

WF_BWP_SELECT_FILTER - BAdI Definition Name

IF_EX_WF_BWP_SELECT_FILTER~APPLY_FILTER – Method

Sample code: In this method all the tasks that are linked to FLM needs to be hardcoded and sent to the Exporting parameter

data: lr_task type range of sww_task.

  data: ls_task like line of lr_task.

  data: lt_worklist type swrtwihdr.

  data: lt_worklist_random type swrtwihdr.

  data: lt_task type standard table of sww_task.

  data: l_task type sww_task.

  data: l_task1 type sww_task.

  data: l_count type sytabix.

  data: l_max_ready type sytabix.

  data: l_min_threshold type sytabix.

  data: l_lines type sytabix.

  data: l_seed type i.

  data: lh_excp type ref to cx_abap_random.                 "#EC NEEDED

  data: lh_random type ref to cl_abap_random_int.

  data: l_max type i.

  data: l_index type sytabix.

  field-symbols: <swr_wihdr> type swr_wihdr.

  l_max_ready = 5.

  l_min_threshold = l_max_ready.

  l_task = 'TS78907914'.

  l_task1 = 'TS78907915'.

  if l_max_ready is initial or l_min_threshold is initial or l_task is initial or l_task1 is initial.

    re_worklist = im_worklist.

  else.

    append l_task to lt_task.

    append l_task1 to lt_task.

    clear l_task.

    clear l_task1.

*- get all entries which are not involved and move this entries

*- to the export worklist

    clear lr_task.

    ls_task-sign = 'I'.

    ls_task-option = 'EQ'.

    loop at lt_task into l_task.

      ls_task-low = l_task.

      append ls_task to lr_task.

    endloop.

    lt_worklist = im_worklist.

    delete lt_worklist where wi_rh_task in lr_task.

    re_worklist = lt_worklist.

endif.