04-20-2007 7:29 AM
Hi,
Can somebody tell me how do i validate the filepath in the selection screen for application server.
neha
04-20-2007 8:03 AM
04-20-2007 8:23 AM
Neha,
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
DIRECTORY = T_DIREC
TABLES
FILE_TABLE = FILE_TABLE
DIR_TABLE = DIR_TABLE .
IF DIR_TABLE[] IS INITIAL.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
TEXTLINE1 = 'Please Enter Valid Directory'
TEXTLINE2 = 'Ex: d:\temp'.
MESSAGE e013(zmamin) WITH ''.
V_FLAG = ''.
Pls. try with this.
Don't forget to reward if useful.
04-20-2007 10:16 AM
Hi Neha,
check this FM:
<b>RZL_READ_FILE</b>
Read a file from the presentation server if no server name is given, or read file from remote server. Very useful to avoid authority checks that occur doing an OPEN DATASET. This function using a SAP C program to read the data.
<b>RZL_READ_DIR</b>
If the server name is left blank, it reads a directory from local presentation server, otherwise it reads the directory of the remote server.
<b>
RZL_READ_DIR_LOCAL</b>
Read a directory on the Application Server
hope this solves your problem
regards,
Navneeth.K
04-20-2007 10:18 AM
HI,
U can use the Function Module "EPS_GET_DIRECTORY_LISTING".
Regards,
-->Suresh
04-20-2007 10:24 AM
Hi Neha
Please check following functions
PC_CHECK_FILENAME
PC_CHECK_FILENAME_WITH_EXT
Or directory
PC_CHECK_FILENAME
PC_CHECK_FILENAME_WITH_EXT