Skip to Content
0

Hotspot in Classic ABAP report not working

May 18, 2017 at 12:28 PM

163

avatar image
Former Member

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.

ts-issue.jpg (35.3 kB)
10 |10000 characters needed characters left characters exceeded

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.

0
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Raymond Giuseppi
May 18, 2017 at 12:58 PM
3

(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?

Show 5 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

1

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

0
Former Member

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

0

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
0
Kishore Gokara May 20, 2017 at 07:31 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Chintu adi May 21, 2017 at 09:06 PM
0

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!!

Share
10 |10000 characters needed characters left characters exceeded