Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

at line-selection

Former Member
0 Likes
324

Dear all,

I have a report, I want to double click on one line and It can run a module. But It fail.

the code is :

at line-selection.

perform module_A.

thanks you

John

Dear all,

I have a report, I want to double click on one line and It can run a module. But It fail.

the code is :

at line-selection.

perform module_A.

thanks you

John

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
290

If you are referring to list processing, then you may be able to use this example to help you.



report zrich_0002 no standard page heading.

data: ivbak type table of vbak with header line.

data : cursor_field(30),
       field_value(30) .

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.
    hide ivbak-vbeln.
    format hotspot off.
  endloop.

at line-selection.

  set parameter id 'AUN' field ivbak-vbeln.
  call transaction 'VA03' and skip first screen.

Regards,

RIch Heilman