11-27-2007 7:56 AM
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
11-27-2007 7:57 AM
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.
11-27-2007 7:57 AM
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.
11-27-2007 7:57 AM
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á
11-27-2007 7:58 AM
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.
11-27-2007 8:05 AM
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...