Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

field selection in simple list

Hello,

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?

Thank you!

Tags:
Former Member
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.

Regards,

Rich Heilman

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question