SAP系统中通过逻辑路径取得物理路径(FILE)
Tcode:FILE可以查看物理路径和逻辑路径之间的匹配关系。
如下:能查到逻辑路径Z_DIRECTLINK对应的物理路径。
相关的路径信息保存在表PATH中,
下面是简单的例子程序:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
REPORT ztest_file.
DATA:l_dsn TYPE path-pathextern.
SELECT SINGLE p~pathextern
INTO l_dsn
FROM path AS p
INNER JOIN opsystem AS o ON p~filesys = o~filesys
WHERE p~pathintern = 'Z_DIRECTLINK'
AND o~opsys = sy-opsys.
IF sy-subrc = 0.
WRITE l_dsn.
ELSE.
WRITE 'Logic path is invalid!'.
ENDIF.
|
运行结果: