-1

Is it possible to change the it_outtab, i.e the data of my alv without destroying it?

I know that to change the field catalog it is possible with this method:

CALL METHOD gr_alvpl->set_frontend_fieldcatalog
  EXPORTING
    it_fieldcatalog = gt_fldct.


CALL METHOD gr_alvpl->refresh_table_display( ).

But if I have to change the it_outtab parameters, is it possible?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
shmoolki
  • 1,551
  • 8
  • 34
  • 57

1 Answers1

1

Yes. Use the method REFRESH_TABLE_DISPLAY, as outlined in the documentation.

The ALV Grid keeps a reference to the table you passed to it during initialization. You update the contents of that original table and then tell the Grid to update itself.

vwegert
  • 18,371
  • 3
  • 37
  • 55
  • When i don't have parameter to change the content of the table – shmoolki Dec 30 '14 at 10:32
  • I don’t understand your question - oh wait, that wasn’t a question at all. The ALV Grid keeps a reference to the table you passed to it during initialization. You update the contents of that original table and then tell the Grid “Yo man, there’s new data there, go update yourself”. – vwegert Dec 30 '14 at 10:36
  • YOu have right thanks this the answer that i expect tghanks , write that inside and i validate it and see this question please http://stackoverflow.com/questions/27637681/abap-change-text-button-and-function-in-runtime – shmoolki Dec 30 '14 at 12:09