‎2007 Jun 06 6:12 PM
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.
‎2007 Jun 11 12:03 PM
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
‎2007 Jun 11 12:03 PM
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