Skip to Content

ALV Output in OOPS Without Using Custom Container

Dear Expert

I am new in ALV OOPS , I have developed some basic alv oops program , in every program I have to explicitly

create a custom contanier in screen I was using , But I want to know that is there any way to display the alv list without creating custom contanier in oops. please send me a sample code.

Thanks & Regards

Girdhari

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Jan 23, 2012 at 09:43 AM

    Hi ,

    se80 -> SLIS package -> Programs

    I think these examples will help you. And to use fullscreen with OO ALV instead of custom container area , check out the examples which have

    cl_gui_container=>screen0
    cl_gui_container=>default_screen

    options that were used as parent.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 23, 2012 at 07:42 AM

    and where will you put your ALV in? 😊

    if you are going for ALV class and method then you need to create a screen and container.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 23, 2012 at 08:12 AM

    Hello,

    I guess you've been using CL_GUI_ALV_GRID class to generate the ALV.

    If you use fullscreen option in SALV model(CL_SALV_TABLE), you don't need to explicitly define the custom container. Actually when you use "fullscreen" the SALV OM call REUSE_ALV_GRID_DISPLAY internally!

    You can use display the ALV as a list using SALV OM as well.

    BR,

    Suhas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 23, 2012 at 08:14 AM

    Check out the classes for CL_SALV_* .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 23, 2012 at 09:34 AM

    Hi,

    Yes. you can do so by using standard screens,

    data lo_grid type ref to cl_gui_alv_grid.
    
      CREATE OBJECT lo_grid
          EXPORTING
               i_parent = cl_gui_custom_container=>screen0.  " instead fo creating custom container u can use standard screens
    
    lo_grid->set_table_for_first_display( .... ).

    Hope this helps u.,

    Thanks & Regards,

    Kiran.

    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.