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

HOTSPOT

Former Member
0 Kudos

Hi,

i have made a particular field on the output screen hotspot enabled.Now when i click on this field i need the data to be displayed from an internal table in an interactive list.Please help me in how to do this.Please see my simple code below.

Points Assured.

data : itab type standard table of ekko,

itab1 type standard table of mara.

select * from ekko up to 5 rows into table itab.

select * from mara up to 5 rows into table itab1.

data: Errors type char15 value 'Failed entries',

Success type char20 value 'Successful entries'.

write πŸ˜• 'ERRORS',errors color 6 inverse off hotspot on.

*when this hotspot is clicked table itab displayed as an interactive list.

write πŸ˜• 'SUCESS',SUCCESS color 5 inverse off hotspot on.

*when this hotspot is clicked table itab1 displayed as an interactive list.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

Use the event ,

At Line selection .

get the data which is clicked use read line index or system varaibale sy-lisel .

then display your itab within at line-selection event .

Please reward if useful.

5 REPLIES 5

Former Member
0 Kudos

Hi ,

Use the event ,

At Line selection .

get the data which is clicked use read line index or system varaibale sy-lisel .

then display your itab within at line-selection event .

Please reward if useful.

Former Member
0 Kudos

data : itab type standard table of ekko,

itab1 type standard table of mara.

data: wa like line of itab.

select * from ekko up to 5 rows into table itab.

select * from mara up to 5 rows into table itab1.

data: Errors type char15 value 'Failed entries',

Success type char20 value 'Successful entries'.

write πŸ˜• 'ERRORS',errors color 6 inverse off hotspot on.

*when this hotspot is clicked table itab displayed as an interactive list.

write πŸ˜• 'SUCESS',SUCCESS color 5 inverse off hotspot on.

AT LINE-SELECTION.

loop at itab into wa.

write : wa-ebeln.

endloop.

check this.........

Reward IF.........

Regards

Anbu

Former Member
0 Kudos

how to use hotspot?



tables mara.
start-of-selection.
select * from mara.
write / mara-matnr hotspot on.
endselect.
at-lineselection.
write 'new list after single-click on a hotspot area'.

Former Member
0 Kudos

hi

its simple u only need to loop the table in AT LINE SELECTION event

Cheers

Snehi

Former Member
0 Kudos

This message was moderated.