<?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 Exception in SUSR_INTERNET_USERSWITCH in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502953#M1558684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use the Function Module SUSR_INTERNET_USERSWITCH to perfrom a user switch. I have two users, one which is of type service and the other of type dialog. When I test the function module in se37 or by writing a report, I get an exception like     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more than one external mode =&amp;gt; switch not possible&lt;/P&gt;&lt;P&gt;RAISE MORE_THAN_ONE_MODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This exception is due to the call at line # 233 in the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;actuall 'delayed logon' (switch from 'anonymous' to 'named'):&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL 'INTERNET_USER_LOGON'  ID 'UNAME'    FIELD USERID&lt;/P&gt;&lt;P&gt;                              ID 'PASSW'    FIELD PASSWORD&lt;/P&gt;&lt;P&gt;                              ID 'TICKET'   FIELD TICKET&lt;/P&gt;&lt;P&gt;                              ID 'PASSFLAG' FIELD PWDSTATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can get around this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2010 11:46:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-24T11:46:28Z</dc:date>
    <item>
      <title>Exception in SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502953#M1558684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use the Function Module SUSR_INTERNET_USERSWITCH to perfrom a user switch. I have two users, one which is of type service and the other of type dialog. When I test the function module in se37 or by writing a report, I get an exception like     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more than one external mode =&amp;gt; switch not possible&lt;/P&gt;&lt;P&gt;RAISE MORE_THAN_ONE_MODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This exception is due to the call at line # 233 in the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;actuall 'delayed logon' (switch from 'anonymous' to 'named'):&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL 'INTERNET_USER_LOGON'  ID 'UNAME'    FIELD USERID&lt;/P&gt;&lt;P&gt;                              ID 'PASSW'    FIELD PASSWORD&lt;/P&gt;&lt;P&gt;                              ID 'TICKET'   FIELD TICKET&lt;/P&gt;&lt;P&gt;                              ID 'PASSFLAG' FIELD PWDSTATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can get around this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 11:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502953#M1558684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502954#M1558685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SUSR_INTERNET_USERSWITCH' "&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  alias =                     " bapialias     Internet User Alias&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  username =                  " bapibname-bapibname  User Name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    password =                  " bapipwd       SAP user password&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    bname_after_switch =        " ususername&lt;/P&gt;&lt;P&gt;    pwdstate =                  " xupwdstate    Status of the User Password&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  return =                    " bapiret2      Return parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    CURRENT_USER_NOT_SERVICETYP = 1  "&lt;/P&gt;&lt;P&gt;    MORE_THAN_ONE_MODE = 2      "&lt;/P&gt;&lt;P&gt;    INTERNAL_ERROR = 3          "               Internal Error&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 12:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502954#M1558685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T12:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502955#M1558686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rahul. Thats what I trying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 12:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502955#M1558686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T12:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502956#M1558687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lv_user_before = sy-uname.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'SUSR_INTERNET_USERSWITCH'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          alias                             = lv_alias&lt;/P&gt;&lt;P&gt;          password                          = lv_password&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BNAME_AFTER_SWITCH                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PWDSTATE                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PWD_CHANGE_SSO                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          return                            = lt_return&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          current_user_not_servicetyp       = 3&lt;/P&gt;&lt;P&gt;          more_than_one_mode                = 2&lt;/P&gt;&lt;P&gt;          internal_error                    = 1&lt;/P&gt;&lt;P&gt;          OTHERS                            = 4&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;gt; 1&lt;/P&gt;&lt;P&gt;      OR ( sy-subrc = 1 AND sy-uname = lv_user_before ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Error during User Switch&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      everything OK&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 12:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502956#M1558687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T12:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502957#M1558688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I did not put my question across v clearly. Its not that I do not know how to handle the exception. Its just that I want to know why the exception is happening and get rid of it so that the user switch happens succesfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 12:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-in-susr-internet-userswitch/m-p/7502957#M1558688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T12:38:54Z</dc:date>
    </item>
  </channel>
</rss>

