ERP Database - The Unofficial ERP Knowledge Base

Facebook Twitter del.icio.us Digg it
ERP Database contains a huge collection of articles related to ERP System and Software. Many of the articles are specifically related to SAP. All these ERP/SAP articles are freely available to everyone.

If you would like to submit an article or share any document related to ERP or any specific ERP software. Please mail it to support@erpdb.info. Please make sure that the documents are not copyrighted.
Social Bookmarks:

Refresh Table Display Moves Cursor to First Line

Print This Post Email This Post Written by rajivsharma.sap on Jul 9th, 2009 | Filed under: ABAP Programs

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.
Share

If you like this post, you may as well like these too:

  1. 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...
  2. 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...
  3. Parallel Cursor Method in ABAP A program with the right functionality and smartly written, but with poor performance will not satisfy the client requirements. Business programs usually handle huge amounts of data. ABAP programs in...
  4. ALV Display ALV to Display all Transaction Codes. Here is a sample program of ALV report displaying all the transaction codes in SAP User can click any tcode on ALV and go...



Leave a Reply