Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Capturing User Information.

Former Member
0 Likes
370

Hi all,

I am creating an application in WebDynpro ABAP. I want to know if there is any function module using which I can capture the user id and client number.

Also Is there any function module using which I can log out of the system.

Best Regards,

Rajesh.

2 REPLIES 2
Read only

Former Member
0 Likes
341

HI,

u can use the system variable sy-uname for user name abd sy-mandt for client number.

there is a function module for logging off it is 'SXMI_LOGOFF'.

rgds,

bharat.

Read only

0 Likes
341

Could you please tell me of an example wherein "SXMI_LOGOFF" is used. I also used another Function Module ie TH_DELETE_USE which Logoff a user. Similar results to using SM04. However, this FM doesn't function if the user doesn't have authorization to use the transaction SM04.

I would also appreciate if you could tell me if there is any function module which would end a session.

Best Regards,

Rajesh.