<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Serious Problem with BAPI_USER_CHANGE please help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/serious-problem-with-bapi-user-change-please-help/m-p/4123011#M985747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi (Frank and Rob),&lt;/P&gt;&lt;P&gt;Thank you for your input. The note implies for release 4.6 but the release I am using is the basis release 7.0(SAP NetWeaver 2004s). I don't know if this matters in this release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system (TS) that I call the BAPIs in has two clients. Client 01(Test Monitoring) and Client 02(Test CUA). Now Client 02 is attached to the PRD (Master CUA system). But I run the BAPIs in Client 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CUA settings for both Clients (01 and 02) in TS system is set to Global (Global button is ticked) in  transaction SCUM. Also Internal-mail is set to Redistribution in both Clients in TS system and in PRD(Redistribution is ticked) in transaction SCUM.&lt;/P&gt;&lt;P&gt;The code below shows the form with the BAPI_USER_CHANGE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM snc_update.
  DATA: lw_snc        TYPE bapisncu.
  DATA: lw_sncx       TYPE bapisncux.
  DATA: lw_return     TYPE bapiret2.
* Initializing the Flags
  lw_sncx-pname   = 'X'.
  lw_sncx-guiflag = 'X'.

* Check for which button is clicked
  CASE sscrfields.
    WHEN 'CL1'.  "When update button is clicked
      CLEAR w_return.
      CLEAR t_return.
      FREE  t_return.

        MOVE p_snc   TO lw_snc-pname. "p_snc is parameter field &amp;amp; with the SNC for the user
        lw_snc-guiflag  = 'X'.  " No Passwordsr -only SNC-data

*       Change only the SNC of the User
        CALL FUNCTION 'BAPI_USER_CHANGE'
         EXPORTING
            username = gw_bname       "User clicked from Index. Only one user is given
           snc           = lw_snc
            sncx        = lw_sncx
          TABLES
           return       = t_return.

        IF sy-subrc = 0.
          READ TABLE t_return INTO w_return WITH KEY type   = 'S'.
*         Status message when SNC-Name is successfully changed
          MESSAGE ID w_return-id TYPE w_return-type NUMBER w_return-number
          WITH w_return-message.
          LEAVE TO SCREEN 0.
        ELSE.
          CLEAR w_return.
          READ TABLE t_return INTO w_return WITH KEY type   = 'E'.
*         Error when unsuccessful.
          MESSAGE ID w_return-id TYPE w_return-type NUMBER w_return-number
          WITH w_return-message .
          LEAVE TO SCREEN 0.
        ENDIF.
            ENDIF.
    WHEN 'CL2'.
      LEAVE TO SCREEN 0.
    WHEN OTHERS.
      LEAVE TO SCREEN 0.
  ENDCASE.
