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: 

ALV Grid Control - Insert Data

Former Member
0 Kudos
127

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

6 REPLIES 6

former_member188685
Active Contributor
0 Kudos
73

Hi,

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

Regards

vijay

Former Member
0 Kudos
73

Hi Chun,

Cant recollect the name..

Try BCALEDIT...

Let me know if you find the program..

Regards,

Tanveer.

Mark helpful answers.

0 Kudos
73

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

0 Kudos
73

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

Regards

vijay

0 Kudos
73

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.

0 Kudos
73

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