2013 Jan 02 5:58 AM
Dear All ,
My Requirement is to Download PDF file through Background , i'm using RFC_remote_file for downloading files , its working fine for .txt and .xls , but i need to download this in PDF . Please help me in this problem .
Thanks and Regards ,
Ramkumar .R
2013 Jan 02 6:11 AM
you can convert your spool to pdf output by 'CONVERT_OTF_2_PDF' and use gui download by giving remote file server path and run this program by background . it will get downloaded.
hope it helps,
Vinoth
2013 Jan 02 6:15 AM
Hi Vinoth ,
But GUI_download is for the Foreground process, it wont work in Background , Please Show me some example.
2013 Jan 02 6:41 AM
after converting it to otf data use open data set. then
open dataset filefor output in binary mode.
if sy-subrc <> 0.
t_objtxt =3D 'Can not open file'. append t_objtxt.
if p_bs902 is initial.
write: / 'Can not open file on server' color col_negative,
p_fnam2.
message i016(38) with 'Can not open file on server' p_fnam2.
endif.
check 1 eq 2.
endif.
loop at pdf.
transfer pdf to p_fnam2.
endloop.
close dataset p_fnam2.
hope it helps,
Vinoth
2013 Jan 02 6:48 AM
Hi Vinoth ,
I don't want to save file in Application Server, i need to download that in Shared Folder , thats why i'm using RFC_REMOTE_file for Downloading file .in this case , i'm not able to download in PDF .
2013 Jan 02 7:52 AM
Hi Ramkumar,
Try this SAP standard program SAPFTPA
Thanks
Karthi
2013 Jan 02 8:16 AM
2013 Jan 02 9:10 AM
RSFTP005
RSFTP002
RSFTP007
RSFTP008
all the above programs are used for FTP...
Karthi
2013 Jan 02 10:35 AM