In this tutorial you will learn how to create HOTSPOT using ABAP, this HOTSPOT will allow you to click on the text and then pass the value to be used as a parameter for your query.
Here’s the ABAP Sample code to create the HOTSPOT. In this example, we will retrieve the customer name and address.
ZREPORT_HOTSPOT.
*&———————————————————————*
*& FREESAPTUTORIAL.COM
*&———————————————————————*
tables:
vbak,
*& FREESAPTUTORIAL.COM
*&———————————————————————*
tables:
vbak,
kna1.
START-OF-SELECTION.
select single kunnr into (vbak-kunnr) from VBAK.
write :/ vbak-kunnr HOTSPOT on.
“Event when user click on the text on the
“Screen
AT LINE-SELECTION.
“Event when user click on the text on the
“Screen
AT LINE-SELECTION.
select single land1 name1 into
(kna1-land1, kna1-name1) from kna1
where kunnr = vbak-kunnr.
(kna1-land1, kna1-name1) from kna1
where kunnr = vbak-kunnr.
write:/ kna1-land1, kna1-name1.
Post a Comment