‎2005 Dec 10 1:42 AM
I want to display a list using ALV : CL_GUI_ALV_GRID. I wrote the program by refering to the document "An Easy reference to ALV Grid Control".
I called the method "gr_alvgrid->refresh_table_display"
in the PBO of the screen that I am creating. I havenot created any custom control on the screen graphically. As in the document , I have coded for that using "creat object" statements in the code. The problem is when i execute the code nothing is happening. I get a blank screen without any ALV grid on it.
Can someone please let me know what I m missing upon.
Thanks
Shiv
‎2005 Dec 10 1:45 AM
Hi
You have to create a custom contronl on your screen by screen painter.
If custom control designed by screen painter is called MY_CONTAINER:
IF CONTAINER IS INITIAL.
CREATE OBJECT CONTAINER
EXPORTING CONTAINER_NAME = 'MY_CONTAINER'.
......
CALL METHOD MY_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
.....
ELSE.
CALL METHOD MY_GRID->REFRESH_TABLE_DISPLAY.
ENDIF.
Max
Message was edited by: max bianchi
‎2005 Dec 10 1:44 AM
I am sorry, i am using the method
"gr_alvgrid->set_table_for_first_display" if the container has to be created.
‎2005 Dec 10 1:45 AM
Hi
You have to create a custom contronl on your screen by screen painter.
If custom control designed by screen painter is called MY_CONTAINER:
IF CONTAINER IS INITIAL.
CREATE OBJECT CONTAINER
EXPORTING CONTAINER_NAME = 'MY_CONTAINER'.
......
CALL METHOD MY_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
.....
ELSE.
CALL METHOD MY_GRID->REFRESH_TABLE_DISPLAY.
ENDIF.
Max
Message was edited by: max bianchi
‎2005 Dec 10 1:47 AM
‎2005 Dec 10 1:49 AM
u have to create custom container and call that screen in ur program