‎2009 Jan 08 8:33 AM
Hi, Experts,
How can I logout by executing a program. means What will be code to write in program so that system make logout when the same program execute.
Ex. When we write /NEX in command window , It's logout from SAP.
With Warm REGARDS
Rajiv Singh.
‎2009 Jan 08 8:50 AM
‎2009 Jan 08 8:38 AM
u can try this
fm
TH_DELETE_USER
pass sy-uname and sy-mandt to this but it may cause problem if multiple ppl are using same user id.
‎2009 Jan 08 8:44 AM
Hi,
I don't understand why this requirement has come up, i suggest instead of logging out , after u execute the program u can come to SAP EASY ACCESS screen, so that u can use for other purposes, instead of completely logging out.
Regards,
Nagaraj
‎2009 Jan 08 8:46 AM
hi ,
You can do it with a BDC . Check out the following code.
include bdcrecx1.
start-of-selection.
perform open_group.
perform bdc_dynpro using 'SAPLWBABAP' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RS38M-FUNC_EDIT'.
perform bdc_field using 'BDC_OKCODE'
'/NEX'.
perform bdc_transaction using 'SE38'.
perform close_group.
Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 4:02 PM
‎2009 Jan 08 8:50 AM
‎2009 Jan 08 8:57 AM
‎2009 Jan 08 9:03 AM
Hi,
try this FM: CALL FUNCTION 'TH_DELETE_MODE'.
Regards, Dieter