‎2010 Jun 23 1:58 PM
Hi All,
Is there any function module to get the desktop path?
I have tried using CL_GUI_FRONTEND_SERVICES=>GET_DESKTOP_DIRECTORY, but it is not returning any value.
I can't hardcode "C:\Documents and Settings\<<<user-name>>>\Desktop" as some users have their desktop in "D:\Documents and Settings\<<<user-name>>>\Desktop".
Thanks in advance.
Regards,
Arun Mohan
‎2010 Jun 23 2:08 PM
Hello
No problem:
data: str TYPE string.
CALL METHOD cl_gui_frontend_services=>GET_DESKTOP_DIRECTORY
changing
DESKTOP_DIRECTORY = str
EXCEPTIONS
cntl_error = 1.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD CL_GUI_CFW=>UPDATE_VIEW.
WRITE: str.
‎2010 Jun 23 2:08 PM
Hello
No problem:
data: str TYPE string.
CALL METHOD cl_gui_frontend_services=>GET_DESKTOP_DIRECTORY
changing
DESKTOP_DIRECTORY = str
EXCEPTIONS
cntl_error = 1.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD CL_GUI_CFW=>UPDATE_VIEW.
WRITE: str.
‎2010 Jun 23 2:14 PM