Skip to Content

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 syuname OBLIGATORY.
START-OF-SELECTION.
CALL FUNCTION ‘SWL_SUBSTITUTION_DEFINE’
EXPORTING
   USER         
= p_user


And this is the result :

Immagine1.jpg

Immagine2.jpg

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


To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Tomas Talpa

    I must be missing something, Gianluca — what are the benefits of this approach over simply giving them access to transaction RMPS_SET_SUBSTITUTE?

    Kind Regards

    TomT

    (0) 
    1. Gianluca Bonavitacola Post author

      Hi Tom,

         the idea was to find out something useful for someone who is not an administrator.

      A simple shell to the FM SWL_SUBSTITUTION_DEFINE can be a solution, maybe not the best one but it’s quick and easy.

      My sample wanted to show that the FM is “complete” in the substitution management. Maybe I did it in a wrong way. Thank you for your comment.

      Regards,

         Gianluca

      (0) 

Leave a Reply