Application Development 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: 

Making a field in areport clickable

Former Member
0 Kudos

Hi Guys,

May I know how can I make a field in a report clickable?

Once clicked, it will generate another report...

This is however not an ALV, its just a simple report.

Thanks for all your inputs...

Regards,

Mark

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi..

By using ( hide,HOTSPOT,At line-selection ) keywords u can able to do..

Eg:-

Try this code.

data : begin of itab occurs 0,

Square type i,

Cube type i,

end of itab.

START-OF-SELECTION.

do 2 times.

itab-square = sy-index * 2.

itab-cube = sy-index * 3.

append itab.

enddo.

Loop at itab.

write 😕 itab-cube , itab-square <b>hotspot on</b> color 5.

hide itab-square.

endloop.

<b>At line-selection.</b>

<b>**Here U may write the another report codings***</b>

write itab-square.

Regards

Bala.

4 REPLIES 4

Former Member
0 Kudos

Hi..

By using ( hide,HOTSPOT,At line-selection ) keywords u can able to do..

Eg:-

Try this code.

data : begin of itab occurs 0,

Square type i,

Cube type i,

end of itab.

START-OF-SELECTION.

do 2 times.

itab-square = sy-index * 2.

itab-cube = sy-index * 3.

append itab.

enddo.

Loop at itab.

write 😕 itab-cube , itab-square <b>hotspot on</b> color 5.

hide itab-square.

endloop.

<b>At line-selection.</b>

<b>**Here U may write the another report codings***</b>

write itab-square.

Regards

Bala.

Former Member
0 Kudos

Hi!

Like this:

LOOP AT gt_main INTO wa_main.

WRITE:/ wa_main-matnr HOTSPOT ON.

HIDE wa_main-matnr.

ENDLOOP.

at line-selection.

SUBMIT my_other_report WITH p_matnr = wa_main-matnr AND RETURN.

Regards

Tamá

Former Member
0 Kudos

at line selection.

AT LINE-SELECTION

Syntax

AT LINE-SELECTION.

Effect

This statement defines an event block whose event is triggered by the ABAP runtime environment during the display of a screen list - provided the scren cursor is on a list line and you select a function using the function code PICK. Through the definition of this event block, the standard list status is automatically enhanced in such a way that the function code F2 and, with it, the double-click mouse function is linked up to the function code PICK.

Note

If the function key F2 is linked with a function code different than PICK, each double click will trigger its even, usually AT USER-COMMAND, and not AT LINE-SELECTION.

Example

This program works with the standard list status. A line selection with the left mouse key causes the event AT LINE-SELECTION and creates details lists.

REPORT demo_at_line_selection.

START-OF-SELECTION.

WRITE 'Click me!' COLOR = 5 HOTSPOT.

AT LINE-SELECTION.

WRITE: / 'You clicked list', sy-listi,

/ 'You are on list', sy-lsind.

IF sy-lsind < 20.

SKIP.

WRITE: 'More ...' COLOR = 5 HOTSPOT.

ENDIF.

0 Kudos

Thanks a lot guys...

I am overwhelmed by the speed of your responses...

Thank you so much...

Any other suggestions, will still be greatly appreciated...