Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

File separator for Application server

Former Member
0 Likes
2,212

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.

2 REPLIES 2
Read only

sergio-oliveira
Explorer
0 Likes
1,141

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

Read only

kiran_k8
Active Contributor
0 Likes
1,141

.

Edited by: Kiran K on Jan 5, 2012 11:55 AM