05-18-2017 1:28 PM
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.
05-18-2017 1: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?
05-18-2017 1: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?
05-18-2017 2:31 PM
I have already debugged and tried putting the code at both places but none of them works. No time to implement ALV.
05-18-2017 3:12 PM
Then copy/paste the code where you wrote the icons and a (small) description of the pf-status set.
05-18-2017 3:47 PM
05-20-2017 7:13 AM
Might be quicker than figuring out why your hotspots aren't working.
05-20-2017 9:48 AM
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:
05-20-2017 8:18 AM
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.
05-20-2017 8: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.
05-21-2017 10: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!!