Application Development and Automation 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: 
Read only

HOTSPOT ON

Former Member
0 Likes
1,160

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
Read only

Former Member
0 Likes
1,117

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.

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

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,117

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

Read only

Former Member
0 Likes
1,118

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.

Read only

Former Member
0 Likes
1,117

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

Greetings,

Blag.

Read only

Former Member
0 Likes
1,117

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

Read only

0 Likes
1,117

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.

Read only

0 Likes
1,117

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