on 09-24-2012 6:32 PM
Hi Guys,
Can any one pls let me know how do i kill the session from SM04 ??
My requirement is to kill the running sessions in Web UI through a button click...
Pls help !!
Hi Santhosh,
Have you tried F.M 'TH_DELETE_USER' ,which closes the session of the user by passing user name and client.
Regards
Rajarama U
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajarama,
Thanks for the inputs..
I have used the same FM in my code and deleted the sessions successfully...
But i am unable to close the current processing sessions( sessions taking long time say ..to open/read the data) immediately from SM04.
they are getting closed either only after completely processing the current session or only after closing the browser all together..
can u pls let me know how to terminate the running sessions as well from SM04..
Hi Santhosh,
go to SM04 --> double click on the session you want to kill-->new pop-up comes --> select the one you want close by clicking upon it -->click button End Session.
Thank You & Regards
Rohan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i believe you want implement the functionality like logoff link. there is code available in the component CRMCMP_HDR_STD
copy this code in the view .html page in which you want to implement session functionality.
<%DATA: LV_URL TYPE STRING. %>
<% if cl_crm_portal_util=>is_session_in_portal( ) = abap_false. %>
<td class="th-l-logoff">
<span class="testmode" id=":T_link:U_LOGOFF:I_LOGOFF">
<a id="LOGOFF" class="th-l-logofflink" href="javascript:void(0)"
onclick="if (confirm( '<%= controller->get_logoff_confirmation_text( )%>')){crmuifClient.winMan.closeAll();crmuifClient.logOff();window.top.location.href='<%= lv_url%>';}return false;"><%=
page->otr_trim(
'CRM_BSP_UI_FRAME_APPL/LOGOFF' ) %></a></span>
</td>
<% endif. %>
put this entire code inside one IF condition based on variable of your view class.
<% if controller->v1 is not initial %>.
set this variable in the event handler of your button to some flag. so when click on the button this piece of code wille executed.
you can create the method (get_logoff_confirmation_text( ))as it is in your view from the component abvoe mentioend ->global functions view.
Praveen
Thanks for the input..
But my requirement is not to Log off..
Rather i need to close the Session forcibly.. (say for suppose, if we close the session running browser, entry in the SM04 is cleared right.. in a similar way, i need to kill the running Web UI session programatically. )
I will have a button in my Web UI displaying all the sessions of a user, and when i select the session to delete, i should be able to delete the same from SM04 as well..
this functionality i am able to achieve using FM's. but its working only for processed sessions.
if the session is processing for longer time, and since its taking time, i wish to kill the same.
if i close the browser ( taking long time ) entry gets deleted from SM04 as well. but i am unable to replicate the same functionality ..
pls help !!
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.