03-19-2009 12:05 PM
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?
03-19-2009 12:48 PM
03-19-2009 1:10 PM
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
03-19-2009 1:21 PM
Thanks for your suggestion.
J@y FM is not working.....can u plz elaborate your code or any other way?
03-19-2009 1:26 PM
>
>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.
04-01-2009 8:10 AM