07-10-2006 7:15 AM
i would like to add a hotspot to one field and to that in the secondary list, it should display the respected material description and quantity details. can u please suggest me.
07-10-2006 7:17 AM
Use the formating option:
<b><b>FORMAT HOTSPOT ON.</b>
write itab-matnr.
FORMAT HOTSPOT OFF.</b>
At line selection you can identify the clicked item and make a selection for that material and then write se4condary list.
or see the link for example
http://www.ct-software.com/abap-pool/yprod001.htm
rgds,
TM.
Message was edited by: Thomas Mann
07-10-2006 7:17 AM
When you say HOTSPOT I am assuming that you are using a ALV Grid / List. In that case in the field catalog there will be a field called HOTSPOT, just set that to X for the field for which you want to set the hotspot.
Regards,
Ravi
Note : Please mark all the helpful answers
07-10-2006 7:18 AM
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
i think if u make any hotspot for any field it works for whole line better u use cursor
07-10-2006 7:18 AM
Hi,
Use hotspot on after the write statement on the field where you want to display the hotspot,
Refer the ex. below,
REPORT ZTM .
write: sy-uname hotspot on.
Rgds,
07-10-2006 7:38 AM
hi thank u friends i now how to use hotspot.but i dont know how to get the data for one field when i pick that i should go to the secondary list and i need to display that descriptionand it is not alv
07-10-2006 7:57 AM
Hi,
Check this sample code...
REPORT ZTEST_HOT .
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.
Regards
vijay
07-10-2006 7:58 AM
<b>REPORT demo_list_format_hotspot.
INCLUDE <list>.
START-OF-SELECTION.
WRITE 'Now comes a'.
FORMAT HOTSPOT ON COLOR 5 INVERSE ON.
WRITE 'HOTSPOT'.
FORMAT HOTSPOT OFF COLOR OFF.
AT LINE-SELECTION.
WRITE / 'New list AT-LINE-SELECTION'.
SKIP.
WRITE 'This is also a hotspot:'.
WRITE icon_list AS ICON HOTSPOT.
</b>
07-10-2006 7:45 AM
loop at itab.
FORMAT HOTSPOT ON.
write itab-matnr.
FORMAT HOTSPOT OFF.
endloop.
or give in fieldcat
07-10-2006 9:15 AM
HI FRIENDS i have got that how to do, but i have another doubt. actually i am displaying data for every month by totalling every day
yr1
jan 12
feb 13
.
.
dec 20
howevr the above data shows for every month quantity, as per the quantity(hotspot) i suppose to get the data for the respected material description of each quantity. thank u .