2010 Jan 25 11:53 AM
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.
2010 Jan 25 11:58 AM
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
2010 Jan 25 12:00 PM
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.
2010 Jan 25 12:01 PM
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
2010 Jan 25 12:02 PM
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
2010 Jan 25 12:17 PM
Hi,
You may check use the SALV(factory method). Just type in SALV* in SE38 and press F4.
2010 Jan 25 12:28 PM
SALV will only work from ECC 6.0 onwards. This is not an option if you have 4.6 or 4.7.