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: 

Highlight row in ALV after CALL TRANSACTION

Former Member
0 Kudos

Hi,

After calling a transaction with CALL TRANSACTION...AND SKIP FIRST SCREEN, it displays an ALV report - is it possible to highlight a particular row on the ALV?

Thks,

William

5 REPLIES 5

raymond_giuseppi
Active Contributor
0 Kudos

- If this is a customer ALV report, yes, use search tools with keywords [color row alv grid|http://www.sdn.sap.com/irj/scn/advancedsearch?query=colrrowalv+grid]

- Else it depends on the called transaction

Regards,

Raymond

0 Kudos

Hi William,

another idea is to use mark column:

DATA: r_alv TYPE REF TO cl_salv_table,

r_select TYPE REF TO cl_salv_selections.

r_select = r_alv->get_selections( ).

r_select->set_selection_mode( value = 4 ).

r_select->set_selected_rows( your_table_with_marked_and_automatically_highlighted_row).

Cheers

Dieter

0 Kudos

Since you want after CALL Transaction....I do not think in its your control to highlight perticular row if its standard one and depends on Called Transaction.

0 Kudos

oh - sorry for not reading headline correctly Of course, my idea will only work in the CALLED Transaction.

Cheers

Dieter

kesavadas_thekkillath
Active Contributor
0 Kudos

Well, if you are calling a report program then you can use a submit statement instead of call transaction & get the contents as mentioned in this blog

http://scn.sap.com/people/glen.simpson/blog/2011/07/07/gain-programmatic-access-to-data-of-sapgui-al...

& now to set focus on a particular cell just check my reply here http://scn.sap.com/thread/2107820