Application Development 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: 

FM to get the application directort path i.e AL11 path

Former Member
0 Kudos

Hi Experts,

I know a filename which is on application server.Is there ant FM in which by passing this filename, i can get its directory path?

5 REPLIES 5

former_member156446
Active Contributor
0 Kudos

try : 'LIST_SPLIT_PATH'

Former Member
0 Kudos

Not Quite sure...

Generally this can be found putting the LS command at the Unix server level if this where you are generally storing the files.

Its quite complex and requires deep understanding of ABAP and Unix,

CALL 'SYSTEM' ID 'COMMAND' FIELD ws_call_script

ID 'TAB' FIELD int_tabl-sys.

Pls try the FM J@Y suggested first.

Regards

Shital

0 Kudos

Thanks for your suggestion.

J@y FM is not working.....can u plz elaborate your code or any other way?

0 Kudos

>

>can u plz elaborate your code or any other way?

REPORT  zj_test LINE-SIZE 162.

DATA: lv_path TYPE rlgrap-filename VALUE '\\sapmnt\trans\20080729_phrase.dat'. 

CALL FUNCTION 'LIST_SPLIT_PATH'
  EXPORTING
    filename = lv_path   "input path with file name
  IMPORTING
    pathname = lv_path.  "output only till drirectory

WRITE: lv_path.

Former Member
0 Kudos

closed