2007 Nov 27 2:01 PM
hello, is there any way to get the physical file path <b>only</b> from the logical file path?
ive check 'FILE_GET_NAME' but it returns the physical file name using the logical file name.
i need to get the path only using the logical file path definition.
ive found out that you could select an entry from DB table 'PATH' and get the physical path definition, but it containts place holders such as <FILE_NAME> , <SYS-ID>, and <=INTER_SVR>.
maybe the alternate way is to somehow convert the dynamic file name to a real file name?
thanks in advance.
2007 Nov 27 2:07 PM
Hi,
Check function group SFIL
a®
2007 Nov 27 2:07 PM
2007 Nov 27 2:09 PM
this function group has 4 functions, two of them come up with error operating system not found (although its the default one) and also they dont do what i want according to the description (Something like "get<b> logical path</b> and file name)
2007 Nov 27 2:11 PM
Test FILE_GET_NAME_AND_LOGICAL_PATH
FILE_GET_NAME_USING_PATH
in combination using some existing entry and see if its of any use.
Regards,
Abhishek
2007 Nov 27 2:15 PM
ive already tried that, and it doesnt seem to be of any help to me.
2007 Nov 27 2:50 PM
Hi Eli,
Try to acces the table PATH
SELECT SINGLE * FROM path WHERE pathintern = YOUR_LOGICAL_PATH
AND filesys = 'WINDOWS NT'.
2007 Nov 27 2:57 PM
Sorry the complete code is:
We have to delete the string <FILENAME> to get the path
SELECT SINGLE * FROM path WHERE pathintern = p_p_login1
AND filesys = 'WINDOWS NT'.
IF sy-subrc = 0.
p_w_login1 = path-pathextern.
long = STRLEN( p_w_login1 ).
w_bor = long - 10.
p_w_login1 = p_w_login1(w_bor)..
ENDIF.
2011 Apr 18 10:20 PM
Thanks Francisco, your information was really helpful.
cheers
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |