简体   繁体   English

如何在 FM EPS2_GET_DIRECTORY_LISTING 中使用 FILE_MASK 参数

[英]How to use FILE_MASK parameter in FM EPS2_GET_DIRECTORY_LISTING

I am trying to filter files using FILE_MASK parameter in EPS2_GET_DIRECTORY_LISTING to reduce time searching all files in the folder (has thousands of files).我试图使用过滤器文件FILE_MASK参数EPS2_GET_DIRECTORY_LISTING减少时间搜索文件夹中的所有文件(有成千上万的文件)。

File mask I tried:我试过的文件掩码:

TK5_*20150811*

file name in the folder is;文件夹中的文件名是;

TK5_Invoic_828243P_ 20150811 111946364.xml.asc TK5_Invoic_828243P_20150811 111946364.xml.asc

But it exports all files to DIR_LIST table, so nothing filtered.但它将所有文件导出到 DIR_LIST 表,所以没有过滤。

But when I try with;但是当我尝试使用时;

TK5_Invoic*20150811*

It works!有用!

What I think is it works if I give first 10 characters as it is.我认为如果我按原样给出前 10 个字符,它会起作用。 But in my case I do not have first 10 characters always.但就我而言,我并不总是有前 10 个字符。

Can you give me an advice on using FILE_MASK ?你能给我使用FILE_MASK的建议吗?

Haven't tried, but this sounds plausible: https://archive.sap.com/discussions/thread/3470593没试过,但这听起来似乎有道理: https : //archive.sap.com/discussions/thread/3470593

The * wildcard may only be used at the end of the search string. * 通配符只能用在搜索字符串的末尾。 It is not specified, what a '*' matches to, when it is not the last non-space character in the FILE parameter value.没有指定“*”匹配什么,当它不是 FILE 参数值中的最后一个非空格字符时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM