2024 Apr 16 2:34 PM - edited 2024 Apr 16 2:35 PM
Hi,
I have a problem with an ALV OO, I'm using hotspot and edit, but not on the same field and when I click on the hotspot field it always retrieve index = 1. I commented edit functionality and hotspot works fine but the requirement is to have both. Any suggestion? Thanks!
2024 Apr 16 3:43 PM
2024 Apr 16 3:55 PM
Hi, thanks for replying, I also tried to use dobleclick but same result, it always returns index = 1 even though I clicked other row.
2024 Apr 17 9:36 AM
It's a bug in your program then. Or if it's not, check SAP notes or contact SAP support.
2024 Apr 17 9:38 AM
By the way, there are lots of SAP demo programs, try them to check what line is returned by the double click.
2024 Apr 16 3:59 PM
Read first 2799015 - ALV Grid: Transfer of incorrect line for hotspot in editable grid (SAP_BASIS 753 and +) and similar notes.
2024 Apr 16 4:18 PM
2024 Apr 16 4:30 PM
2024 Apr 16 6:44 PM
Thanks for reply, that note says it's for 753 to 754, current client is 757. Thanks!
2024 Apr 16 4:00 PM
2024 Apr 16 6:45 PM
Thanks for reply, we had that solution as a workaround but client still wanna try with hotspot.
2024 Apr 16 9:05 PM
What parameter are you using: e_row_id or es_row_no? In es_row_no you should get the right index.
2024 Apr 16 9:08 PM
2024 Apr 16 9:26 PM - edited 2024 Apr 16 9:36 PM
No, it works:
I have an example of a editable ALV which contains a hotspot on a non-editable field. I click on the hotspot an a popup with the text opens.
The field with the hotspot has to be non-editable.
2024 Apr 16 11:25 PM
Only status field is editable
then I click on 4th row to take me to AS03
now the fieldname is right, but index still 1 though I clicked 4th row.
2024 Apr 17 7:46 AM
Remove the checkbox property from the field and paste your code.
2024 Apr 17 7:52 AM - edited 2024 Apr 17 9:31 AM
"but client still wanna try with hotspot."
As you desperately ask for a clickable editable hotspot field, a trick is to have the hotpot field not editable by default, make it editable when you enter the field by tabulation and make it not editable again when you leave it (still by typing tabulation), but it's a trick and I doubt it will work very well, and you'll spend a lot of time to make it work more or less correctly (if even possible).
A more simple solution which will always work, is to have a toggle button to make the column of hotspots editable or not editable.
2024 Apr 17 7:56 AM
2024 Apr 17 9:34 AM
I already answered "It's not possible. Use double click instead." I meant to have a hotspot field by default, and to change it to a non-hotspot editable field either by tabulation or by any button (ABAP code will change the definitions of fields).
2024 Apr 17 7:55 AM
If something does not work as you expect, you should check the SAP notes or contact SAP support.