Application Development and Automation 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: 
Read only

simple report output with multiple hotspots doing different things?

Former Member
0 Likes
1,692

Hi,

My client is asking for something that I think is impossible. So I decided to ask you experts for advice.

He wants me to create a simple report output, so no ALV. And in this report with write output statements,

he wants me to create multiple hotspots on different data. Depending on what data I'm clicking on, he wants

me to go to one transaction or another, or even open a website in a new browser window...

Now I know I can create a hotspot, but I don't think I can create multiple hotspots that do different actions depending on the data that I click on, right?

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
1,064

Hi Christophe,

This could be acheived.

Refer to the program : DEMO_CLASSICAL_REPORTING.

Regards,

Faiz

Hi,

My client is asking for something that I think is impossible. So I decided to ask you experts for advice.

He wants me to create a simple report output, so no ALV. And in this report with write output statements,

he wants me to create multiple hotspots on different data. Depending on what data I'm clicking on, he wants

me to go to one transaction or another, or even open a website in a new browser window...

Now I know I can create a hotspot, but I don't think I can create multiple hotspots that do different actions depending on the data that I click on, right?

Thanks!

6 REPLIES 6
Read only

Former Member
0 Likes
1,064

Hi,

Is it necessary to create hotspots?

Clients demanding it to do so?

Regards

Purnand

Read only

0 Likes
1,064

Well, he's demanding a click + action on data in the abap report. Is there another way than hotspots?

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,064

This can be done. Check sap help or search for the available information for "at line-selection and get cursor field" statements.

Read only

Former Member
1,065

Hi Christophe,

This could be acheived.

Refer to the program : DEMO_CLASSICAL_REPORTING.

Regards,

Faiz

Read only

Former Member
0 Likes
1,064

Hi,

use HIDE statement for capture fields you want to click, in at-line-selection event you can manage your hotspot

    format hotspot on.

    write:/ itstc-tcode.

    hide itstc-tcode.

    format hotspot off.

....

At line-selection.

GET CURSOR FIELD f VALUE v.

  IF f = 'ITAB-VBELN'.  < Field on which u are clicking >

    SET PARAMETER ID 'VBELN' FIELD V .

    CALL TRANSACTION 'FB03'.

if ....

....

best regards

Read only

janewar
Participant
0 Likes
1,064

https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abapat_line-selection.htm

Effect

This statement defines an event block whose event is raised by the ABAP runtime environment when a screen list is displayed. This is provided the screen cursor is a list line and a function is selected using the function code PICK. By defining this event block, the standard list status is enhanced automatically in such a way that the function code F2 and, with it, the double-click mouse function is associated with the function code PICK.

Note

If the function key F2 is associated with a function code other than PICK, each double click raises its event, usually AT USER-COMMAND, and not AT LINE-SELECTION

.