Application Development 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: 

I want to exit SAP logon from my program.

Former Member
0 Kudos

Hi,

I want to exit SAP logon from my program.

Is there a FM that does this?

(How can I execute '/nex' from my program?)

How can I do so?

Thanks.

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos

use this function module.

TH_DELETE_USER

11 REPLIES 11

Former Member
0 Kudos

Hi,

use

call 'SYST_LOGOFF'. in your program

Regards,

Venkatesh

GauthamV
Active Contributor
0 Kudos

use this function module.

TH_DELETE_USER

Former Member
0 Kudos

Hi,

In my case the same user can loggon multiple times.

So when user1 tries to loggon simultaneously say for the 4th time, then he should not be able to do so.

TH_DELETE_USER deletes all logon instances of that user. Only that particular logon should be stopped.

'SYST_LOGOFF' does not work. (I am using ECC 5.0)

Former Member
0 Kudos

Hey,

Sorry guys... 'SYST_LOGOFF' works. But at the time of multiple logins, there are 3 options :

1) Continue this login and end any other logons in the system. .....

2) Continue this login and without ending any other logons in the system. .....

3) Terminate this logon.

Is there a way by which I can bypass this screen too?

It is even ok if the first two options are removed.

Former Member
0 Kudos

Thanks guys,

This issue is solved.

Former Member
0 Kudos

Hi Kumar,

I am working on 4.7ee version.

I have similar requirement that for one user id we have option to logon multiple times, but now I have to control based on terminal id and SAP session ID, if user logon more than one time from the same terminal, program should read and end the second logon session.

Please let me know if you have any idea on this regard...

Thanks in advance....

Venkat

Former Member
0 Kudos

Hi Umesh,

Can you please let me kno w how you solved this issue. I have a similar problem too.

Regards,

Swetha

Former Member
0 Kudos

Hi... Try with FM EXT_SDL_LOGOFF.

but i'm not sure.

regards,

KP

Former Member
0 Kudos

This message was moderated.

0 Kudos

Hi Alok,

I am on the same lines. but what is a C function?

Former Member
0 Kudos

Hello

call 'SYS_LOGOFF'.

FM TH_DELETE_MODE