简体   繁体   English

首次显示后更改 it_outtab(ALV 网格)

[英]Change it_outtab after the first display (ALV grid)

Is it possible to change the it_outtab , ie the data of my alv without destroying it?是否可以更改it_outtab ,即我的 alv 的数据而不破坏它?

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?但是,如果我必须更改it_outtab参数,是否可能?

Yes.是的。 Use the method REFRESH_TABLE_DISPLAY , as outlined in the documentation .使用方法REFRESH_TABLE_DISPLAY如文档中所述

The ALV Grid keeps a reference to the table you passed to it during initialization. ALV 网格保留对您在初始化期间传递给它的表的引用。 You update the contents of that original table and then tell the Grid to update itself.您更新原始表的内容,然后告诉网格更新自身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM