Refresh Table Display Moves Cursor to First Line
Guest post by Rajiv
If you are making some changes in the ALV Output and refresh the ALV display using the method “REFRESH_TABLE_DISPLAY” the chances are it will go to the first line, unless you call the refresh table display with the parameters. Use the below code to make the ALV stick to the current row eventhough you refresh it.
DATA ls_stable TYPE lvc_s_stbl. ls_stable-row = 'X'. ls_stable-col = 'X'. CALL METHOD gr_alvgrid->refresh_table_display EXPORTING is_stable = ls_stable EXCEPTIONS finished = 1 OTHERS = 2. IF sy-subrc <> 0. ENDIF.
If you like this post, you may as well like these too:
- ABAP Programs: Filling an internal table from a database table REPORT ZSOURCE1203.* Work area for a database tableTABLES CUSTOMERS.* Defining an internal table with header lineDATA ALL_CUSTOMERS LIKE CUSTOMERS OCCURS 100 WITH HEADER LINE.* Filling the internal table (previous content...
- SAP FI FAQs – Line Item Configuration 1. The client does not like SAP’s standard document line layouts. Explain how you would assist the client in developing better line layouts. In Complex Postings, customized line layouts can...
















Leave a Reply