cancel
Showing results for 
Search instead for 
Did you mean: 

SUSR_INTERNET_USERSWITCH Dumps in ECC 6.0

Former Member
0 Kudos

Hello,

We are currently upgrading our 4.6C ERP to ECC 6.0. I am in charge of upgrading some ITS applications.

Some of those are setup to use a Service user to logon, and display a custom logon screen when they start. The users have to enter their User alias and their password in this first screen.

The underlying ABAP program then do a delayed logon with function SUSR_INTERNET_USERSWITCH. This works fine in our 4.6C system, but I cannot get it to work in the new system.

A "Raise Exception" dump is generated when the function is called, because the "INTERNAL_ERROR" exception was raised. Here is the ABAP code extract from the dump :


  276   if not HTTPconnect is initial.
  277     CALL FUNCTION 'HTTP_CONFIRM_USERSWITCH'
  278       EXPORTING
  279            SSO2             = TICKET   "empty tickets are handled
  280       EXCEPTIONS
  281            NO_HTTP_SESSION  = 1
  282            OTHERS           = 2.
  283
  284     if sy-subrc = 1.
  -->          RAISE INTERNAL_ERROR.
  286     endif.

I have searched on SAP portal and on SDN without much success.

Would someone have an idea of what could be wrong ?

Thank you.

Thomas

Edited by: Thomas Debouverie on Aug 3, 2009 12:19 PM

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

its complaining of no HTTP session.

may be sso2 is not configured.

to check that run the following BSP application.

http://<server>.<domain>.com:<port>/sap/bc/bsp/sap/system/sso2test.htm

Former Member
0 Kudos

Hello,

Thanks for the tip. I tried it and the results indicates that SSO2 is configured correctly.

I already searched down that road, and configured SSO2, but it did not solve my problem.

athavanraja
Active Contributor
0 Kudos

sorry, i just checked the source of that FM and the exception is raised if

server_accepted (which is of type cl_http_server) is initial .

Other ITS apps are working fine? for example webgui?

athavanraja
Active Contributor
0 Kudos

are you still using the standalone ITS or migrating to integrated ITS?

Former Member
0 Kudos

Yes, other ITS applications runs fine.

We have this problem only for delayed logon using the userswitch FM.

I saw that also, that this variable was initial. I also saw that it is normally initialized by another standard FM of the same function group, but I do not think that it is ever called.

Former Member
0 Kudos

We are migrating to integrated ITS. We have already converted the ITS services, and are now testing them in the new integrated ITS environment.

Former Member
0 Kudos

I have now exactly the same problem with HTTP_CONFIRM_USERSWITCH and variable SERVER_ACCEPTED is still initial.

The whole stuff works fine for BSP but with internal ITS I cannot get it to work properly.

Did you find a solution?

Rainer

cris_hansen
Advisor
Advisor
0 Kudos

Hello Rainer,

The function SUSR_INTERNET_USERSWITCH does not recognize the integrated ITS properly and works only for the standalone ITS. As you may know, the Standalone ITS is not supported for Release 700 (see SAP note 709038).

Unfortunately there is no solution available yet.

Best regards,

Cristiano

Former Member
0 Kudos

Hello Cristino,

thanks for the info.

I opened a message at Service SAP Marketplace and will post the result (if any) here.

I handle this internal error at the moment with a work-around:

lv_user_before = sy-uname.
      CALL FUNCTION 'SUSR_INTERNET_USERSWITCH'
        EXPORTING
          alias                             = lv_alias
          password                          = lv_password
* IMPORTING
*   BNAME_AFTER_SWITCH                =
*   PWDSTATE                          =
*   PWD_CHANGE_SSO                    =
        TABLES
          return                            = lt_return
        EXCEPTIONS
          current_user_not_servicetyp       = 3
          more_than_one_mode                = 2
          internal_error                    = 1
          OTHERS                            = 4
                .
      IF sy-subrc > 1
      OR ( sy-subrc = 1 AND sy-uname = lv_user_before ).
*       Error during User Switch
*       
      ELSE.
*       everything OK
      ENDIF.

Rainer

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Cristiano,

Did SAP eventually solve this problem?

I look foward to your reply.

Thanks

François

former_member316351
Active Contributor
0 Kudos

Have you seen note 1442046 and 429165 yet? Maybe these would be helpful for this issue.

Edgar