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: 

HOTSPOT ON

Former Member
0 Kudos

Hi there,

I have put the "hotspot on" for only one field in my write stmt. Hide also consists only one field.

In the basic list i can see the hand icon only on that field but it is allowing me to double click any where on the row and secondary list.

I am thinking it should take me to secondary list only when I click on the hotspot fields.......plz correct me if i am wrong. what is the possible reason for the whole row to function?

Thanks

1 ACCEPTED SOLUTION

former_member583013
Active Contributor
0 Kudos

Maybe this snippet can give you a hint...


INCLUDE <LIST>.

START-OF-SELECTION.
  WRITE 'Now comes a'.
  FORMAT HOTSPOT ON COLOR 5 INVERSE ON.
  WRITE 'HOTSPOT'.
  FORMAT HOTSPOT OFF COLOR OFF.

AT LINE-SELECTION.
  WRITE / 'New list AT-LINE-SELECTION'.
  SKIP.
  WRITE 'This is also a hotspot:'.
  WRITE ICON_LIST AS ICON HOTSPOT.

It's not mine....I copied some time ago -:)

Greetings,

Blag.

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

Double-click work with the whole line, hotspot only insure that one click is sufficient.

If you want to restrict usage of double-click use GET CURSOR FIELD = field and check the field on which user has clicked.

Regards

former_member583013
Active Contributor
0 Kudos

Maybe this snippet can give you a hint...


INCLUDE <LIST>.

START-OF-SELECTION.
  WRITE 'Now comes a'.
  FORMAT HOTSPOT ON COLOR 5 INVERSE ON.
  WRITE 'HOTSPOT'.
  FORMAT HOTSPOT OFF COLOR OFF.

AT LINE-SELECTION.
  WRITE / 'New list AT-LINE-SELECTION'.
  SKIP.
  WRITE 'This is also a hotspot:'.
  WRITE ICON_LIST AS ICON HOTSPOT.

It's not mine....I copied some time ago -:)

Greetings,

Blag.

former_member583013
Active Contributor
0 Kudos

BTW...Change your name....Using just <b>Alchemi </b> is not allowed -:)

Greetings,

Blag.

Former Member
0 Kudos

Hi,

No, if you turn "hotspot on" for one field, then you can only click on that field.

Pleae paste your code so i can check.

Regards,

RS

0 Kudos

if sy-subrc = 0.

loop at itab.

write:/ itab-ebeln HOTSPOT ON, itab-ebelp, itab-loekz, itab-matnr,

itab-bukrs.

HIDE: ITAB-EBELN.

endloop.

endif.

0 Kudos

Hi,

There is nothing wrong with the code. I should display "hotspot" on field value of itab-ebeln.

You should only click where the hotspot is. If you double-click, it can be done on whole line. So, if you double click then, AT LINE-SELECTION event will triggers from any line, any field.

I hope i clarify your doubt.

Regards,

RS