gpt4 book ai didi

abap - 如何将 'save format' 按钮添加到 ALV 屏幕?

转载 作者:行者123 更新时间:2023-12-01 13:38:54 28 4
gpt4 key购买 nike

我在同一个表单上添加双 ALV 屏幕,它工作得很好,但其中一个缺少必要的按钮。

CALL METHOD gr_alv->set_table_for_first_display
EXPORTING
i_save = 'A'
i_default = 'X'
is_layout = ls_layout
it_toolbar_excluding = lt_exclude
CHANGING
it_outtab = gt_aufk[]
it_fieldcatalog = lv_fieldcat
it_filter = lt_filter
EXCEPTIONS
OTHERS = 1.

我应该看哪里? enter image description here

最佳答案

It's in the documentation:

If you use parameter I_SAVE, passing a layout structure with IS_VARIANT is a required step.

您需要告诉 ALV 布局的关键数据(程序名称,如果每个程序有多个列表,还有一个附加句柄):

...
CALL METHOD gr_alv->set_table_for_first_display
EXPORTING
i_save = 'A'
is_variant = VALUE disvariant( repid = sy-repid )
...

关于abap - 如何将 'save format' 按钮添加到 ALV 屏幕?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42017702/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com