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

question about ALV OO

Hi, everyone

I have a question about ALV .

There is two ALV display function, 'REUSE_ALV_LIST_DISPLAY' and 'REUSE_ALV_GIRD_DISPLAY'.

Using these two funcion, we can display the ALV in two style, list and grid.

My question is how I can show the List style in the OO program module.

I use CL_GUI_ALV_GRID, and by which way, I can show a ALV as the effect 'REUSE_ALV_LIST_DISPLAY' do.

Do something setting in the IS_LAYOUT when call SET_TABLE_FOR_FIRST_DISPLAY?

Any suggestion is welcome, thanks a lot

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 20, 2005 at 05:21 AM

    Hi,

    In ALV GRID display u will call method as

    w_layout TYPE lvc_s_layo ,

    CALL METHOD o_alvgrid->set_table_for_first_display

    EXPORTING

    is_variant = w_variant

    i_save = c_a

    is_layout = w_layout

    CHANGING

    it_outtab = p_output[]

    it_fieldcatalog = p_fieldcat[]

    EXCEPTIONS

    invalid_parameter_combination = 1

    program_error = 2

    too_many_lines = 3

    OTHERS = 4.

    IF sy-subrc <> 0.

    MESSAGE i001 WITH text-e06."Error in ALV report display

    LEAVE LIST-PROCESSING.

    ENDIF.

    But u wont be using this in list.

    Cal also refer this link to get more idea with sample programs,

    http://www.sapdevelopment.co.uk/reporting/alvhome.htm

    Thanks & Regards,

    Judith.

    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.