Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modify SNC Name

Former Member
0 Likes
2,644

Hi All,

I was wondering, is there a Function Module or BAPI to change the SNC name of a user?

Many Thanks,

Colm

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
2,016

How about this?


  CALL FUNCTION 'BAPI_USER_CHANGE'
         EXPORTING
            username = v_bname       "User 
           snc           = wa_snc   "<<<<
           sncx        = wa_sncx  " <<<<
          TABLES
           return       = t_return.

a®

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
2,017

How about this?


  CALL FUNCTION 'BAPI_USER_CHANGE'
         EXPORTING
            username = v_bname       "User 
           snc           = wa_snc   "<<<<
           sncx        = wa_sncx  " <<<<
          TABLES
           return       = t_return.

a®

Read only

0 Likes
2,016

Hi Ars,

Thanks for the quick reply, you're solution nearly worked perfectly but not exactly.

Bear with me if you will:

Goto SU01

Enter a Username

Display

Click SNC tab

In the section:

"Other R/3 users with SNC names of same Value" you're code correctly changed the value for the client ran my program in. However it did not change it for the other clients.

So I ran the program in every client we have and in the section "Other R/3 users with SNC names of same Value" the values were changed for every client but if I look back at the "SNC data" section the "SNC name" still shows the old value.

Thanks for your help, any more would be greatly appreciated.

Colm

Read only

0 Likes
2,016

Hi Colm,

You might want to try using FMs from the function group SNCB

E.g. SNC_USER_CHANGE since these functions are purely for SNC modification.

Regards,

Aditya

Read only

0 Likes
2,016

Aditya,

Thank you for your suggestion. When I just used the SNC_USER_CHANGE there was no affect to the SNC name. However if I call BAPI_USER_CHANGE and then call SNC_USER_CHANGE the user name is changed in both "SNC data" and "Other R/3 users with SNC names of same value".

This is great, however I noticed one further place!

If I open my SAP Logon Pad and Double Click on DEV I am brought to the SAP SSO Logon Screen where I can select the client that I wish to logon to. On this screen there is a section called "SNC name" and in that section there is a value called "R/3 user" and that user name still contains the old SNC name.

Does anyone know where I can change this value!?

Many Thanks Again,

Colm

Read only

0 Likes
2,016

Turns out that was the value that was being pulled in from our Active Directory so everything is working correctly. Thanks again for all the help, realistically both of you solved the problem but I'll give the full points to the one who got in there first!