cancel
Showing results for 
Search instead for 
Did you mean: 

Field catalog update in ALV grid

Former Member
0 Kudos

Hi All,

When you're changing an existing field catalog in an ALV grid, there's a possibility this change will not appear immediately in the list display.

Can anyone explain this,

Kind regards,

Rob Makelaar.

The Netherlands

Accepted Solutions (0)

Answers (3)

Answers (3)

ssimsekler
Active Contributor
0 Kudos

Hi Rob

ALV as an encapsulated object uses some kind of buffer for the field catalog. You can switch buffer capabilities with the parameter <b>"I_BUFFER_ACTIVE"</b> of the method <b>"set_table_for_first_display"</b>.

The use of this parameter is explained as follows:

<i>Flag to be set by the application if the method call is static. This means the method is always called with the same field catalog. In this case, the field catalog can be held in a special buffer. This accelerates the display of small lists, in particular.</i>

---

And as an additional point, you should have marked this thread as a question thread since you require some answer. If you want so, you can do this by editing your original post and check relevant checkbox under the editbox. This way you can reward points to helpful posts using the scala at the left of each particular post and you can mark a question as solved to save SDNers's times.

Regards

*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

Former Member
0 Kudos

Hi,

If u r changing an existing field catalog in an ALV grid, it will appear immediately see that u have activated the corresponding structure in se11(if u have created a structure).

CALL METHOD o_grid->set_table_for_first_display

EXPORTING

i_bypassing_buffer = space

is_variant = ws_f_grid_disvar

i_save = ws_c_grid_save

is_layout = struct_grid_lset

CHANGING

it_outtab = i_outs[]

it_fieldcatalog = i_fcat[]. " Period

Open a new session and run the program.

Check once whetehr u have passed the structure correctly.

Nothing might be wrong.

Thanks & Regards,

Juidth.

Message was edited by: Judith Jessie Selvi

Former Member
0 Kudos

Hello,

If you change the DDIC structure for an ALV Grid, you sometimes have to re-start the workbench in order to see those changes and refresh the internal buffers.

If that doesn't help, you might want to have a look at OSS note 339258.

Hope this helps (please reward me if it does

Joerg