‎2007 Jan 10 12:45 PM
Hi ,
Is there any user exit or badi available to enhance the Logoff button .
My scenario is we have server A , from where we execute a RFC function module which will call a transaction XYZ(for eg) in server B . Now the standard logoff button/function in transaction XYZ will disconnect the RFC connectivity between A & B when pressed and will result in short dump. Just want to know is there any work around . Dont suggest to develope a custom XYZ as this XYZ is standard sap menu management screen and which in turn calls several custom and standard transactions through its menu.
It will help me if u could suggest me a standard exit or badi.
Regards,
Barath.
Edited by: kishan P on Aug 20, 2010 2:24 PM
‎2007 Jan 10 2:46 PM
well not that i coulr really solve your problem but, maybe you have a 7.0 ABAP base release? Then you have so called "enhancement points" which give you the opportunity to implement code at almost everywhere you want.
‎2007 Jan 10 6:44 PM
Hey i had used Enhancement Framework in 6.0
So if you are using that version then also you can use this feature and write the required code.
Now for your problem
Check this Program in SE38. This is called when you press Log off.
SAPLSPO1
Regards,
Aman
‎2010 Aug 20 9:47 AM
Hello Barath,
Today I was looking for the same and found the following spot:
Program SAPMSDYP, MODULE D0011_MOD_INP:
MODULE D0011_MOD_INP.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
DEFAULTOPTION = 'N'
TEXTLINE1 = TEXT-101
TEXTLINE2 = TEXT-102
TITEL = TEXT-100
START_COLUMN = 15
START_ROW = 6
CANCEL_DISPLAY = ' '
IMPORTING
ANSWER = FCODE.
.
CASE FCODE.
*(DEL) WHEN 'NO '.
WHEN 'N'.
LEAVE SCREEN.
*(DEL) WHEN 'YES '.
WHEN 'J'.
Userexit beim Abmelden:
Hilfeapplikation schliessen
CALL FUNCTION 'HLP_RTF_DISPLAY_CLOSE'.
Tue hier nichts. Im naechsten Modul wird die Abmeldung abgewickelt
SAPphone: Löschen der Zuordnung Benutzer zu Arbeitsplatz
CALL FUNCTION 'SPH_R3_LOGOFF'.
Objekthistorie aus dem Shared Memory persistent machen.
call function 'SGOS_HISTORY_SYNC_TO_DB'.
Shared Buffer Einträge für SAPGUI löschen
call FUNCTION 'GUI_FREE_SHARED_BUFFER'.
ENDCASE.
ENDMODULE.
After "* Userexit beim Abmelden:" I added my code and it seems to work!
Best regards,
Erik