Skip to Content

Refresh ALV OOPS after press duplicate row

Nov 29, 2017 at 09:43 AM


avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Nov 29, 2017 at 10:59 AM

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 ;-)

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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