ENDFORM.                    " SNC_UPDATE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also one important NOTE: After the program runs, I receive the message user XX has been successfully updated. But then I looked at the t_return table in debugging I saw the following 4 Messages (3 of type 'W' and 1 of type 'S'): All the messages came from the Message class SNC(SE91)&lt;/P&gt;&lt;P&gt;Num 005 of TYPE W with message "Unable to determine the canonical SNC name"&lt;/P&gt;&lt;P&gt;NUM 006 of TYPE W with message "User name SNC-Name: with the value"&lt;/P&gt;&lt;P&gt;NUM 003 of TYPE W with message SNC error RC= 19 ( message 19 says "Logon with external ID not activated in this system")&lt;/P&gt;&lt;P&gt; NUM 039 of TYPE S with message "User was successful changed".&lt;/P&gt;&lt;P&gt;Any help to explain this mistery will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all &lt;/P&gt;&lt;P&gt;Nadin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 14:32:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-09T14:32:32Z</dc:date>
    <item>
      <title>Serious Problem with BAPI_USER_CHANGE please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serious-problem-with-bapi-user-change-please-help/m-p/4123009#M985745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a Test system (Child system). The child system is attached to the CUA. &lt;/P&gt;&lt;P&gt;I have used the BAPI_USER_CHANGE to update the SNC of one user. But surprisingly, all &lt;/P&gt;&lt;P&gt;the emails addresses in the CUA of all users in the child system have been changed.&lt;/P&gt;&lt;P&gt;I think the system user chanegs this in a way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is very simple written.&lt;/P&gt;&lt;P&gt;I have written a program that updates the SNC Name of a user. In this program I used the following BAPIs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)	BAPI_USER_GETLIST --&amp;gt; to get the user name of a certain user&lt;/P&gt;&lt;P&gt;2)	BAPI_USER_GET_DETAIL --&amp;gt; to get the other information of the User&lt;/P&gt;&lt;P&gt;3)	BAPI_USER_CHANGE --&amp;gt;     to change the SNC Name of the User.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any body have an idea as to why the system user changes all the email addresses in CUA for all Users that are in the child system?&lt;/P&gt;&lt;P&gt;I am relentlessly in search for answers please.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nadin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 11:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serious-problem-with-bapi-user-change-please-help/m-p/4123009#M985745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T11:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Serious Problem with BAPI_USER_CHANGE please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serious-problem-with-bapi-user-change-please-help/m-p/4123010#M985746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I am relentlessly in search for answers please.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your relentless search did you look for SAP notes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;355754 looks promissing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 20:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serious-problem-with-bapi-user-change-please-help/m-p/4123010#M985746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T20:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Serious Problem with BAPI_USER_CHANGE please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serious-problem-with-bapi-user-change-please-help/m-p/4123011#M985747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi (Frank and Rob),&lt;/P&gt;&lt;P&gt;Thank you for your input. The note implies for release 4.6 but the release I am using is the basis release 7.0(SAP NetWeaver 2004s). I don't know if this matters in this release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system (TS) that I call the BAPIs in has two clients. Client 01(Test Monitoring) and Client 02(Test CUA). Now Client 02 is attached to the PRD (Master CUA system). But I run the BAPIs in Client 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CUA settings for both Clients (01 and 02) in TS system is set to Global (Global button is ticked) in  transaction SCUM. Also Internal-mail is set to Redistribution in both Clients in TS system and in PRD(Redistribution is ticked) in transaction SCUM.&lt;/P&gt;&lt;P&gt;The code below shows the form with the BAPI_USER_CHANGE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM snc_update.
  DATA: lw_snc        TYPE bapisncu.
  DATA: lw_sncx       TYPE bapisncux.
  DATA: lw_return     TYPE bapiret2.
* Initializing the Flags
  lw_sncx-pname   = 'X'.
  lw_sncx-guiflag = 'X'.

* Check for which button is clicked
  CASE sscrfields.
    WHEN 'CL1'.  "When update button is clicked
      CLEAR w_return.
      CLEAR t_return.
      FREE  t_return.

        MOVE p_snc   TO lw_snc-pname. "p_snc is parameter field &amp;amp; with the SNC for the user
        lw_snc-guiflag  = 'X'.  " No Passwordsr -only SNC-data

*       Change only the SNC of the User
        CALL FUNCTION 'BAPI_USER_CHANGE'
         EXPORTING
            username = gw_bname       "User clicked from Index. Only one user is given
           snc           = lw_snc
            sncx        = lw_sncx
          TABLES
           return       = t_return.

        IF sy-subrc = 0.
          READ TABLE t_return INTO w_return WITH KEY type   = 'S'.
*         Status message when SNC-Name is successfully changed
          MESSAGE ID w_return-id TYPE w_return-type NUMBER w_return-number
          WITH w_return-message.
          LEAVE TO SCREEN 0.
        ELSE.
          CLEAR w_return.
          READ TABLE t_return INTO w_return WITH KEY type   = 'E'.
*         Error when unsuccessful.
          MESSAGE ID w_return-id TYPE w_return-type NUMBER w_return-number
          WITH w_return-message .
          LEAVE TO SCREEN 0.
        ENDIF.
            ENDIF.
    WHEN 'CL2'.
      LEAVE TO SCREEN 0.
    WHEN OTHERS.
      LEAVE TO SCREEN 0.
  ENDCASE.
ENDFORM.                    " SNC_UPDATE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also one important NOTE: After the program runs, I receive the message user XX has been successfully updated. But then I looked at the t_return table in debugging I saw the following 4 Messages (3 of type 'W' and 1 of type 'S'): All the messages came from the Message class SNC(SE91)&lt;/P&gt;&lt;P&gt;Num 005 of TYPE W with message "Unable to determine the canonical SNC name"&lt;/P&gt;&lt;P&gt;NUM 006 of TYPE W with message "User name SNC-Name: with the value"&lt;/P&gt;&lt;P&gt;NUM 003 of TYPE W with message SNC error RC= 19 ( message 19 says "Logon with external ID not activated in this system")&lt;/P&gt;&lt;P&gt; NUM 039 of TYPE S with message "User was successful changed".&lt;/P&gt;&lt;P&gt;Any help to explain this mistery will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all &lt;/P&gt;&lt;P&gt;Nadin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 14:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serious-problem-with-bapi-user-change-please-help/m-p/4123011#M985747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T14:32:32Z</dc:date>
    </item>
  </channel>
</rss>

