2012 Jan 23 7:40 AM
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
2012 Jan 23 9: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
2012 Jan 23 7: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.
2012 Jan 23 8: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
2012 Jan 23 9:41 AM
Hi
Can u plzz send me a Sample code for the same.
Thanks & Regards
Girdhari
2012 Jan 23 8:14 AM
2012 Jan 23 9: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.
2012 Jan 23 9:47 AM
2012 Jan 23 9: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