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: 

How to save the report file in network drive

Former Member
0 Kudos

Hi experts,

Can any one of you pls tell me how can save the report file in network drive.

My requirement:

by running a report i wll get daily data into a list.SO, i want to keep this in a common drive (network drive:Z) where every one can acces the txt file.

I want the code in SAP to design this.

Awaiting for an early reply.

1 ACCEPTED SOLUTION

former_member189059
Active Contributor
0 Kudos

Is the Z drive in the application or presentation server ?

make sure the server has write access to the required folder

  • for presentation server

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = 'c:\test_xls.xls'

filetype = 'ASC'

write_field_separator = 'X'

TABLES

data_tab = itab.

for the application server, use

data: outfile(120).

OPEN DATASET outfile FOR APPENDING IN TEXT MODE ENCODING DEFAULT.

2 REPLIES 2

Former Member
0 Kudos

hi

U can store the report in a txt file and in a network drive by using the concept of datasets . i.e for a local system we use downloading function module

Regards

Srinivas

former_member189059
Active Contributor
0 Kudos

Is the Z drive in the application or presentation server ?

make sure the server has write access to the required folder

  • for presentation server

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = 'c:\test_xls.xls'

filetype = 'ASC'

write_field_separator = 'X'

TABLES

data_tab = itab.

for the application server, use

data: outfile(120).

OPEN DATASET outfile FOR APPENDING IN TEXT MODE ENCODING DEFAULT.