Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

table control events in internal table

former_member463678
Participant
0 Likes
405

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

Hi,

You can probably display your data in an editable ALV Grid using a custom container. That would be a better approach.

Thanks

Nidhi

Hi,

You can probably display your data in an editable ALV Grid using a custom container. That would be a better approach.

Thanks

Nidhi

1 REPLY 1
Read only

Former Member
0 Likes
382

Hi,

You can probably display your data in an editable ALV Grid using a custom container. That would be a better approach.

Thanks

Nidhi