12-20-2006 2:33 AM
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
12-20-2006 3:05 AM
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
12-20-2006 3:05 AM
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
12-20-2006 3:20 AM
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
12-20-2006 3:44 AM
Hi,
A suggested,hotspot is the best approach.Check this tutorial for help.