Skip to Content

Copy user documentation in su01 programmatically to another user

Hi All,pretty simple how to copy it to another user.

let me know for any Function Modules

screenshot-1.png (6.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Oct 23, 2019 at 08:37 AM

    "get the data from the User that we want.

     select single *
     from usdocu
     where bname eq @previous_username
     into @data(ls_docu).
    
    
     append ls_docu to lt_docu.
    
    
     loop at lt_docu assigning <lf_docu>.
     <lf_docu>-bname = lv_new_username.
     endloop.
    
    
     call function 'SUID_IDENTITY_SAVE_TO_DB'
     exporting
     it_usdocu_insert = lt_docu
     is_timestamp = ls_timestamp.
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 22, 2019 at 05:10 PM

    A quick search in Google with terms sap su01 documentation points to a lot of results and the first in the list is SU01 - Documentation Tab - Documentation for User. It has an accepted answer and the links to SAP help look quite promising (I cannot test the solution at the moment).

    Did you already try that?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 22, 2019 at 02:29 PM
    -1

    Hi,

    Please check the FMs in function group SU_USER. Copying the user may not be possible with one FM. You can use FMs to read the user and then pass the values to create user FM. It should help to achieve what you want to.

    Regards

    GK

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.