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

Customize gui status

Former Member
0 Likes
866

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

4 REPLIES 4
Read only

Former Member
0 Likes
691

hi,

Plz refer to the link.

http://www.sapdev.co.uk/reporting/alv/alvgrid_pfstatus.htm

Regards

Sumit AGarwal

Read only

Former Member
0 Likes
691

Hi,

SET PF-STATUS 'STAT100'.

will do what you are asking for. This code should be written under INITIALIZATION event.

//Kothand

Read only

Former Member
0 Likes
691

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_exclude

pass 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

Read only

Former Member
0 Likes
691

I set the LAYOUT-NO_TOOLBAR with 'X'.

Thanks all.