cancel
Showing results for 
Search instead for 
Did you mean: 

Using Hotspot - Event

Former Member
0 Kudos

I have a report in which matnr is displayed. while writing matnr ,I have written "format hotspot on". Now when the user clicks it, i want to display the material description for the clicked matnr . Can anybody help me to do that ?

Thanking all of u in advance,

Shankar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shankara,

When the user clicks the field, event AT LINE-SELECTION is fired. Be sure that during list output you also have used the HIDE command to have the material number available when the event is raised.

In AT LINE-SELECTION you can then get the material description and show it. However you will need a CALL SCREEN to do is or open another list.

Regards,

John.

Former Member
0 Kudos

can u please send me a sample code illustrating how to do that ? It will be really helpful for me . Please help me out.

Former Member
0 Kudos

Hi Shankara,

.

.

format hotspot on.

Write: list-matnr.

Hide: list-matnr.

.

.

AT LINE-SELECTION.

SELECT SINGLE maktx

FROM makt

INTO zzl_maktx

WHERE matnr = list-matnr

AND spras = syst-langu.

WRITE: zzl_maktx.

Regards,

John.

Former Member
0 Kudos

Suppose I am displaying a report in the following format

Matnr other details

-


1 sdfs sdffgh fgfg

2 bm bn bnfgfht

-


subtotal based on something ......

-


3 sdfs gh fgf g

4 bm bn fg fht

5 jhkhkh jkhjkhjk

6 uiou uiouio

-


subtotal based on something ......

-


Then , my question is how can we know whether the user has clicked material 1 or material 4 ? (Assuming that material is the hotspot)

Sy-lilli will return current line.. But when grouping and sub totalling are there, how can we do calculations to find out the index of the internal table .. Without getting the index how can we get the material no: that the user clicks ? I hope u got my question .

Former Member
0 Kudos

This should be of good help to you.

http://help.sap.com/saphelp_46c/helpdata/en/34/8e73846df74873e10000009b38f9b8/frameset.htm

In case help is boring, use SY-LISEL, to find out the line selection and use READ CURRENT LINE to get the details of the line selected.

Regards,

Subramanian V.

Former Member
0 Kudos

Thank you very much for spending time to solve my problem .. At last i got a very good solution . Once again thanking all of you.

Answers (0)