cancel
Showing results for 
Search instead for 
Did you mean: 

Link to URL in FPM FORM UIBB does not work

Former Member
0 Kudos

Hello,

I have tried to display URL on FPM FORM uibb but I could not get it to work and just to let you know, I tried to follow the SCN thread http://scn.sap.com/thread/3163322.

I have implemented the method IF_FPM_GUIBB_FORM~GET_DEFINITION of my custom feeder class Z**** as follows.

Types: BEGIN OF ty_link,

              zurl          TYPE string,

              Zabs_url   TYPE string,

            END OF ty_link .

Method IF_FPM_GUIBB_FORM~GET_DEFINITION.

DATAls_field           TYPE fpmgb_s_formfield_descr,

           l_component    TYPE abap_compdescr.

   eo_field_catalog ?= cl_abap_tabledescr=>describe_by_name( 'TY_LINK' ).

   LOOP AT eo_field_catalog->components INTO l_component.

     CLEAR: ls_field.

     CASE l_component-name.

       WHEN 'ZURL'.

         CLEAR: ls_field.

         ls_field-name                        = l_component-name.

         ls_field-label_text                  = 'Click Link'.

         ls_field-default_display_type  = 'LU'.

         ls_field-link_ref                     = 'ZABS_URL'.

         APPEND ls_field TO et_field_description.

     ENDCASE.

   ENDLOOP.

Endmethod.

Then I implemented method IF_FPM_GUIBB_FORM~GET_DATA to get populate the URL reference field ZABS_URL.

Method IF_FPM_GUIBB_FORM~GET_DATA.

data: ls_field_usage like line of ct_field_usage.

   field-symbols: <fs_data> type ty_link.

   assign cs_data to <fs_data>.

   <fs_data>-zabs_url  = 'https://www.google.com/'.

   ev_data_changed    = 'X'.

Endmethod.

Here's what I see as output (link is not clickable😞


Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Steve,

you have already filled your technical link ref field with the URL, now you only need a text for the URL, otherwise only blank will be displayed, which you cannot click. Add in your get_data method the following line:

<fs_data>-zurl = 'Click here to get to Google'.

Best regards

Jinchi

Former Member
0 Kudos

Jinchi,

Thank you very much! It worked!!!

S

Answers (0)