Skip to Content
avatar image
Former Member

Hotspot in Classic ABAP report not working

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)
Add comment
10|10000 characters needed 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.

  • Get RSS Feed

3 Answers

  • May 18, 2017 at 12:58 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • May 20, 2017 at 07:31 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • May 21, 2017 at 09:06 PM

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

    Add comment
    10|10000 characters needed characters exceeded