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 in Classic ABAP report not working

Former Member
0 Kudos

I have copied the standard HR Time Statement Report to a Z-report to change the output format and have 2 icons as hot-spots in the output screen. But, at user-command is not triggered when I click on these icons. Please help.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

(If I remember) many function codes were not triggering the AT USER-COMMAND event (e.g. 'PICK', 'PF01'-'PF24', system codes starting with '%') but AT LINE-SELECTION or AT PFnn. (so go for debug)

Don't you have time enough to convert report to use classes like CL_SALV_TABLE or CL_DEMO_OUTPUT_STREAM?

9 REPLIES 9

raymond_giuseppi
Active Contributor

(If I remember) many function codes were not triggering the AT USER-COMMAND event (e.g. 'PICK', 'PF01'-'PF24', system codes starting with '%') but AT LINE-SELECTION or AT PFnn. (so go for debug)

Don't you have time enough to convert report to use classes like CL_SALV_TABLE or CL_DEMO_OUTPUT_STREAM?

0 Kudos

I have already debugged and tried putting the code at both places but none of them works. No time to implement ALV.

0 Kudos

Then copy/paste the code where you wrote the icons and a (small) description of the pf-status set.

0 Kudos

Also, I am on EHP6, if that makes any difference.

Might be quicker than figuring out why your hotspots aren't working.

0 Kudos

Yes, the handling is to be done during AT LINE-SELECTION event (same as double-click).

For both of them, there must be a function code "PICK" assigned to the F2 function key (dixit ABAP documentation for FORMAT ... HOTSPOT [{ON|OFF}|{= flag}]).

So, one has to make sure it works:

  • Either use the default GUI status (SET PF-STATUS space)
  • Or use a GUI status (SET PF-STATUS yourguistatus); make sure it exists, it is active, and it has function code "PICK" assigned to the F2 function key

Sandra_Rossi
Active Contributor
0 Kudos

You should not copy a standard program, you should better modify it so that any SAP correction is automatically handled during upgrade, as a general rule-of-thumb. Already discussed many times in the forum.

Kishore
Participant
0 Kudos

AT LINE-SELECTION is the event which you have to look for and use READ LINE sy-index FIELD VALUE to get the selected line.

Chintu6august
Contributor
0 Kudos

Hello,

AT LINE-SELECTION event you can write the condition based on value of ICON i.e work area field value using GET CURSOR statement along with system variable SY-LISEL.

thanks!!