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

Missing Refresh button on ALV Grid Display

mike_rupp
Participant
0 Likes
5,624

I have created an ALV Grid report that displays BOM Change Documents, using function 'REUSE_ALV_GRID_DISPLAY'.

I basically copied and modified a program written earlier by another programmer for a completely different application.

I've got everything working except for one thing.  The Refresh icon does not appear on the tool bar.

In the GUI Status definition I can see &REFRESH defined as the 3rd item.

I know that icons can be excluded by passing them to 'REUSE_ALV_GRID_DISPLAY' in parameter
it_excluding, but &REFRESH  is not being explicitly excluded.  All of the other standard icons appear on the toolbar, and I have even been able to add custom buttons of my own.  For example I allow the user to jump to CS02 to edit the BOM and return to the ALV list.  I have also been successful at creating my own replacement for the standard refresh button, (created as &ZREFRESH ), and written some additional code to force the screen to update.

Does anyone know what may be preventing the standard &REFRESH button from appearing ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,457

Hi Mike,

Check the FM

Call function 'REUSE_ALV_GRID_DISPLAY'

exporting

   i_callback_program                = ws_program

   i_callback_user_command        = 'USER_COMMAND'

   is_layout                         = i_layout

   it_fieldcat                       = i_fieldcat

>> it_excluding                      = i_exclude <<

It could be passing it here remove this and it will come

7 REPLIES 7
Read only

Former Member
0 Likes
3,458

Hi Mike,

Check the FM

Call function 'REUSE_ALV_GRID_DISPLAY'

exporting

   i_callback_program                = ws_program

   i_callback_user_command        = 'USER_COMMAND'

   is_layout                         = i_layout

   it_fieldcat                       = i_fieldcat

>> it_excluding                      = i_exclude <<

It could be passing it here remove this and it will come

Read only

0 Likes
3,457

Mohammed,

Thanks for the reply, but I already know about parameter it_excluding.

In fact, I mentioned it in my original post and stated that &REFRESH is not being passed in this parameter.  Any other ideas ?

Read only

0 Likes
3,457

Hi Mike,

Sorry for the delay and also for the reply here is a snapshot from the FM Documentation

u have to make use of USER COMMAND

FU REUSE_ALV_GRID_DISPLAY        I_CALLBACK_PF_STATUS_SET

____________________________________________________

Text

Set EXIT routine to status

Description

Passing an EXIT routine indicates to the ALV that the caller wants to set a self-defined user status.

As a result, the default status of the ALV is not set.

The interface of the form routine specified must be defined as follows:

        FORM set_pf_status USING rt_extab TYPE slis_t_extab

Table RT_EXTAB contains the function codes that would be hidden on the standard user interface.

If the caller wants to use a self-defined user interface (for example, in order to provide additional list functions or use existing functions), we recommend that you copy standard status STANDARD from function group SALV and modify it accordingly. ALV standard function codes always start with '&'.

See also the documentation on parameter I_CALLBACK_USER_COMMAND.

If a self-defined user interface is used that includes function codes of the standard user interface, the function codes of the excluding table passed should be taken into account.

This means that the user status should generally be set as follows:

SET PF-STATUS user status EXCLUDING rt_extab.

Application functions can be added to excluding table rt_extab if they are to be disabled.

The routine is called whenever the standard user interface would be set with SET PF-STATUS.

Default

If no EXIT routine is specified, the ALV sets a status that corresponds to status STANDARD of function group SALV.

Function Module

REUSE_ALV_GRID_DISPLAY

Read only

former_member188827
Active Contributor
0 Likes
3,457

Can you paste code where you are calling "REUSE_ALV_GRID_DISPLAY". Need to check the parameters you are passing to this FM. Are you passing parameter "it_event_exit" and "i_callback_pf_status_set"?

Regards

Read only

Saha_Arpan
Explorer
0 Likes
3,457

Hello Mike,

If you have the standard button, do one thing: In the GUI status window, Go to File-> Generate. Then Activate the thing.

Arpan

Read only

Former Member
0 Likes
3,457

I guess REFRESH is displayed on the grid toolbar but you might have given different ICON for it, once check it.

Place break-point at method which is getting called for event ON_TOOLBAR of you grid if you have any.

Read only

Former Member
0 Likes
3,457

Hello Mike!

Today i've missed the refresh button onto an ALV-GRID display too - not into the status bar set with command "SET STATUS..." which is above this in the dynpro -.

If you have set any cell or column into the field catalogue in edit mode you will get the refresh button into the ALV GRID automatically and additional the check button too.

Best regards,

Michael Eckert