cancel
Showing results for 
Search instead for 
Did you mean: 

ZLM00: How to create the logout-button?

Former Member
0 Kudos

LS.,

I am creating my own LM00 screens which work fine. There is one button hat I still have to add: LOGOUT.

Of course I can create the button and give it a functioncode, but what do I have to let it do to make the user logout?

I tried functions like:

EXIT, LEAVE TO SCREEN 0, LEAVE PROGRAM, LEAVE, RETURN, STOP, CALL TRANSACTION '/NEX'.

Also I tried to debug the original LM00 transaction, but it is not debuggable using /h /hs or /he.

I have also searched for function modules that log the user out, but did not find any.

Anybody any idea how to create the logout-button?

Best regards,

Tim van Steenbergen.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Got it.

Functionmodule SAPGUI_SET_FUNCTIONCODE does some part, but only works for a dialogsession. When trying this on a scanner, it did not do anything because this interface does not have a transaction box to enter the functioncode in.

The trick that worked was call 'SYS_LOGOFF'.