cancel
Showing results for 
Search instead for 
Did you mean: 

IF_FPM_GUIBB_LIST - Link to url in column

former_member186822
Participant
0 Kudos

Hallo ,

I have a report where I list fields from table DRAD . ( Document Management )

In a column called DOKNR, I want to have an url with link to SAP std Web Dynpro: /PLMU/WDA_DIR_OIF   ..to show the Document.

In my method:  IF_FPM_GUIBB_LIST~GET_DEFINITION I have coded following:

    DATA: wa_field TYPE fpmgb_s_listfield_descr.

    CLEAR wa_field.
*  Technical field
    wa_field-name                                 = 'DOKNR'.
    wa_field-DEFAULT_DISPLAY_TYPE = 'LU'.
    wa_field-LINK_REF                          = 'TEC_FIELD_URL'.
    APPEND wa_field TO et_field_description .

I add the url to the field 'TEC_FIELD_URL' in my table, but the DOKNR column is not displayed as a "hotspot" .

What is wrong ?

Regards Rolf

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Something like this:

in get_data

if iv_eventid->mv_event_id = 'FPM_GUIBB_LIST_CELL_ACTION' and iv_raised_by_own_ui = abap_true.

     data para type ref to if_fpm_parameter.

     data ex type c length 30.

     field-symbols <row> type fpmgb_s_fieldusage.

     para = iv_eventid->mo_event_data.

     para->get_value( exporting iv_key = 'FIELD_NAME'  importing ev_value = ex ).

     if ex = 'FieldNAME'.

      "do stuff

       endif.

     endif.

   endif.

Answers (2)

Answers (2)

former_member186822
Participant
0 Kudos

I changed the field in the config from "Text" to "Link to Action", and than I got a "Hotspot".

BUT:

How can I get the value that was "clicked", and how can I call Web Dynpro:

  /PLMU/WDA_DIR_OIF

from my method IF_FPM_GUIBB_LIST~PROCESS_EVENT ?

Former Member
0 Kudos

Hi Rolf,

Where is your code,is that in R/3 report,i dont think so,inorder to give link to action in Webdypro folloew the below piece of code,

   DATA :lr_link_action  TYPE REF TO cl_salv_wd_uie_link_to_action.

   CREATE OBJECT lr_link_action.
        lr_link_action->set_text_fieldname( 'DOKNR' ).
        ls_column-r_column->set_cell_editor( lr_link_action ).

when you use this code on alv field with hotspot will come,write you code in the method ON_CELL_ACTION ,pass the URL to Navigate method

Regards,

Lavanya.