‎2009 Aug 27 12:59 PM
Hi All,
Can anyone suggest me any Function module to get file/folder path Separator on application server?
Also I want a Function module which returns the Carriage return(CR)/ Line Feed(LF) in case of application server.
regards
Shilpa.
‎2011 Dec 27 11:37 AM
Hi! It's never too late!!
Couldn't find this separator fm either, so I came up with my own form:
*&---------------------------------------------------------------------*
*& Form get_server_file_separator
*&---------------------------------------------------------------------*
FORM get_server_file_separator CHANGING f_separator TYPE char1.
CASE sy-opsys.
WHEN 'Windows NT'.
f_separator = '\'.
WHEN 'Linux'.
f_separator = '/'.
WHEN 'HP-UX'.
f_separator = '/'.
WHEN 'OS400'.
f_separator = '/'.
WHEN OTHERS.
f_separator = '/'.
ENDCASE.
ENDFORM. "get_server_file_separator
‎2011 Dec 27 11:41 AM