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

OOPS ALV toolbar: insert, duplicate

Former Member
0 Likes
1,405

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,336

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.

6 REPLIES 6
Read only

Former Member
0 Likes
1,336

Hi,

You need to make at least one field editable to have these functionality. Please make some fields editable while creating fieldcatalog.

Regards,

Supratik

Read only

0 Likes
1,336

Hi Supratik,

Thank you for your reply. Editable fields exist. I want to know how to insert after the current line.

Regards,

ts

Read only

0 Likes
1,336

Can you see the buttons like below. These are the buttons to insert and copy respectively.

Regrads,

Supratik

Read only

0 Likes
1,336

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.

Read only

krishnakumarn
Product and Topic Expert
Product and Topic Expert
0 Likes
1,336

Instead of insert , I think you can try create button available on the toolbar.

Thanks & Regards,

Krishna N

Read only

Former Member
0 Likes
1,337

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.