on 11-29-2004 10:45 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 .
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.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.