‎2009 Aug 07 7:45 AM
Hi all,
I want to search file in application server.
Suppose there is file named abc20090808.dat.
Is there is any function module to search the file?
it should return back the file names starting with abc, if the import parameter is abc*
Regards,
Nikhil
‎2009 Aug 07 9:10 AM
Hello Nikhil,
If you want to search for the file in a specific folder, then you can use the FM: EPS_GET_DIRECTORY_LISTING.
In this FM, pass the directory path (Application Server path) to the param DIR_NAME & in the param FILE_MASK pass the patter e.g., abc*
Hope i am clear.
BR,
Suhas
‎2009 Aug 07 7:50 AM
Hi Nikhil,
use this FM
F4_DXFILENAME_TOPRECURSION
Hope this will help you.
Regards,
Vijay
‎2009 Aug 07 7:53 AM
I am not looking for F4 help. want to get the details in internal table
‎2009 Aug 07 7:59 AM
‎2009 Aug 07 9:10 AM
Hello Nikhil,
If you want to search for the file in a specific folder, then you can use the FM: EPS_GET_DIRECTORY_LISTING.
In this FM, pass the directory path (Application Server path) to the param DIR_NAME & in the param FILE_MASK pass the patter e.g., abc*
Hope i am clear.
BR,
Suhas
‎2009 Aug 07 9:38 AM
Hi nikhil,
We can use this FM - SUBST_GET_FILE_LIST
U will get information in INTERNAL TABLE.
No dialog box for F4.
You can give pattern also.
regards,
amit m.
‎2010 Aug 16 2:14 PM
‎2022 Jan 04 12:52 PM
Hi,
I have a similar requirement, could you let me know how you solved the issue.
Thanks,
Bala
‎2022 Jan 04 9:19 PM
Hi, balakrishna.thatikonda
Please don't ask questions in comments to Former Members in a thread that's more than 12 years old. No one will see your question or comment.
The correct approach is to ask a new question, as you did here: https://answers.sap.com/questions/13556834/how-to-read-a-file-from-application-server-based-o.html.
Please see https://community.sap.com/resources/questions-and-answers for best practices on asking question on SAP Community.
Kind regards,
--Jerry
Moderation Lead