07-26-2006 10:56 AM
Hi,
how to implement hotspot on ?
i my write report...
loop at it_kna1 into ws_kna1.
write: / ws_kna1-kunnr, ws_kna1-name1
HOTSPOT ONws_kna1-stcd2 .
07-26-2006 10:58 AM
Hi,
loop at itab.
write:/ itab-bukrs,
itab-belnr hotspot.
endloop.
Thanks.
If this helps you reward with points.
07-26-2006 10:59 AM
<b>EX...</b>
Check this sample code...
.
data: field(20),val(10).
data: itab like vbak occurs 0 with header line.
select * from vbak up to 20 rows into table itab.
loop at itab.
write:/ itab-vbeln hotspot.
clear itab.
endloop.
at line-selection.
get cursor field field value val.
if field = 'ITAB-VBELN'.
write 'second list'.
write val.
endif.
ALSO USED...
FORMAT HOTSPOT ON.
write itab-matnr.
FORMAT HOTSPOT OFF.
At line selection you can identify the clicked item and make a selection for that material and then write se4condary list.
07-26-2006 11:04 AM
Hai Nick
Go through the following Code
<b>Tables : mara.
Data : begin of it_mara occurs 0,
matnr like mara-matnr,
mtart like mara-mtart,
meins like mara-meins,
end of it_mara.
parameters : p_mtart like mara-mtart default 'ROH'.
select matnr
mtart
meins
from mara
into table it_mara
where mtart = p_mtart.
if sy-subrc = 0.
sort it_mara by matnr.
endif.
if not it_mara[] is initial.
loop at it_mara.
write 😕 it_mara-matnr hotspot on,
it_mara-mtart hotspot on,
it_mara-meins hotspot on.
endloop.
endif.</b>
Regards
Sreeni
Message was edited by: Sreenivasulu Ponnadi
07-26-2006 11:17 AM
Hi Nick,
this is only how its written-
if u want hotspot on all fields write HOTSPOT ON wit every field or 1 field as per ur requirement.
loop at it_kna1 into ws_kna1.
write: /ws_kna1-kunnr HOTSPOT ON,
ws_kna1-name1 HOTSPOT ON,
ws_kna1-stcd2 HOTSPOT ON.
endloop.
Regards,
Seema.
07-26-2006 11:21 AM
just check this code
LOOP AT ITAB.
WRITE:/5 ITAB-MATNR <b>HOTSPOT ON</b>,20 ITAB-WERKS,40 ITAB-LGORT,60
ITAB-MAKTX,80 ITAB-INSME,95 ITAB-RETME,110 ITAB-KWMENG.
<b> HIDE ITAB-MATNR.</b>
AT END OF MATNR.
SUM .
SKIP.
WRITE:/ SY-ULINE.
WRITE:/110 ITAB-KWMENG COLOR 4.
SKIP 5.
ENDAT.
ENDLOOP.
07-26-2006 12:20 PM
Hi,
Go to transaction DWDM. You can see lot of examples with source code.
Regs,
Venkat Ramanan N