- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在想我可能缺少一个导出参数(来自我的函数调用 POV)。
在 REUSE_ALV_GRID_DISPLAY
函数调用,我传递的参数是:
导出:
i_callback_program,
i_callback_pf_status_set,
i_callback_user_command,
is_layout,
it_fieldcat,
i_save
Tables:
t_outtab
以及异常加处理。
最佳答案
有多种使用 ALV 的方法,因此我们可能确实需要有关您的代码的更多信息来提供帮助。
myreport = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = myreport
it_excluding = exclude_tab
TABLES
t_outtab = display_data
EXCEPTIONS
program_error = 1
OTHERS = 2.
FORM fill_fieldcat CHANGING p_fieldcat TYPE slis_t_fieldcat_alv.
* Data definition
DATA ls_fieldcat TYPE slis_fieldcat_alv.
* Macro definition
DEFINE append_fieldcat.
clear ls_fieldcat.
ls_fieldcat-fieldname = &1. * name of the field in struct
ls_fieldcat-tabname = &2. * name of the table
ls_fieldcat-row_pos = &3. * column
ls_fieldcat-ref_fieldname = &4. * field in ref table
ls_fieldcat-ref_tabname = &5. * ref table
ls_fieldcat-outputlen = &6. * size of output
ls_fieldcat-seltext_m = &7. * text (space if using the element typetext)
ls_fieldcat-ddictxt = 'M'.
ls_fieldcat-key = &8. * is this a key field in table
ls_fieldcat-emphasize = &9. * emphisze column display
append ls_fieldcat to p_fieldcat.
END-OF-DEFINITION.
* Init.
REFRESH p_fieldcat.
* Append fielcatalog for ALV
append_fieldcat:
'FORMATIONCODE' 'DISPLAY_TAB' 1 'SHORT' 'HRP1000' 12 'Code Stage' space space,
'FORMATIONTEXT' 'DISPLAY_TAB' 1 'STEXT' 'HRP1000' 20 'Libelle Stage' space space,
'SESSIONID' 'DISPLAY_TAB' 1 'OBJID' 'HRP1000' space 'Session' space space,
'BEGDA' 'DISPLAY_TAB' 1 'BEGDA' 'HRP1000' space 'Debut' space space,
'ENDDA' 'DISPLAY_TAB' 1 'BEGDA' 'HRP1000' space 'Fin' space space,
ENDFORM. "fill_fieldCat
* global variables :
DATA : delegationlist_table TYPE REF TO cl_gui_alv_grid,
delegationlist_container TYPE REF TO cl_gui_custom_container.
data : gs_layout TYPE lvc_s_layo.
IF delegationlist_container IS INITIAL.
* create a custom container control for our ALV Control
CREATE OBJECT delegationlist_container
EXPORTING
container_name = 'ALV_CONT'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
* create an instance of alv control
CREATE OBJECT delegationlist_table
EXPORTING
i_parent = delegationlist_container.
* Set a titlebar for the grid control
gs_layout-grid_title = 'Délégations'.
gs_layout-sel_mode = 'A'.
gs_layout-cwidth_opt ='X'.
* set table as data source
* the struct name *must* be uppercase
* the table must have this struc
CALL METHOD delegationlist_table->set_table_for_first_display
EXPORTING
i_structure_name = 'ZPRT_DELEGATIONLIST'
is_layout = gs_layout
CHANGING
it_outtab = delegationlist.
ENDIF.
关于abap - 如何让我的数据显示在我的 ALV 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3732114/
我想添加一个标题行来对列标题进行分组。 Departure Arrival <-- This row is what I want t
为了说明我想要的: | Category A | Category B | C || A.A |
我找到了一种导出分层 ALV 的方法 with the help of this question .不幸的是,我不知道报告是否使用分层 ALV。 如果我将上述答案的代码应用于报告 RFSKPL00,
我想获取ALV中选择单元格的值,我尝试了get_selected_cells方法,但是值字段是INITIAL。 这个方法有什么问题? FORM delete_livraison . DATA: l
我使用 cl_gui_alv_tree 创建了一个 ALV TREE 报告,它有 3 个级别。当他双击一个节点时,我还实现了一个事件处理程序。 我的问题是我只想在他双击作为根节点的节点时才采取一些行动
我在想我可能缺少一个导出参数(来自我的函数调用 POV)。 在 REUSE_ALV_GRID_DISPLAY函数调用,我传递的参数是: 导出: i_callback_program, i_
当 ALV 上还使用了过滤器时,是否有一种简单的方法来检索显示的 ALV 数据? 使用的ALV是CL_GUI_ALV_GRID的对象。当向用户显示时,默认会在其上放置一个过滤器。用户还有一个按钮可以处
背景:我正在使用 cl_salv_table 类来生成和修改 ALV。此 ALV 显示 zpm_et_qual_notif_s 类型的表,其中每个偶数行都是 CHAR 类型的分隔符字段,长度为 1,名
我正在使用 cl_gui_alv_grid 类创建 ALV 输出网格。使用fieldcatalog的相应记录将输出表的其中一列定义为复选框: ls_fcat-checkbox = 'X'. ls_fc
我有一个 CL_GUI_ALV_GRID 实例,由变量 mo_alv_grid 引用。 我在这个网格中有一个按钮列,经过一些逻辑后,更新表 mt_alv_grid(支持 mo_alv_grid)。 此
我需要的是向这两列添加标题(以黄色突出显示),但我不知道该怎么做。 FORM display_alv. DATA: gr_functions TYPE REF TO cl_salv_funct
我有一个易于使用的功能模块,可以为几乎任何类型的表创建 ALV 网格,尤其是没有 DDIC 类型的表。也支持编辑。 基本上它通过 RTTI 创建一个字段目录并在固定的内部 Dynpro 中实例化标准
我在我的 alv 网格上发现了拖放对象,但是当我搜索文档时很难理解流程, 我有很多问题: 我想阻止在某些列上拖拽的可能性。 并且我希望出现不允许的标志。 我希望当我选择多行时,在放置位置显示多个单元格
我在同一个表单上添加双 ALV 屏幕,它工作得很好,但其中一个缺少必要的按钮。 CALL METHOD gr_alv->set_table_for_first_display EXPO
我是一名优秀的程序员,十分优秀!