Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Likes
6,233

More than once, I was asked for a quick and easy solution to let a “super-user”  manage the user substitutions of his collegues in the SAP Business Workplace. The “super-user” has not to be intended as administrator or a technical user, it can be the responsible of an office.

The following code is an example of how to handle this requirement :

*&---------------------------------------------------------------------*
*& Report  Z_SET_SUBSTITUTE
*&
*&---------------------------------------------------------------------*

REPORT  Z_SET_SUBSTITUTE.
PARAMETERS p_user type sy-uname OBLIGATORY.
START-OF-SELECTION.
CALL FUNCTION 'SWL_SUBSTITUTION_DEFINE'
EXPORTING
   USER         
= p_user


And this is the result :

Note that it’s the same application used to maintain your substitute in SBWP transaction (menu voice Settings - Workflow settings - Maintain substitute).


2 Comments