cancel
Showing results for 
Search instead for 
Did you mean: 

download pdf file from AL11 into PC from WEB-IC

Former Member
0 Kudos

Hi! This is my first post in this forum, but i read it a lot of times!

Well, my question is very easy but i don´t know if exists any solutions.

I´m programing a WEB-IC. In this WEB-IC i have a buttom to download a pdf file from SAP Directory (AL11).

I usually used "Archivfile_server_to_client" to download files to pc, but i don´t know why it doesn't works on WEB-IC.

Do you know how to get the file to my PC ??

Thanks a lot!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Nobody can help me?

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi,

In webclient, you cannot use the GUI frontend methods for downloading files to presentation server. I have not worked in IC, but I guess the following applies for IC too. You have to set the response of your "server" object with the content and fill in various information related to the content. If you are familiar with the SICF transactions, you may look at the handler classes for more clues. Also, this wiki may help.

[http://wiki.sdn.sap.com/wiki/display/CRM/ProvidingcontentdownloadserviceinCRMWebClient+UI]

Regards,

Arun Prakash

Former Member
0 Kudos

Thanks Arun

I´m trying to do that, but i have pdf docs not excels, so i can't use. Also do not really know how to use the SICF.

Do you know how to print a Smartform from WEB-IC. Maybe i can solve my problem with that too.

Regards

Alberto Aguilera

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi,

A content is just a content. If you can generate the binary data containing the pdf object, you can download that too. Anyway, if you want to print documents, the simplest way is to pop it in a separate page and add a button to that page. The button should execute a javascript(on_client_click) "window.print();"

Regards,

Arun Prakash

Former Member
0 Kudos

Thanks again Arun,

Do you have any example to see how open a new window with the pdf information? It will resolv my problem!

Thanks you

Alberto Aguilera