废话不多说,直接上码
*&---------------------------------------------------------------------* *& Report ZDYNAMIC_ITAB_PRACTICE *& *&---------------------------------------------------------------------* *& *&通用表查询器 *&---------------------------------------------------------------------* report zdynamic_itab_practice. data: gt_components type cl_abap_structdescr=>component_table, gs_component like line of gt_components. parameters:p_table type dd02l-tabname obligatory. select-options:s_field for p_table. data:gr_table type ref to data, gr_line type ref to data. field-symbols:<ft_table> type standard table , <fs_line> type any, <fs_field> type any. start-of-selection. "动态创建内表结构并实例化 perform create_dynamic_itab. "动态执行sql查询 perform select_data_dynamically. "动态显示alv perform display_dynamic_alv. *&---------------------------------

最低0.47元/天 解锁文章
1492

被折叠的 条评论
为什么被折叠?



