Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

AL11... Save file onto Server/Host

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

good

go through this link

http://www.sap-img.com/basis/basis-faq.htm

thanks

mrutyun^

3 REPLIES 3

Former Member
0 Kudos

hi

good

go through this link

http://www.sap-img.com/basis/basis-faq.htm

thanks

mrutyun^

Former Member
0 Kudos

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

0 Kudos

Thanks for helping me. Sorry for assigning points late