Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Hyperlink in ALV

Former Member
0 Kudos

Hi All,

I am using radiobuttons to display to different field catalogs in ALV Report. Instead i want to display an hyperlink in the grid display and when i click on that it should display the other field catalog. Can u help me on this. Thanx in advance.

Regards,

Karthik

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Karthik,

The hotspot (hyperlink) will have to be enabled at a specific field level on the grid. So, for whichever field you want to have this feature, set the HOTPSOT attribute for that field to X in the field catalog.

Then you handle the event of hotspot click for the grid and do the same what you are doing for the radio button now. The following examples show you how to use the events.

With ALV Grid Control - BCALV_TEST_GRID_EVENTS

With REUSE function - BCALV_TEST_FULLSCREEN_EVENTS

Regards,

Ravi

Note - Please mark all the helpful answers

3 REPLIES 3

Former Member
0 Kudos

Karthik,

The hotspot (hyperlink) will have to be enabled at a specific field level on the grid. So, for whichever field you want to have this feature, set the HOTPSOT attribute for that field to X in the field catalog.

Then you handle the event of hotspot click for the grid and do the same what you are doing for the radio button now. The following examples show you how to use the events.

With ALV Grid Control - BCALV_TEST_GRID_EVENTS

With REUSE function - BCALV_TEST_FULLSCREEN_EVENTS

Regards,

Ravi

Note - Please mark all the helpful answers

Former Member
0 Kudos

Hi Karthik ,

I dont think there is a concept of hyperlink in ALV , but a similar concept exists called hotspot.

You can set hotspot on a field by setting the value of hotspot in the field catalog to 'X'.

Now in the ALV display when ever you click on a field which is hotspot enabled , then an event is trrigered , so you need to handle this event and write the code to display your secondary ALV .

Regards

Arun

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

A suggested,hotspot is the best approach.Check this tutorial for help.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a41...