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: 

Displaying the total no of records in ALV ouput.

Former Member
0 Kudos

Hi everybody,

I am displaying the output in ALV.

I want display the total number of records at the top of page.( before the columns).

Can any one throw light on this plz.

Karunakar reddy

2 REPLIES 2

Former Member
0 Kudos

To get the number of entries in your displayed table use:

<i>DESCRIBE TABLE tab LINES wg_lines.</i>

To display the value in a ALV Grid Control, use something like this:

<i>DATA: sl_layout TYPE lvc_s_layo.

sl_layout-grid_title = wl_lines.

CALL METHOD og_alv->set_table_for_first_display

EXPORTING

is_layout = sl_layout

....</i>

Regards,

Martin

Former Member
0 Kudos

Hi,

In case you are working with ALV List Control, you can try out FM REUSE_ALV_COMMENTARY_WRITE and fill its table parameter IT_LIST_COMMENTARY to show multiple lines before the columns.

Regards