cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment link

voss
Contributor
0 Kudos

Hello *,

I am looking for a possibility to attach a link to a folder. Comparable with the way to store an URL (SAP Standard).

On file-system, accessable via Windows Explorer, several files will be stored.

The idea is to access those files within the opportunity to be able to open existing and to add further files.

Did anyone solve such a requirement yet?

Kind regards

Thomas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Thomas,

If you have a link to the document in the database, you can use the GET_P to make the field a clickable link.

For instance using the following code (in this case where the attribute 'File' contains a link to the file location, and used in a tableview):


DATA: lr_entity TYPE REF TO if_bol_bo_property_access,

         lr_data TYPE REF TO data.

   FIELD-SYMBOLS: <fs_file> TYPE char255.


CASE iv_property.

     WHEN if_bsp_wd_model_setter_getter~fp_fieldtype.

       rv_value = cl_bsp_dlc_view_descriptor=>field_type_link.

     WHEN if_bsp_wd_model_setter_getter=>fp_onclick.

       lr_entity ?= get_bo_by_index( iv_index ).

       lr_data = lr_entity->get_property( 'FILE' ).

       ASSIGN lr_data->* TO <fs_file>.

       rv_value = <fs_file>.

   ENDCASE.


Regards,

Pieter