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: 

Downloading PDF through Background.

Former Member
0 Kudos
539

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

8 REPLIES 8

vinoth_aruldass
Contributor
0 Kudos
184

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

0 Kudos
184

Hi Vinoth ,

   But GUI_download is for the Foreground process, it wont work in Background , Please Show me some example.

0 Kudos
184

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

0 Kudos
184

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 .

Former Member
0 Kudos
184

Hi Ramkumar,

Try this SAP standard program SAPFTPA

Thanks

Karthi

0 Kudos
184

Hi ,

    This program does not exits .

0 Kudos
184

RSFTP005

RSFTP002

RSFTP007

RSFTP008

all the above programs are used for FTP...

Karthi

0 Kudos
184

Hi  Karthi ,

             Still got confused, can u show some examples .