ALV Grid Refresh Problem

If you are an ABAP developer, I am sure that you experienced this problem on some point or another. You call the function REUSE_ALV_GRID_DISPLAY and make it editable to have some user input. However; after the user makes some modifications and hits a button, the modifications aren’t reflected to your internal table.

 
 

This (so-called) bug doesn’t appear in ALV LIST, only GRID. The reason is; ALV Grid expects you to pass an additional parameter to reflect changes to your internal table. Here is a sample:

 
 

DATA:

is_grid TYPE lvc_s_glay.

 

(…)

 
 

is_grid-edt_cll_cb = ‘X’.

 

(…)

 
 

CALL FUNCTION ‘REUSE_ALV_GRID_DISPLAY’

EXPORTING

i_grid_settings = is_grid

(…)

 
 

I thank Doğan Tacikayan for this tip =)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s