cancel
Showing results for 
Search instead for 
Did you mean: 

ALV web dynpro for ABAP

Former Member
0 Kudos

Hi,

I am using ALV in web dynpro.

I want to set cursor to a specific column after pressing 'ENTER' on a different column,

how can I achieve this?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try using this method.....

When you get the reference of IWCI_SALV_WD_TABLE use the method SET_FOCUS

by passing the column name.

Regards,

Lekha.

Former Member
0 Kudos

Thanks Lekha,

but I want cursor to be set to a specific column after triggering an event on different column.

Former Member
0 Kudos

Hi,

I think, there are no cursor specific events that can be set.

Regards,

Lekha.

Former Member
0 Kudos

Hi Lekha,

I tried method you mentioned. I used following code.

"

lo_interfacecontroller->set_focus(

column = 'CCL_INSP_DATE' " string

index = 1 "r_param->INDEX " i

).

"

using this code cursor is positioned to header of column not to particular cell.

If you have any idea plz share..

Former Member
0 Kudos

Hi,

I think you cannot set the focus to the particular cell.

I think you can loop at that row of that table and set the the cell design to apply some color to differentiate that way rather than focusing so that user can know that he has to do something in that cell.

check out this example salv_wd_test_table_focus

Regards,

Lekha.