Application Development and Automation 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: 
Read only

Problem in OOP ALV-ALV not displaying.

Former Member
0 Likes
912

Hi Gurus,

Can we use OOP alv concept in normal executable program or we need to do it in module pool ?

I did an example alv program..but it is not exectuing .

Can anybody tell me the answer ?

Thanks.

Hi Gurus,

Can we use OOP alv concept in normal executable program or we need to do it in module pool ?

I did an example alv program..but it is not exectuing .

Can anybody tell me the answer ?

Thanks.

6 REPLIES 6
Read only

Former Member
0 Likes
841

Hi,

Incase you are making use of the class CL_GUI_ALV_GRID then you need to have a screen with a custom container to display the ALV.

Refer the example program BCALV_TEST_GRID.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
841

You can create an normal program to get your data that does a call screen which brings up your ALV but I think the calls will need to be in the modules for that screen as you create the screen using screen painter if using OOP. The only other way would be to use the ALV FMs but then it would not be OOP.

Read only

Former Member
0 Likes
841

Hello,

To use OO ALV you need to create a container in module pool. But you can still call it from an executable program. Just create an executable program and use call screen 0100. Now double click on 0100 and create a screen which has a container on it then in the PBO module just caal the methods for the custom container and alv. Upon execution of the program, the alv will be displayed.

Regards,

Sachin

Read only

anup_deshmukh4
Active Contributor
0 Likes
841

FOR a OO ALV you need a container on screen

then you Creat a object of the CL_GUI_CUSTOM_CONTAINER in your program and then you take grid class object CL_GUI_ALV_GRID then you create a object passing the parent container for the grid class...

thats y you need a screen..!

Ocourse it can be a simple executable program or a type M program

Read only

aris_hidalgo
Contributor
0 Likes
841

Hi,

You may check use the SALV(factory method). Just type in SALV* in SE38 and press F4.

Read only

0 Likes
841

SALV will only work from ECC 6.0 onwards. This is not an option if you have 4.6 or 4.7.