Application Development and Automation 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: 
Read only

output file from ABAP program

Former Member
0 Likes
1,297

I am using the program Z_SAP_HIERARCHY_DOWNLOAD to output a hierarchy in BW to a specified drive. It works fine when I go to SE38 and run it. However, when I run it from a process chain, it doesn't output the file. How can I generate the output file by running the program from a Process Chain? Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
542

Hello Uday,

i suppose if you run the program within a process chain it will be started

in a background process. All downloads via the SAPGUI onto your local

PC (or network drive) are not possible in the background because there is no

connection to your PC during the excecution of the report in the background.

Try to save the download on an accessible file system on the application server

and download it from there afterwards.

Which function module is used to download the data (GUI_DOWNLOAD or the older version WS_DOWNLOAD) in your report?

To save data on the application server use the ABAP statements

OPEN DATASET filename FOR OUTPUT -> for creation of file

TRANSFER record TO filename -> for transfer of one record

CLOSE DATASET filename -> for closing the file

Regards,

Ralf Matthies

1 REPLY 1
Read only

Former Member
0 Likes
543

Hello Uday,

i suppose if you run the program within a process chain it will be started

in a background process. All downloads via the SAPGUI onto your local

PC (or network drive) are not possible in the background because there is no

connection to your PC during the excecution of the report in the background.

Try to save the download on an accessible file system on the application server

and download it from there afterwards.

Which function module is used to download the data (GUI_DOWNLOAD or the older version WS_DOWNLOAD) in your report?

To save data on the application server use the ABAP statements

OPEN DATASET filename FOR OUTPUT -> for creation of file

TRANSFER record TO filename -> for transfer of one record

CLOSE DATASET filename -> for closing the file

Regards,

Ralf Matthies