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: 

Selected row of alv

Former Member
0 Kudos

Hi all,

A user selects a row of alv or double clicks on it and do something after this with this selected row, jumps to other screens when necessary etc,

however when he comes back to the alv screen, is it possible to focus on the row he selected just berofe jumping to the screens?

Thanks.

4 REPLIES 4

Former Member
0 Kudos

By default the selected will be highlighted even when u come back to the screen.

Former Member
0 Kudos

Hi,

Please refer the link below:

http://www.saptechnical.com/Tutorials/ALV/HighlightVisitedRecord/Demo.htm

With this code, you can highlight the visited rows.

Thanks,

Sriram Ponna.

0 Kudos

Hi Sriram,

The code that you give the link is not so clear.

Thanks.

Former Member
0 Kudos

Hi,

Check if you have used this statement somewhere in the user_command routine

rs_selfield-refresh = 'X'.

If yes then the list will be refreshed and thus loses the focus of the previous row selected. Otherwise by default the previous row selected will have the focus.

regards,

Advait