获取应用服务器目录的内容 [英] Get the contents of a Application Server directory
问题描述
我需要获取 SAP 内服务器端目录的列表.我如何在 ABAP 中实现这一目标?我可以调用任何内置的 SAP 函数吗?
I need to get a listing of a server-side directory inside SAP. How do I achieve this in ABAP? Are there any built-in SAP functions I can call?
理想情况下,我想要一个函数,我可以将路径作为输入传递,并返回内部表中的文件名列表.
Ideally I want a function which I can pass a path as input, and which will return a list of filenames in an internal table.
推荐答案
在阅读了 Chris Carrthers 和 tomdemuyt 的答案后,我会说:
After reading the answers of Chris Carrthers and tomdemuyt I would say:
1) 如果您需要简单的文件名列表,请使用 RZL_READ_DIR_LOCAL.
1) Use RZL_READ_DIR_LOCAL if you need simple list of filenames.
2) EPS_GET_DIRECTORY_LISTING 更强大——它还可以列出子目录.
2) EPS_GET_DIRECTORY_LISTING is more powerfull - it can also list subdirectories.
谢谢你们!
致以最诚挚的问候尼基·加拉诺夫
With best Regards Niki Galanov
这篇关于获取应用服务器目录的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!