Hi friends,
I have written a program which has exit button .I have written code like this for sy-ucoom for exit.
when 'EXIT'.
DATA : ANS.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'LOGG OFF? '
DIAGNOSE_OBJECT = ' '
TEXT_QUESTION =
'Do you want to log off from mobile?'
TEXT_BUTTON_1 = 'YES'
ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'NO'
ICON_BUTTON_2 = ' '
DEFAULT_BUTTON = '2'
DISPLAY_CANCEL_BUTTON = SPACE
USERDEFINED_F1_HELP = ' '
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE =
IMPORTING
ANSWER = ANS
TABLES
PARAMETER =
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2.
CHECK ANS = '1'.
CALL 'SYST_LOGOFF'.
It works while running in SAP gui ..same we are calling in SAP WEb Portal but this code is not working there ..what is the problem .what is the code for logoff there ??
regards,
mani