cancel
Showing results for 
Search instead for 
Did you mean: 

Delete ITS session

Former Member
0 Kudos

Hi all,

I am use a IFRAME to show webgui ITS in my WDA.

It's work correct and all good. But when i press navigate link on leave this frame, i see in SM04 that session not shut down. And when i call FRAME again, new session created and my AUFNR is blocked by old session.

How can i destroy session when i call webgui transaction again?

App points for you.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

I had your same problem...

I resolved it (maybe) with these function module: TH_USER_LIST and TH_DELETE_USER.

Try to add this code in WDDOAFTERACTION method of your view (with iframe):

types:

T_UINFO type standard table of uinfo with default key .

data: lt_userlist type t_uinfo,

ls_user type line of t_uinfo.

  • Check user session

call function 'TH_USER_LIST'

TABLES

list = lt_userlist.

  • Kill current frame session

read table lt_userlist into ls_user with key TCODE = wd_this->tcode protocol = '1'.

if sy-subrc = '0'.

call function 'TH_DELETE_USER'

EXPORTING

client = sy-mandt

user = sy-uname

tid = ls_user-tid.

endif.

I hope to be helpful.

Edited by: Salvatore Giannotti on Dec 20, 2007 2:08 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Andrey,

Try to add the following parameter to the service you are calling in SICF:

~SAPWP_ACTIVE = 1

Hope this will help you solve your problem.

Regards,

Jos

Former Member
0 Kudos

Thanks, but does not work...