‎2008 Jul 22 2:07 PM
Hi all.
I have create my screen with a container and ALV object in a way like the following:
SET PF-STATUS 'STAT100'.
*--> Create ALV Container
CREATE OBJECT CONT_200
EXPORTING
CONTAINER_NAME = GV_CONT_200_NAME.
*--> Create an ALV object
CREATE OBJECT GRID_100
EXPORTING
I_PARENT = CONT_200.
The problem is that I get a standard ALV gui status although I don't want one.
How can I cause the program using my 'STAT100' gui status instead of their standard ??
Thanks in advance,
Rebeka
‎2008 Jul 22 2:14 PM
hi,
Plz refer to the link.
http://www.sapdev.co.uk/reporting/alv/alvgrid_pfstatus.htm
Regards
Sumit AGarwal
‎2008 Jul 22 2:14 PM
Hi,
SET PF-STATUS 'STAT100'.
will do what you are asking for. This code should be written under INITIALIZATION event.
//Kothand
‎2008 Jul 22 2:23 PM
When you are working with ALV(OO) with Class CL_GUI_ALV_GRID then
there is no change of using the Status. even you use it is not linked to ALV. it will be a separate status.
OO ALV comes up with its own TOOL bar.
if you dont want them you can use exclude option.
data ls_exclude type ui_func.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_cut.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste_new_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_undo.
append ls_exclude to pt_excludepass the excluded options to the ALV set table method
call method g_grid->set_table_for_first_display
exporting it_toolbar_excluding = pt_exclude
changing it_fieldcatalog = pt_fieldcat
it_outtab = pt_outtab.
then you wll not see any toolbar functions.
But your status will not have any control on the ALV which is displayed
‎2008 Jul 22 2:26 PM