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: 

ABAP SALV turn off row insert during paste

Former Member
0 Kudos

Hello,

I've done SALV report and made it editable.

What I noticed is that when I want to paste more rows that I have in table the new rows are added to table:

and when I paste data I got:

How I can switch off inserting new rows when clipboard data is bigger than table?

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

I guess you have gained access to the ALV grid control (as your grid is editable), so there's a "NO_ROWINS" in the layout structure (LVC_S_LAYO). But it also means that you won't have the "insert" button anymore.

2 REPLIES 2

Sandra_Rossi
Active Contributor

I guess you have gained access to the ALV grid control (as your grid is editable), so there's a "NO_ROWINS" in the layout structure (LVC_S_LAYO). But it also means that you won't have the "insert" button anymore.

Former Member
0 Kudos

Sandra thanks a lot!

it is working.

DATA: ls_layout TYPE lvc_s_layo.
ls_layout-no_rowins = 'X'.
CALL METHOD lo_grid->set_frontend_layout
EXPORTING
is_layout = ls_layout.