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

ldb to alv

My report has ldb and it is printing write statements for each get statement. I want to get rid of this and need to print the whole data in alv at the end of the ldb. Is there any method to extract the data in alv??

Pls. let me know asap.

-Vinod

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 26, 2006 at 01:33 PM

    Instead of the write statements you have, move the contents to an internal table and append.

    something like this:

    • write:/ wa-field1, wa-field2. "Comment this line and

    move wa-field1 to itab-field1. "add these lines

    move wa-field2 to itab-field2.

    append itab.

    clear itab.

    Finally in the end-of-selection part,

    you can build the layout and field catalog and finally display the alv using function modules.

    Regards,

    Ravi

    Message was edited by: Ravi Kanth Talagana

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 26, 2006 at 01:43 PM

    Hi,

    I think you have to do the following things.

    1. Create an Internal table with all fields that are displaying in the report.

    2. Now use normal procedure(REUSE_ALV_BLOCK_LIST_APPEND

    , REUSE_ALV_LIST_DISPLAY) to create an ALV report.

    Thanks,

    Ramakrishna

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 26, 2006 at 02:00 PM

    Hi,

    create a structure of your itab with se11

    and fill your itab with append, collect or extract

    -> call fm EUSE_ALV_BLOCK_LIST_DISPLAY

    or REUSE_ALV_GRID_DISPLAY

    with your structure and itab

    A.

    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.