07-23-2007 4:52 PM
Hi gurus,
Need some help Thanks in advance!!
Three questions:
1. How to find out the server name in AL11 for a particular directory?
2. I used OPEN DATASET...... to save a file onto the BW server.. in a directory which I can see from AL11. How can I find the physical path of the file?
3. Now i am asked to save this file on to a Oracle Host... Is it possible?
Any help would be appreciated!
Linda
07-23-2007 5:00 PM
07-23-2007 5:00 PM
07-23-2007 5:02 PM
Hi Linda,
Use <b>RZL_READ_DIR_LOCAL</b> function module to get the application server file names for a particular directory.
Check this sample code
REPORT ZDIRFILES.
PARAMETER: p_fdir type pfeflnamel DEFAULT '/usr/sap/tmp'.
data: begin of it_filedir occurs 10.
include structure salfldir.
data: end of it_filedir.
START-OF-SELECTION.
Get Current Directory Listing for OUT Dir
call function 'RZL_READ_DIR_LOCAL'
exporting
name = p_fdir
tables
file_tbl = it_filedir.
List of files are contained within table it_filedir
loop at it_filedir.
write: / it_filedir-NAME.
endloop.
Thanks,
Vinay
07-26-2007 9:37 PM