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

ALV Grid Control - Insert Data

Former Member
0 Likes
735

I'm looking for the ALV Grid Control simplest code for inserting a row data. Please give me some reference!!

6 REPLIES 6
Read only

Former Member
0 Likes
681

Hi,

did you check this example <b>BCALV_EDIT_04</b>, if not check it once,...

Regards

vijay

Read only

Former Member
0 Likes
681

Hi Chun,

Cant recollect the name..

Try BCALEDIT...

Let me know if you find the program..

Regards,

Tanveer.

Mark helpful answers.

Read only

0 Likes
681

I have already checked those BCALEDIT sample. It is too diffcult to me.

Read only

0 Likes
681

what part you are not able to understand. please let me know.

Regards

vijay

Read only

0 Likes
681

I can find a lot of sample which is about to display the data. So, i would like to know the simplest way to append a row of data by ALV.

Read only

0 Likes
681

Hi,

Here is the simplest way.

In the layout that you pass - set the EDIT field to 'X'. This puts all the fields in the EDIT mode and automatically the toolbar will have new buttons to add / delete new rows.

If you are looking at adding new rows manually, you will have append a blank row to the table and REFRESH_TABLE_DISPLAY. This will add a blank row, however you will have to do this on a specific action of the user. I am not aware of your requirements there. Here also, you can set the EDIT field in the LAYOUT to 'X' so that all the fields are in edit mode. If you want specific fields in the EDIT mode, do the same in the FIELDCAT.

Regards,

Ravi

Note : Please mark the helpful answers