‎2013 Sep 04 5:22 AM
Hi,
It is found that the alv inserts or duplicate to the position before the current row. Is it a standard behavior? Do I have to write my own code to insert and duplicate after the current row? Or, I can just set the attribute of the alv to control where a new line should be inserted to and duplicated to?
Best regards,
ts
‎2013 Sep 05 5:38 PM
It's a standard behavior and you can't change it in any way.
As already said, you can hide this button and create another one. After that, handle this new button function at USER_COMMAND event to create a new blank line at the desired position.
Ask if you need help to achieve this.
‎2013 Sep 04 8:52 AM
Hi,
You need to make at least one field editable to have these functionality. Please make some fields editable while creating fieldcatalog.
Regards,
Supratik
‎2013 Sep 04 9:23 AM
Hi Supratik,
Thank you for your reply. Editable fields exist. I want to know how to insert after the current line.
Regards,
ts
‎2013 Sep 05 10:09 AM
Can you see the buttons like below. These are the buttons to insert and copy respectively.
Regrads,
Supratik
‎2013 Sep 05 2:11 PM
Perhaps you can create a new toolbar button. (maybe even hiding the existing insert, and keeping same icon for custom button)
When button is pressed, handle user command and get selected row.
Change internal table to Insert blank line below selected row position and set focus to new row.
Refresh table display.
‎2013 Sep 05 3:50 PM
Instead of insert , I think you can try create button available on the toolbar.
Thanks & Regards,
Krishna N
‎2013 Sep 05 5:38 PM
It's a standard behavior and you can't change it in any way.
As already said, you can hide this button and create another one. After that, handle this new button function at USER_COMMAND event to create a new blank line at the desired position.
Ask if you need help to achieve this.