Application Development and Automation 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: 
Read only

Hyperlink to a local file.

Former Member
0 Likes
972

Hi ABAP Masters,

I am developing a screen program that gets a file from a local PC (example desktop) and then there is an output field that displays the hyperlink of that file.

Is it possible to create a hyperlink to that local file such that when the hyperlink is clicked the file is downloaded for viewing?

If yes, can you please help me on how to do this?

Thank you so much!

Regards,

Onyx

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
828

use a text edit control:

compare sample program SAPTEXTEDIT_DEMO_DRAGDROP

hope that helps

Andreas

Hi ABAP Masters,

I am developing a screen program that gets a file from a local PC (example desktop) and then there is an output field that displays the hyperlink of that file.

Is it possible to create a hyperlink to that local file such that when the hyperlink is clicked the file is downloaded for viewing?

If yes, can you please help me on how to do this?

Thank you so much!

Regards,

Onyx

4 REPLIES 4
Read only

andreas_mann3
Active Contributor
0 Likes
829

use a text edit control:

compare sample program SAPTEXTEDIT_DEMO_DRAGDROP

hope that helps

Andreas

Read only

0 Likes
828

Hi Andreas,

Thank you for your suggestion.

Sorry I am not familiar with text edit control.

Can you give me an overview about this?

Your response is highly appreciated.

Regards,

Onyx

Read only

former_member156446
Active Contributor
0 Likes
828

On double click on the file path you need to capture that path of the file and pass it on to CL_GUI_FRONTEND_SERVICES=>EXECUTE method and it will open the file for you.

Read only

0 Likes
828

Hi J@Y,

How will I capture the path of the file so that I will pass it on to the CL_GUI_FRONTEND_SERVICES=>EXECUTE module?

Thanks for your help..

Regards,

Onyx