<?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: WebDynpro Switch the User: SUSR_INTERNET_USERSWITCH in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830162#M353868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you seen this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9e/f0f13a62d1ad6de10000000a11405a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9e/f0f13a62d1ad6de10000000a11405a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2007 10:34:41 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2007-01-11T10:34:41Z</dc:date>
    <item>
      <title>WebDynpro Switch the User: SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830161#M353867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a guestions about the user swich.&lt;/P&gt;&lt;P&gt;The requirement I would like to fulfill:&lt;/P&gt;&lt;P&gt;1) log in anonymously, without the login page, to the web dynpro app&lt;/P&gt;&lt;P&gt;2) in the 'login form' enter a name and password, press ENTER and switch to another user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I found is:&lt;/P&gt;&lt;P&gt;I) logging in as an anonymous user: in SICF i go to my node and set  user, password,language, etc...&lt;/P&gt;&lt;P&gt;After I executed my WebDynpro App, login page was gone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;II) a FM SUSR_INTERNET_USERSWITCH with which I can switch the users, but the documentation says, that it's from SERVICE to DIALOG. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Questions:&lt;/P&gt;&lt;P&gt;1) Is the my scenario possible at all. And it it is, is that what I found useful?&lt;/P&gt;&lt;P&gt;2) Can I use SUSR_INTERNET_USERSWITCH for SERVICE to SERVICE switch??&lt;/P&gt;&lt;P&gt;3) any other solutions??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 10:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830161#M353867</guid>
      <dc:creator>szymon_bolek</dc:creator>
      <dc:date>2007-01-11T10:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: WebDynpro Switch the User: SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830162#M353868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you seen this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9e/f0f13a62d1ad6de10000000a11405a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9e/f0f13a62d1ad6de10000000a11405a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 10:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830162#M353868</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-11T10:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: WebDynpro Switch the User: SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830163#M353869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have seen this one. But this is for BSP, and I do not know if I can use it 1:1 in WD for ABAP, and it still does not say if it works with SERVICE ot SERVICE user switching. I doesn't say it doesn't as well, but still.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Simon:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 10:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830163#M353869</guid>
      <dc:creator>szymon_bolek</dc:creator>
      <dc:date>2007-01-11T10:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: WebDynpro Switch the User: SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830164#M353870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both BSP and WD ABAP runs from ICF (internet communication frmae work) and its very much relevant for ABAP WD as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you check the source of this FM&lt;/P&gt;&lt;P&gt;as per the source these are the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call 'INTERNET_USER_LOGON'  id 'UNAME'    field userid
                              id 'PASSW'    field password
                              id 'TICKET'   field ticket
                              id 'PASSFLAG' field pwdstate.

* SUBRC:
*       -3  switch not possible (multi-mode session: side-effects)
*       -2  current user is no SERVICE user but named user
*       -1  parameter error (missing / wrong length)
*        0  OK                               (USER_OK)
*        1  wrong password or not valid      (USER_NOT_ALLOWED)
*        2  user is locked                   (USER_LOCKED)
*        3  to many login tries              (STOP_SESSION)
*        6  CUA master record (no login)     (CUA_MASTER_RECORD)
*        8  user out of validity time period (USER_NOT_VALID)
*       10  secure connection required       (SNC_REQUIRED)
*       11  service user not in USRACLEXT    (SNC_NAME_NOT_IN_ACL)
*       12  X.509-submitter is not trusted   (SNC_SYST_NOT_IN_ACL)
*       50  password logon disabled          (PASSWORD_LOGON_DISABLED)
*       51  initial password expired         (INITIALPASSWORD_EXPIRED)
*       52  user has no password             (USER_HAS_NO_PASSWORD)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if time permits, i will simulate your case and get back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 10:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830164#M353870</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-13T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: WebDynpro Switch the User: SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830165#M353871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;many thanks Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I did checked the source code and You're right, it should work for my case. I want to check it this weekend too, but I do not know if I'll have time for it. I'll post my results as soon as i'm done. If You'll simulate this, please do post your results as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Simon:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 11:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830165#M353871</guid>
      <dc:creator>szymon_bolek</dc:creator>
      <dc:date>2007-01-13T11:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: WebDynpro Switch the User: SUSR_INTERNET_USERSWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830166#M353872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so my friends:)&lt;/P&gt;&lt;P&gt;it works:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
  DATA:
    ls_bname    TYPE ususername,
    lt_ret      TYPE TABLE OF bapiret2,
    lv_user     TYPE xubname,
    lv_password TYPE bapipwd.

  lv_user = item_user. " string
  lv_password = item_password. "string

  CALL FUNCTION 'SUSR_INTERNET_USERSWITCH'
    EXPORTING
      username                    = lv_user
      password                    = lv_password
    IMPORTING
      bname_after_switch          = ls_bname
    TABLES
      return                      = lt_ret
    EXCEPTIONS
      current_user_not_servicetyp = 1
      more_than_one_mode          = 2
      internal_error              = 3
      OTHERS                      = 4.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, now after this call I am logged in as a Dialog user. So if I wanted to switch to another user I would get &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;i&amp;gt;current_user_not_servicetyp&amp;lt;/i&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How could I do that?? &lt;/P&gt;&lt;P&gt;I'll post it here as soon as I find out.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Simon:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 10:59:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/webdynpro-switch-the-user-susr-internet-userswitch/m-p/1830166#M353872</guid>
      <dc:creator>szymon_bolek</dc:creator>
      <dc:date>2007-01-16T10:59:26Z</dc:date>
    </item>
  </channel>
</rss>

