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

Adding row in the ALV

Former Member
0 Likes
660

Hi Guru,

I am displaying the ALV using OOPS.

But I have to add one insert button and when user is clicking that button it should create one row

so that user can fill if he wants.

Can u tell me how to proceed with this.

Thanks,

Sandeep Garg

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
626

Hello Sandeep,

Refer to this link

hope it helps you.

Regards!!

Hi Guru,

I am displaying the ALV using OOPS.

But I have to add one insert button and when user is clicking that button it should create one row

so that user can fill if he wants.

Can u tell me how to proceed with this.

Thanks,

Sandeep Garg

4 REPLIES 4
Read only

Former Member
0 Likes
627

Hello Sandeep,

Refer to this link

hope it helps you.

Regards!!

Read only

tarangini_katta
Active Contributor
0 Likes
626

Hi,

Where u want to add insert button in the ICon bAr of the grid.

Use the program.BCLAV_GRID_05.It is an example program to add the own button.

After user command.

Use the method GET_FRONTEND_FIELDCATALOG method or use program bcalv_edit_04

for inserting the rows.

Thanks,

Read only

Former Member
0 Likes
626

Hi,

ALV provides the default functionality for the inserting and deleting the records in the ALV grid.

You can use this.

Read only

Former Member
0 Likes
626

Hi,

When user clicks on the New Row button you need to

1) call method check_changed_data by passing e_valid = space.

2) add a initial line to the internal table

3) call method refresh_table_display

4) If user has to input some data in those lines you have to method set_ready_for_input by passing i_ready_for_input = 1.

Regards,

Kritesh Shah