@Markus3003 - Please check this…
My PDF files in the “DeleteFiles” Folder
Directory.GetFiles("YourFolderName").Select(function(d) new fileinfo(d).Name.Substring(0,6)).toarray
Assign the above code to stringArray … and then use For Each loop and Search in SAP…
If you use (0,4) in the substring…you will get first 4 digits…