field selection in simple list
I have a simple list report with a lot of figures.When I click on a figure I want to know where I made the click on tha screen, in order to show some details.
Can u help me?
Rich Heilman replied
Here is a short sample program which will help you understand how to do it. This is just one way of doing it.
report zrich_0002 no standard page heading. data: ivbak type table of vbak with header line. data : cursor_field(30), cursor_line type i. select-options: s_vbeln for ivbak-vbeln. start-of-selection. select * into corresponding fields of table ivbak from vbak where vbeln in s_vbeln. loop at ivbak. format hotspot on. write:/ ivbak-vbeln. format hotspot off. endloop. at line-selection. get cursor field cursor_field line cursor_line. read table ivbak index cursor_line. set parameter id 'AUN' field ivbak-vbeln. call transaction 'VA03' and skip first screen.