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

HOTSPOT

Former Member
0 Likes
727

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
Read only

Former Member
0 Likes
681

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.

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.

5 REPLIES 5
Read only

Former Member
0 Likes
682

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.

Read only

Former Member
0 Likes
681

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

Read only

Former Member
0 Likes
681

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'.

Read only

Former Member
0 Likes
681

hi

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

Cheers

Snehi

Read only

Former Member
0 Likes
681

This message was moderated.