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: 

New row in ALV cl_salv_table

j-uar
Discoverer
0 Kudos
739

Hi everyone!

I want to add a button and when clicked, add a new editable row to the end of an ALV of the class cl_salv_table.

It this possible?

If so, what function can I use to add the new row?

Thanks a lot.

2 REPLIES 2

Sandra_Rossi
Active Contributor
641

Yes. Just append the new line in the internal table and call the method REFRESH.

raymond_giuseppi
Active Contributor
0 Kudos
641

AFAIK cl_salv_table wont allow input before version 756 (cl_gui_alvc_grid will)

  • From 756 on, use Sandra's solution
  • On older versions, you could raise a dynamic popup with POPUP_GET_VALUES and then add the values in a new record before refreshing the ALV display of the internal table.