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: 

ALV Output in OOPS Without Using Custom Container

former_member16553
Active Participant
0 Kudos
8,082

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

1 ACCEPTED SOLUTION

huseyindereli
Active Contributor
0 Kudos
1,403

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

7 REPLIES 7

Former Member
0 Kudos
1,403

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.

SuhaSaha
Advisor
Advisor
0 Kudos
1,403

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

0 Kudos
1,403

Hi

Can u plzz send me a Sample code for the same.

Thanks & Regards

Girdhari

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,403

Check out the classes for CL_SALV_* .

Kiran_Valluru
Active Contributor
0 Kudos
1,403

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.

0 Kudos
1,403

Hi

I have done It, Thanks a lot.

Thanks & Regards

Girdhari

huseyindereli
Active Contributor
0 Kudos
1,404

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