|
Creating internal table of any type |
|
|
|
|
Written by Alexander Bykov
|
|
Thursday, 17 September 2009 |
*********************************************************************** * This program is freeware and is provided on as-is basis without * * warranty of any kind. * *********************************************************************** * Author * Alexander Bykov * * E-mail *
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
* *********************************************************************** * Description * * Create internal table of any type on the fly * *********************************************************************** data: lt_fcat type lvc_t_fcat. data: tabname type ref to data, tabline type ref to data.
field-symbols: <gt> type standard table, <gs> type any.
call function 'LVC_FIELDCATALOG_MERGE' exporting i_structure_name = 'DDIC_STRUCTURE' changing ct_fieldcat = lt_fcat exceptions inconsistent_interface = 1 program_error = 2 others = 3.
* Creating table call method cl_alv_table_create=>create_dynamic_table exporting it_fieldcatalog = lt_fcat importing ep_table = tabname.
assign tabname->* to <gt>. create data tabline like line of <gt>. assign tabline->* to <gs>.
Ny
Related Items:
|