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
PARAMETERS p_user type sy–uname OBLIGATORY.
CALL FUNCTION ‘SWL_SUBSTITUTION_DEFINE’
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).