ENDDO. cl_alv_table_create=>create_dynamic_table( EXPORTING it_fieldcatalog = gw_fieldcat " Field Catalog IMPORTING ep_table = t_newtable EXCEPTIONS generate_subpool_dir_full = 1 OTHERS = 2 ). ASSIGN t_newtable-
定义方式一 参考数据字典结构定义, 这种方式比较简单, 但是不够灵活. 在一些特定场景推荐使用. 三 定义方式二 调用静态类方法 cl_alv_table_create=>create_dynamic_table 定义. 这种方式定义动态内表在一个进程中最多只能定义36次. 超过36次会报错. 其中 传递的内表 IT_FIELDCATALOG 可以通过函数 LVC_FIELDCAT...
ls_alv_cat-fieldname = ls_table-fieldname. ls_alv_cat-ref_table = p_name. ls_alv_cat-ref_field = ls_table-fieldname. APPEND ls_alv_cat TO lt_alv_cat. CLEAR ls_alv_cat. ENDLOOP. *内表创建 CALL METHOD cl_alv_table_create=》create_dynamic_table EXPORTING it_fieldcatalog = lt_...
LV_FIELD TYPE CHA20. CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE EXPOTING IT_FIELDCATALOG = GT_FCAT IMPORTING EP_TABLE = DY_TABLE. DESCRIBLE TABLE GT_FCAT LINES LV_LINE. ASSIGN DY_TABLE->* TO <LS_OUTTABLE>. CREATE DATA DY_LINE LIKE LINE OF <LS_OUTTABLE>. ASSIGN DY_LIN...
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE EXPORTING IT_FIELDCATALOG = IT_STRUCTURE * I_LENGTH_IN_BYTE = 'X' IMPORTING EP_TABLE = DY_TABLE. ASSIGN DY_TABLE->* TO <DYN_TABLE>. 动态工作区的产生跟第一种一样。 该方法有一种弊端,仅能连续使用36次。即改方法产生动态是使用创建子...
*... Create the dynamic internal table CALL METHOD cl_alv_table_create=>create_dynamic_table EXPORTING it_fieldcatalog = it_fieldcat IMPORTING ep_table = new_table. *... Create a new line ASSIGN new_table->* TO <l_table>. CREATE DATA new_line LIKE LINE OF <l_table>. ...
more, i doule click the method cl_alv_table_create=>create_dynamic_table but just got a code part, how can i find the parameters definition of this method ? and why it's different from other method which i can browse the parameters by double clicking the method name in code. ...
I would suggest to search a little bit around CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE where you can provide any component listing as ALV fieldcatalog generating this way new table. OR Use dynamic data generation by means of RTTS . Please refer my blog [Do you really know everything ...
call method cl_alv_table_createcreate_dynamic_table exporting it_fieldcatalog = rtfieldcatalog] importing ep_table = g_table.动态访问指定数据库表 *=== PARAMETERS tabnam(10) TYPE c DEFAULT'SFLIGHT'. DATA dy_struc TYPE REF TO data.FIELD-SYMBOLS <fs_struc> TYPE ANY FIELD-...
The use of CL_ALV_TABLE_CREATE class for creating dynamic tables is limited to the amount of 36 internal tables. You can handle the error does not cause the "dump", but will not meet the need for an unrestricted number of tables. The best solution to this is the use of RTTS. ...