2008 Nov 18 3:26 PM
Hello experts,
In internal table we can use table control events.
But in my requirement I have field-symbol as internal table and coreresponding work area like below.
call method cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = i_alv_cat
IMPORTING
ep_table = d_ref.
assign d_ref->* to <f_fs>.
CREATE DATA gd_line LIKE LINE OF <f_fs>.
ASSIGN gd_line->* TO <fs_line>.
Now my issue is how can I use table control events in field-symbol (an internal table).
loop at <f_fs> into <fs_line>.
at new WERKS.
endat.
endloop.
If I use like above, it gives error: the specified type has no structure and therefore no component called
WERKS.
I cant create internal table like field-symbol becoz it is dynamically populated.
Any suggestions pls................
Thanks in advance.
Zak.
2008 Nov 18 3:47 PM
Hi,
You can probably display your data in an editable ALV Grid using a custom container. That would be a better approach.
Thanks
Nidhi
Hello experts,
In internal table we can use table control events.
But in my requirement I have field-symbol as internal table and coreresponding work area like below.
call method cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = i_alv_cat
IMPORTING
ep_table = d_ref.
assign d_ref->* to <f_fs>.
CREATE DATA gd_line LIKE LINE OF <f_fs>.
ASSIGN gd_line->* TO <fs_line>.
Now my issue is how can I use table control events in field-symbol (an internal table).
loop at <f_fs> into <fs_line>.
at new WERKS.
endat.
endloop.
If I use like above, it gives error: the specified type has no structure and therefore no component called
WERKS.
I cant create internal table like field-symbol becoz it is dynamically populated.
Any suggestions pls................
Thanks in advance.
Zak.
2008 Nov 18 3:47 PM
Hi,
You can probably display your data in an editable ALV Grid using a custom container. That would be a better approach.
Thanks
Nidhi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |