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: 

Focus in REUSE_ALV_HIERSEQ_LIST_DISPLAY

Former Member
0 Kudos

Hi forum!

I am working with an old program and i have to make some changes here.

I'm using REUSE_ALV_HIERSEQ_LIST_DISPLAY function.

this is what i need to do: i need to double click on a line, the user-command will start and i will copy the data to another work area , then i'll put some blue color on the line i click, and finally refresh the alv.

Where is my problem ?

When i click on line 155 (for example), the alv refresh and my focus is set to the begining, then i have to scroll down to reach the line where i made the click to see it, and that is exactly what i have to fix.

i need to click a line, do the user-command job , and stay focus on the line.

any ideas!?

i tryed with the comman scroll but it doesn`t work.

2 REPLIES 2

Former Member
0 Kudos

u can try using SET FOCUS event.

Former Member
0 Kudos

hi,

see parameter it_events.

You can try something like this:

FORM set_events CHANGING ct_events TYPE slis_t_event.

DATA l_events TYPE slis_alv_event.

FREE ct_events.

CLEAR l_events.

l_events-name = 'TOP_OF_PAGE'.

l_events-form = 'TOP_OF_PAGE'.

APPEND l_events TO ct_events.

ENDFORM.

('TOP_OF_PAGE' - for example)

Regards,

Andrej.