Application Development 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: 

Refresh ALV OOPS after press duplicate row

Former Member
0 Kudos

Hi everybody,

Now I have one problem about ALV OOPS. After I press "duplicate row" on the toolbar, actually the grid is not refresh. Could you tell me how can I trigger the event of "duplicate row"? Because I register the event "modified" so that I cannot call refresh_table_display in the handle_data_changed, it will let the grid complicated if we append/insert, and add data for each cell, the cursor position always go to the top, and the row index is also complicated.

I have call method set_toolbar_attractive already but the sy-ucomm does not trigger for "duplicate_row" in the user_command. I intend to add a new button as the same duplicate_row and trigger it's function code but I don't think it is a good solution because the function of SAP is better than my function and I also cannot control the activity of grid well too.

Thank you so much for reading

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

Did you try to handle event AFTER_USER_COMMAND, in the handling method check an E_UCOMM value equal to constant attributes MC_FC_LOC_COPY_ROW or MC_FC_LOC_PASTE_NEW_ROW.

NB: Event USER_COMMAND only trigger for self-defined function, when AFTER_USER_COMMAND also trigger for standard ones.

PS: Can you elaborate on method set_toolbar_attractive 😉

0 Kudos

It does not work :((( It just works for some button graphics, info, etc... but no duplicate row 😞