ā2012 Nov 12 11:33 AM
Hi All,
Our requirement is validate the Application Server Directory.
for that we are using "RZL_READ_DIR_LOCAL" this fm.
when i pass the wrong name of the directory its go to dump.
now how can i validate the Application Server Directory?
We use another fm "FILE_VALIDATE_NAME" to validate the Application Server Directory.
in this fm we pass the either correct or wrong Directory it shows the "Directory does not Exist".
We are using "windows 7" os.
What was the problem/
Thankyou,
Vishnu p.
ā2012 Nov 12 1:19 PM
Pass exceptions to FM. IF the directorary is not there it does not dump.In this case sy-subrc will be 2.
PARAMETER: p_fdir type pfeflnamel DEFAULT '/usr/sap/tmp'.
data: begin of it_filedir occurs 10.
include structure salfldir.
data: end of it_filedir.
CALL FUNCTION 'RZL_READ_DIR_LOCAL'
EXPORTING
name = p_fdir
TABLES
file_tbl = it_filedir
EXCEPTIONS
argument_error = 1
not_found = 2
OTHERS = 3.
ā2012 Nov 12 1:19 PM
Pass exceptions to FM. IF the directorary is not there it does not dump.In this case sy-subrc will be 2.
PARAMETER: p_fdir type pfeflnamel DEFAULT '/usr/sap/tmp'.
data: begin of it_filedir occurs 10.
include structure salfldir.
data: end of it_filedir.
CALL FUNCTION 'RZL_READ_DIR_LOCAL'
EXPORTING
name = p_fdir
TABLES
file_tbl = it_filedir
EXCEPTIONS
argument_error = 1
not_found = 2
OTHERS = 3.