Skip to Content
0
Nov 28, 2011 at 05:25 AM

Passing content to method cl_wd_runtime_services=>attach_file_to_response

53 Views

Hi all,

My requirement is that when a particular row on a table is clicked, it should open the relevant document. The document is stored in BDS. So Iam using the method cl_wd_runtime_services=>attach_file_to_response to display the document. But this method needs the content to be passed. Please let me know how to retrieve the content details from BDS, in order to convert it to xstring and then pass to this method. The document can be of any format in BDS.

My table is of format ROS_BP_ATTACHMENTS_S, where clicking on the COMP_ID should open the attachment.

Please suggest.