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: 

how to set hotspot for particular field.

Former Member
0 Kudos

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.

9 REPLIES 9

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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,

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

<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>

Former Member
0 Kudos

loop at itab.

FORMAT HOTSPOT ON.

write itab-matnr.

FORMAT HOTSPOT OFF.

endloop.

or give in fieldcat

Former Member
0 Kudos

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 .