cancel
Showing results for 
Search instead for 
Did you mean: 

web dynpro abap ALV link to (hyperlink)

Former Member
0 Kudos

Hi all - It is possible to make values in a column Hyperlink? I know that regular tables has an attribute (link to) but in ALV I don't see it. If is possible can you explain to me how to?

Thanks!

Jason P-V

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can have it in ALV also.

DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

  lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
  IF lo_cmp_usage->has_active_component( ) IS INITIAL.
    lo_cmp_usage->create_component( ).
  ENDIF.

  DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
  lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).

  DATA lv_value TYPE REF TO cl_salv_wd_config_table.
  lv_value = lo_interfacecontroller->get_model(
  ).

data: lr_col type ref to cl_salv_wd_column,
      lr_colH type ref to cl_salv_wd_column_header,
lr_link1    TYPE REF TO cl_salv_wd_uie_link_to_action.  "Link to action type

CALL METHOD lv_value->if_salv_wd_column_settings~get_column
  EXPORTING
    id     = 'BEGDA'
  receiving
    value  = lr_col.

          CREATE OBJECT lr_link1.
          lr_link1->set_text_fieldname( 'BEGDA' ).
          CALL METHOD lr_col->set_cell_editor
            EXPORTING
              value = lr_link1.

Regards,

Lekha.

Former Member
0 Kudos

Lekha - Thank you, this really worked!

-Jason P-V

Former Member
0 Kudos

Hello

Up to this part I have understood like setting up hyperlink/hotspot, could please suggest how to link standard webdynpro application on ALV column click, CR request number.

example:- I have a column name CR request field i.e. USMD_CREQUEST which has hyperlink/hotspot but as of not it could not lead me anywhere, I have to link this with USMD_EDITION_CREQUEST webdynpro which is a standard SAP MDGF application, and also want to set parameter value from cr request in alv to USMD_EDITION_CREQUEST CR number field.

Please explain with example.

Thanks

Ketan

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Lekha,

If we want to display the data in the form of ALV display, we will make use of SALV_WD_TABLE in component usages and we do the remaining stuff. But I never come across the code that u mentioned above. I am not clear about this. can we get the code using code wizard? And where will we write this code? Please guide me Lekha. I am new to this WDAbap.

Regards,

Yugesh

Former Member
0 Kudos

Yugesh - copy the code that Lekha post here and change the values to your values, put the code in the WDDOINIT method (this method is the first method that gets call when you run the app) there's no need for the wizard, the code as it is work perfect.

If any question let me know!

Jason P-V

Former Member
0 Kudos

Hi Yugesh,

Are you done with your requirement....... Is your issue resolved.

Regards,

Lekha.

Former Member
0 Kudos

HELLO,

I KNOW THIS IS OLD THREAD BUT I REALLY WISH TO KNOW IF I CAN GENERATE THE ABOVE MENTIONED CODE THROUGH CODE WIZARD?

nagarjun_kalletla
Participant
0 Kudos

Thanks Lekha,

Your Code was Very useful......

My requirement is like this when we click on hyper link ...

Exp : in VBAK I made the column VBELN as hyper link ...

When user click on the link (Vbeln) ... For that respected Vbeln value

Item data From Vbap should come ....

So my question is : Is it possible to get the above requirement ? and

Where should we configure the vbap either same component or any new component..

Please reply.............

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi Lekha,

If we want to display the data in the form of ALV display, we will make use of SALV_WD_TABLE in component usages and we do the remaining stuff. But I never come across the code that u mentioned above. I am not clear about this. can we get the code using code wizard? And where will we write this code? Please guide me Lekha. I am new to this WDAbap.

Regards,

Yugesh

Former Member
0 Kudos

Lekha - Thank you, this really worked!

-Jason P-V