cancel
Showing results for 
Search instead for 
Did you mean: 

File download function when an action triggers

Former Member
0 Kudos

Hi,

I am having XSTRING.

When user click on popup action button, user has to get file browse functionallity.

after choosing the file path XSTRING has to convert into PDF format and store in the path.

My problem is how to get file browse functionallity without using UI element.

I tried F4_SEARCHFILE. But this is giving error like this is for GUI.

Please let meknow if any way is there.

Regards,

sarath

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

any updates

Former Member
0 Kudos

Hi,

You can use the static class cl_wd_runtime_services=>attach_file_to_response to download the file in WDA. It will produce a download box just as you get when you download something from the browser.

Refer to the below link to find out how to use the class method -

http://www.divulgesap.com/blog.php?p=NTc=

Cheers,

Ravi