cancel
Showing results for 
Search instead for 
Did you mean: 

Anybody help me to download a file

former_member224404
Active Participant
0 Kudos

I have dynamically created a linktoAction. I also have content of a file in a table. Now I want that by click on this link a dialog box will appear to download that file. By downloading, that file content will be transferred to local system.

Is it possible to do that. Help me with some sample code.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

have you tried <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/13/a1764299d76255e10000000a155106/frameset.htm">file export</a> or the FileDownload UI element? You can use method ATTACH_FILE_TO_RESPONSE of class CL_WD_RUNTIME_SERVICES .

Regards, Heidi

former_member224404
Active Participant
0 Kudos

Very many thanks heidi for your attention to my problem and cater to that effectively.

It really helped me to solve my problem. Now I have a small problem for you. I want to attach SAP web icon to the imagesource property of those dynamically created linktoaction. please suggest me how to do that.

Former Member
0 Kudos

Hi,

see <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ec/bb08428dab5f24e10000000a1550b0/frameset.htm">Handling web icons</a>

Regards, Heidi

former_member224404
Active Participant
0 Kudos

Thanks Heidi

Answers (0)