10-20-2008 4:47 PM
10-20-2008 4:49 PM
10-20-2008 4:51 PM
if the file is in Presentation server then use fm GUI_UPLOAD or in Appl server then use OPEN DATASET & READ DATASET
a®
10-20-2008 4:53 PM
10-20-2008 4:57 PM
hi,
if ur requirement is to select a file from the local directory ,in ur selection screen then do the following:
parameters p_file type rlgrap-filename.
at selection-screen on value-request for p_file.
call function 'KD_GET_FILENAME_ON_F4'
EXPORTING
field_name = p_file
CHANGING
file_name = p_file.
10-21-2008 8:05 AM
its a local directory and the program has to check if there are files in that directory
I dont want to use the AT SELECTION-SCREEN on VALUE-REQUEST on p_file
Is there a way to retrieve the specific file from a specified local directory??
10-21-2008 8:06 AM
Hi,
check out the class
"CL_GUI_FRONTEND_SERVICES"
and the methods in the class :
"DIRECTORY_EXIST"
"DIRECTORY_LIST_FILES"
"FILE_EXIST"
Thanks & Regards,
Navneeth K.
10-21-2008 8:07 AM
Call the "FILE_EXIST" method of the class and validate the given file name.
10-21-2008 8:08 AM
hi,
check rich reply in this thread.
[https://forums.sdn.sap.com/click.jspa?searchID=17707428&messageID=6032229]
10-23-2008 1:40 PM
its not working
im checking if any files exist in a directory in the application server without using the popup for the open file screen
10-21-2008 2:41 PM