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

ALV GRID DISPLAY

Former Member
0 Likes
437

Hi,

I'm modifying a program with ALV Grid Display.There are lot of Classes and Methods which i don't understand.

In my program, the Program is executes and displays an Output. Now in the O/P , when I dbl click a field of a row a POP up is displayed with the existing value.now i can edit this value or Update with a new value.After closing the POP up the edited valueor the new value is displayed in the field. The program works good upto here.Now if my O/P has 20 Pages and if i edit a field in the 18 page, then after closing the popup the cursor ( or display ) is displayed in the 1 page( the 1 page of the O/P is displayed). Now, again, if i want to edit a field in the 18 page i have to scroll to the 18 page. Is there any way to hold the display at the 18 page after closing the POPUP.

I arrived at using CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->set_current_cell_via_id

EXPORTING

IS_ROW_ID = <structure of type LVC_S_ROW >

IS_COLUMN_ID = <structure of type LVC_S_COL >

IS_ROW_NO = <structure of type LVC_S_ROID >.

can some one help me how to pass values to is_row_id and all the parameters.

Is there any other way?Thanks in advance.

Thanks,

Bhaskar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
390

Dear Bhaskar,

To acheieve this follow the below steps:

1. On double click first get the scroll information using the method GET_SCROLL_INFO_VIA_ID of class CL_GUI_ALV_GRID.

CALL METHOD go_alv_grid->get_scroll_info_via_id

IMPORTING

es_row_no   = gv_s_roid

es_row_info  = gv_s_row

es_col_info  = gv_s_col.

2. Again at the end of your double click event call the method SET_SCROLL_INFO_VIA_ID to set the scroll.

CALL METHOD go_alv_grid->set_scroll_info_via_id

EXPORTING

is_row_info = gv_s_row

is_col_info = gv_s_col

is_row_no  = gv_s_roid.

Regards

Kesava

1 REPLY 1
Read only

Former Member
0 Likes
391

Dear Bhaskar,

To acheieve this follow the below steps:

1. On double click first get the scroll information using the method GET_SCROLL_INFO_VIA_ID of class CL_GUI_ALV_GRID.

CALL METHOD go_alv_grid->get_scroll_info_via_id

IMPORTING

es_row_no   = gv_s_roid

es_row_info  = gv_s_row

es_col_info  = gv_s_col.

2. Again at the end of your double click event call the method SET_SCROLL_INFO_VIA_ID to set the scroll.

CALL METHOD go_alv_grid->set_scroll_info_via_id

EXPORTING

is_row_info = gv_s_row

is_col_info = gv_s_col

is_row_no  = gv_s_roid.

Regards

Kesava