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

hotspot

Former Member
0 Likes
1,231

hi to all,

can any one tell me....in interactive report im getting various reports one by one by double click on the current report....but i wanted to know how can i get the another report by clicking only from particulat column to column and particular row to row.....

i know select from one row and one column by using sy-cucol and sy-curow....how can i do with two or multiple rows and columns.

raju.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,202

To go to different reports based on where the user has clicked:


      read table notif_int index selfield-tabindex.
      check sy-subrc = 0.
      if sy-cucol >= 12 and
         sy-cucol <= 19 and not
         notif_int-service_order is initial.
        " Display Service Order
        set parameter: id 'ANR' field notif_int-service_order.
        call transaction 'IW33' and skip first screen.
      else.
        " Display Notification
        set parameter: id 'IQM' field notif_int-notification.
        call transaction 'IW53' and skip first screen.
      endif.

Rob

6 REPLIES 6
Read only

Vinod_Chandran
Active Contributor
0 Likes
1,199

Hi Raju,

Use the HIDE statement when you write the list.

HIDE <var>.

E.g. HIDE W_NAME.

When you double click or click on this line the value of W_NAME will have the value from the selected line.

Cheers

Vinod

Read only

Lakshmant1
Active Contributor
0 Likes
1,199

Hi Raju,

Have a look at demo programs

DEMO_LIST_GET_CURSOR

DEMO_LIST_SET_CURSOR_1

DEMO_LIST_SET_CURSOR_2

DEMO_LIST_SET_CURSOR_3

Thanks

Lakshman

Read only

Former Member
0 Likes
1,199

Hi,

If you want to use hotspots with a single click, istead double click, use:

WRITE 'HOTSPOT' HOTSPOT.

Svetlin

Read only

Former Member
0 Likes
1,199

U can enable the

HOTSPOT

option in the fieldcatalog for the particular column u want to highlight.

Read only

Former Member
0 Likes
1,203

To go to different reports based on where the user has clicked:


      read table notif_int index selfield-tabindex.
      check sy-subrc = 0.
      if sy-cucol >= 12 and
         sy-cucol <= 19 and not
         notif_int-service_order is initial.
        " Display Service Order
        set parameter: id 'ANR' field notif_int-service_order.
        call transaction 'IW33' and skip first screen.
      else.
        " Display Notification
        set parameter: id 'IQM' field notif_int-notification.
        call transaction 'IW53' and skip first screen.
      endif.

Rob

Read only

Former Member
0 Likes
1,199

Use Hide statement with the required fields.

Then u can achieve the required functionality.

check for sample programs like DEMO_LIST_GET_CURSOR etc.

satish