Skip to Content
author's profile photo Former Member
Former Member

Displaying the total no of records in ALV ouput.

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2005 at 06:24 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2005 at 07:48 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.